[GHC] #7062: Spurious undefined reference to `openpty'
GHC
cvs-ghc at haskell.org
Fri Nov 16 11:18:06 CET 2012
#7062: Spurious undefined reference to `openpty'
-------------------------------+--------------------------------------------
Reporter: simonmar | Owner:
Type: bug | Status: new
Priority: high | Milestone: 7.6.2
Component: Compiler | Version: 7.4.2
Resolution: | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: None/Unknown | Difficulty: Unknown
Testcase: | Blockedby:
Blocking: | Related:
-------------------------------+--------------------------------------------
Comment(by trommler):
Replying to [comment:23 markwright]:
> Replying to [comment:21 trommler]:
>
> I added this patch to #3072 to add an rpath to the ghc core libs
I built HEAD and the patch fixes the issue.
The test, however, still fails with the same error. To fix that error we
need to do the same thing in testsuite for Linux that we do for OS X and
for Windows already: Set an environment variable to point ld.so to the
freshly built libraries. Otherwise the system libraries will be used (if
present) and this is not what we want in testsuite.
For builds that link with --enable-new-dtags (.so contains both RUNPATH
and RPATH) setting LD_LIBRARY_PATH would be sufficient. If only RPATH is
set (--disable-new-dtags), however, LD_PRELOAD must be used to override
RPATH. LD_PRELOAD works in both cases, so LD_PRELOAD should be set.
I could create a patch for testsuite to implement that.
Are there plans to merge markwright's patch into 7.6?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7062#comment:24>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list