|
From: | Steven Wu |
Subject: | Re: _lt_libltdl_LTX_preloaded_symbols in consistence. |
Date: | Sat, 12 Apr 2008 22:34:13 -0700 |
Here is the message: | I was building guile-1.8.4 on my macbook pro, and I found the linking | problem. Here is the configure command I typed: | ./configure --prefix=/usr --with-threads --enable-shared | | and here is the make.log tail: | | (cd .libs && gcc -g -O2 -c -fno-builtin "guileS.c") | rm -f .libs/guileS.c .libs/guile.nm .libs/guile.nmS .libs/guile.nmT | gcc -D_THREAD_SAFE -g -O2 -Wall -Wmissing-prototypes -Werror | .libs/guileS.o -D_THREAD_SAFE -o .libs/guile guile-guile.o | ./.libs/libguile.dylib -lintl -lgmp -lm -lltdl | Undefined symbols: | "_lt__PROGRAM__LTX_preloaded_symbols", referenced from: | _lt__PROGRAM__LTX_preloaded_symbols$non_lazy_ptr in guile- guile.o | ld: symbol(s) not found | collect2: ld returned 1 exit status | make[3]: *** [guile] Error 1 | make[2]: *** [all] Error 2 | make[1]: *** [all-recursive] Error 1 | make: *** [all] Error 2 |I fixed it by changing the macro in ltdl.h from _lt__PROGRAM__LTX_preloaded_symbols to _lt_libltdl_LTX_preloaded_symbols. I found this symbol using nm on the libltdl.a and the shared library.
steve On Apr 12, 2008, at 9:53 PM, Peter O'Gorman wrote:
Steven Wu wrote:Hi, On MacOS X, 10.5.2, intel machine, the symbol _lt_libltdl_LTX_preloaded_symbols libraries (from the generated filelibltdlS.o) is inconsistent with the symbol defined in ltdl.h, where the symbol is declared as _lt__PROGRAM__LTX_preloaded_symbols. This causes link time error. I fixed this problem by changing the name in the ltdl.hfile to match the symbol in the libraries.When linking libltdl?What are the errors that you saw? And what changes did you have to make?Peter -- Peter O'Gorman http://pogma.com
[Prev in Thread] | Current Thread | [Next in Thread] |