[GHC] #1018: ghci dynamic loading of X11 - unknown symbol
`_printf$LDBLStub'
GHC
trac at galois.com
Tue Nov 21 09:12:43 EST 2006
#1018: ghci dynamic loading of X11 - unknown symbol `_printf$LDBLStub'
----------------------------------+-----------------------------------------
Reporter: ykardia | Owner:
Type: bug | Status: closed
Priority: normal | Milestone: 6.6.1
Component: GHCi | Version: 6.6
Severity: normal | Resolution: fixed
Keywords: X11, dynamic loading | Difficulty: Unknown
Testcase: | Architecture: powerpc
Os: MacOS X |
----------------------------------+-----------------------------------------
Changes (by wolfgang):
* cc: wolfgang.thaller at gmx.net => wolfgang.thaller at gmx.net,
gwright at antiope.com
Comment:
The patch modifies Linker.c, where the LDBLStub symbols where declared but
not included in the symbol list, and configure.ac, where incorrect
escaping would lead configure.ac to check for printf instead of
printf$LDBLStub, leading to false positives.
{{{
Tue Nov 21 01:49:53 CET 2006 wolfgang.thaller at gmx.net
* Fix printf$LDBLStub workaround for Darwin
Apparently, the original fix never really worked due to typos and
oversights.
diff -rN -u old-stable-ghc/configure.ac new-stable-ghc/configure.ac
--- old-stable-ghc/configure.ac 2006-11-21 15:08:22.000000000 +0100
+++ new-stable-ghc/configure.ac 2006-11-21 15:08:23.000000000 +0100
@@ -1169,8 +1169,8 @@
AC_CHECK_FUNCS(clock_gettime)
dnl ** check for Apple's "interesting" long double compatibility scheme
-AC_MSG_CHECKING(for printf$LDBLStub)
-AC_TRY_LINK_FUNC(printf$LSBLStub,
+AC_MSG_CHECKING(for printf\$LDBLStub)
+AC_TRY_LINK_FUNC(printf\$LDBLStub,
[
AC_MSG_RESULT(yes)
AC_DEFINE([HAVE_PRINTF_LDBLSTUB],[1],
diff -rN -u old-stable-ghc/rts/Linker.c new-stable-ghc/rts/Linker.c
--- old-stable-ghc/rts/Linker.c 2006-11-21 15:08:22.000000000 +0100
+++ new-stable-ghc/rts/Linker.c 2006-11-21 15:08:23.000000000 +0100
@@ -797,6 +797,7 @@
RTS_POSIX_ONLY_SYMBOLS
RTS_MINGW_ONLY_SYMBOLS
RTS_CYGWIN_ONLY_SYMBOLS
+ RTS_DARWIN_ONLY_SYMBOLS
RTS_LIBGCC_SYMBOLS
#if defined(darwin_HOST_OS) && defined(i386_HOST_ARCH)
// dyld stub code contains references to this,
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1018>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list