[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
undefined lt_ptr
From: |
Rüdiger Ranft |
Subject: |
undefined lt_ptr |
Date: |
Fri, 23 Jan 2009 08:58:09 +0100 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.8.1.6) Gecko/20070802 SeaMonkey/1.1.4 |
Hi all,
I tried to compile libtool-2.2.6a on mingw+msys, but it failed with a
missing lt_ptr symbol. I found a similar problem already on
http://www.mail-archive.com/address@hidden/msg04299.html, it
seems I trapped into the same problem.
/bin/sh ./libtool --tag=CC --mode=link gcc -Wall -ggdb3 -O0
-no-undefined -version-info 9:0:2 -dlpreopen libltdl/loadlibrary.la
-Lc:/Programme/mingw/esa/lib -o libltdl/libltdl.la -rpath
/mingw/esa/lib libltdl/loaders/libltdl_libltdl_la-preopen.lo
libltdl/libltdl_libltdl_la-lt__alloc.lo
libltdl/libltdl_libltdl_la-lt_dlloader.lo
libltdl/libltdl_libltdl_la-lt_error.lo
libltdl/libltdl_libltdl_la-ltdl.lo libltdl/libltdl_libltdl_la-slist.lo
libltdl/argz.lo libltdl/lt__strl.lo
libtool: link: rm -f libltdl/.libs/libltdl.nm libltdl/.libs/libltdl.nmS
libltdl/.libs/libltdl.nmT
libtool: link: (cd libltdl/.libs && gcc -Wall -ggdb3 -O0 -c -fno-builtin
-DDLL_EXPORT -DPIC "libltdlS.c")
libltdlS.c:25: error: `lt_ptr' undeclared here (not in a function)
libltdlS.c:25: error: initializer element is not constant
libltdlS.c:25: error: (near initialization for
`lt_libltdl_LTX_preloaded_symbols[1].address')
libltdlS.c:25: error: syntax error before numeric constant
libltdlS.c:25: error: initializer element is not constant
libltdlS.c:25: error: (near initialization for
`lt_libltdl_LTX_preloaded_symbols[1]')
libltdlS.c:26: error: initializer element is not constant
libltdlS.c:26: error: (near initialization for
`lt_libltdl_LTX_preloaded_symbols[2].address')
libltdlS.c:26: error: initializer element is not constant
libltdlS.c:26: error: (near initialization for
`lt_libltdl_LTX_preloaded_symbols[2]')
libltdlS.c:27: error: initializer element is not constant
libltdlS.c:27: error: (near initialization for
`lt_libltdl_LTX_preloaded_symbols[3]')
make[2]: *** [libltdl/libltdl.la] Error 1
make[2]: Leaving directory `/d/src/libtool-2.2.6'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/d/src/libtool-2.2.6'
make: *** [all] Error 2
----------------------------
$ cat libltdl/.libs/libltdlS.c
/* libltdlS.c - symbol resolution table for `libltdl' dlsym emulation. */
/* Generated by ltmain.sh (GNU libtool) 2.2.6 */
#ifdef __cplusplus
extern "C" {
#endif
/* External symbol declarations for the compiler. */
extern int loadlibrary_LTX_get_vtable;
/* The mapping between symbol names and symbols. */
typedef struct {
const char *name;
void *address;
} lt_dlsymlist;
/* DATA imports from DLLs on WIN32 con't be const, because
runtime relocations are performed -- see ld's documentation
on pseudo-relocs. */
extern lt_dlsymlist
lt_libltdl_LTX_preloaded_symbols[];
lt_dlsymlist
lt_libltdl_LTX_preloaded_symbols[] =
{ { "libltdl", (void *) 0 },
{"loadlibrary.a", (lt_ptr) 0},
{"loadlibrary_LTX_get_vtable", (lt_ptr) &loadlibrary_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_libltdl_LTX_preloaded_symbols;
}
#endif
#ifdef __cplusplus
}
#endif
--
GPG encrypted mails preferred.
GPG verschlüsselte Mails bevorzugt.
---> http://chaosradio.ccc.de/media/ds/ds085.pdf Seite 20 <----
signature.asc
Description: OpenPGP digital signature
- undefined lt_ptr,
Rüdiger Ranft <=