[bdbxml] can't build 32 bit dbxml on AMD 64 linux
Richard Kennedy <[email protected]> Tue, 18 Apr 2006 16:00:12 +0100
| Newsgroups | gmane.comp.db.dbxml.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, I'm trying to build dbxml 2.2.13 as 32bit libraries on fedora linux x86_64, but I can't get it to work. I can build the 64 bit libraries, and they work correctly but I need a 32 bit set to call from java 1.4.x (which is only 32 bit). I tried setting CFLAGS="-m32" when calling buildall.sh i.e export CFLAGS="-m32";./buildall.sh --enable-java -b 32 The 32bit objects get built but the link fails with: /bin/sh ./libtool --mode=link gcc -avoid-version -rpath /opt/dbxml-2.2.13/install/lib -o libdb-4.3.la mut_pthread.lo bt_compare.lo bt_conv.lo bt_curadj.lo bt_cursor.lo bt_delete.lo bt_method.lo bt_open.lo ... /usr/bin/ld: warning: i386 architecture of input file `.libs/mut_pthread.o' is incompatible with i386:x86-64 output ... ( lots of these warnings) /usr/bin/ld: warning: i386 architecture of input file `.libs/xa_db.o' is incompatible with i386:x86-64 output /usr/bin/ld: warning: i386 architecture of input file `.libs/xa_map.o' is incompatible with i386:x86-64 output .libs/mut_pthread.o: In function `__db_pthread_mutex_init': mut_pthread.c:(.text+0xc2): undefined reference to `pthread_mutexattr_init' mut_pthread.c:(.text+0xde): undefined reference to `pthread_mutexattr_setpshared' mut_pthread.c:(.text+0x113): undefined reference to `pthread_mutexattr_destroy' mut_pthread.c:(.text+0x162): undefined reference to `pthread_condattr_setpshared' .libs/mut_pthread.o: In function `__db_pthread_mutex_lock': mut_pthread.c:(.text+0x247): undefined reference to `pthread_mutex_trylock' collect2: ld returned 1 exit status Can anyone suggest how I can do this? Thanks Richard ------------------------------------------ To remove yourself from this list, send an email to [email protected]