[GHC] #7062: Spurious undefined reference to `openpty'
GHC
cvs-ghc at haskell.org
Tue Jul 10 18:02:29 CEST 2012
#7062: Spurious undefined reference to `openpty'
---------------------------------+------------------------------------------
Reporter: simonmar | Owner:
Type: bug | Status: new
Priority: high | Milestone: 7.6.1
Component: Compiler | Version: 7.4.2
Keywords: | Os: Unknown/Multiple
Architecture: Unknown/Multiple | Failure: None/Unknown
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
---------------------------------+------------------------------------------
Changes (by ivan.perez):
* cc: ivan.perez@… (added)
Comment:
I just hit this bug. I case it can help, here's my bit.
I wrote a library that depends on `process`. When I install the library,
no errors are reported.
I have a program to test my library in `./BoardMain.hs`. The library
modules are located in `../../src/`.
If I install the library and compile the program with `-dynamic`, I get:
{{{
$ ghc -Wall --make BoardMain.hs -dynamic 2>&1 > /dev/null
/usr/lib/ghc/unix-2.5.1.0/libHSunix-2.5.1.0-ghc7.4.1.so: undefined
reference to `openpty'
collect2: ld returned 1 exit status
}}}
Using `-dynamic` and adding the library modules directly to the import
path instead of using my library as a package, I get:
{{{
$ ghc -Wall --make BoardMain.hs -i../../src:. -dynamic 2>&1 > /dev/null
$ ls -sh BoardMain
188K BoardMain
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7062#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list