|
From: | Akim Demaille |
Subject: | 2.2.6: libltdlcS.c:22: error: 'lt _ptr' undeclared here (not in a function) |
Date: | Mon, 17 Nov 2008 16:19:42 +0100 |
Hi,I'm using Libtool 2.2.6 with a convenience libltdl in libltdl. I'm under the OSX.
$ uname - a Darwin montero.gostai.ensta.fr 9.5.0 Darwin Kernel Version 9.5.0: Wed Sep 3 11:29:43 PDT 2008; root:xnu-1228.7.58~1/RELEASE_I386 i386
When compiling libltdl, I have the following failure:
$ ./libtool --verbose --tag=CC --mode=link i686-apple-darwin9- gcc-4.0.1 -O2 -ggdb -no-undefined -dlpreopen libltdl/dlopen.la -o libltdl/libltdlc.la libltdl_libltdlc_la-preopen.lo libltdl_libltdlc_la-lt__alloc.lo libltdl_libltdlc_la-lt_dlloader.lo libltdl_libltdlc_la-lt_error.lo libltdl_libltdlc_la-ltdl.lo libltdl_libltdlc_la-slist.lo libltdl/argz.lo libtool: link: rm -f libltdl/.libs/libltdlc.nm libltdl/.libs/ libltdlc.nmS libltdl/.libs/libltdlc.nmT libtool: link: (cd libltdl/.libs && ccache i686-apple-darwin9- gcc-4.0.1 -g -O2 -O2 -ggdb -c -fno-builtin -fno-common -DPIC "libltdlcS.c") distcc[413] (dcc_get_hostlist) Warning: no hostlist is set; can't distribute work distcc[413] (dcc_build_somewhere) Warning: failed to distribute, running locally instead distcc[413] ERROR: compile /Users/akim/.ccache/ libltdlcS.tmp.montero.gostai.ensta.fr.409.i on localhost failed distcc[409] (dcc_get_hostlist) Warning: no hostlist is set; can't distribute work distcc[409] (dcc_build_somewhere) Warning: failed to distribute, running locally insteadlibltdlcS.c:22: error: 'lt_ptr' undeclared here (not in a function) libltdlcS.c:22: error: syntax error before numeric constant distcc[409] ERROR: compile libltdlcS.c on localhost failed
The file is as follows, and indeed contains no definition of lt_ptr.
$ cat _build/i386-apple-darwin9.5.0/libltdl/.libs/libltdlcS.c/* libltdlcS.c - symbol resolution table for `libltdlc' dlsym emulation. *//* Generated by ltmain.sh (GNU libtool) 2.2.6 */ #ifdef __cplusplus extern "C" { #endif /* External symbol declarations for the compiler. */ extern int dlopen_LTX_get_vtable; /* The mapping between symbol names and symbols. */ typedef struct { const char *name; void *address; } lt_dlsymlist; extern const lt_dlsymlist lt_libltdlc_LTX_preloaded_symbols[]; const lt_dlsymlist lt_libltdlc_LTX_preloaded_symbols[] = { { "libltdlc", (void *) 0 }, {"dlopen.a", (lt_ptr) 0}, {"dlopen_LTX_get_vtable", (lt_ptr) &dlopen_LTX_get_vtable}, {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_libltdlc_LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif
I may have done something wrong, but I fail to see what :( Thanks!
[Prev in Thread] | Current Thread | [Next in Thread] |