Re: [bdbxml] can't build 32 bit dbxml on AMD 64 linux

Michael Cahill <[email protected]> Wed, 19 Apr 2006 07:40:33 +1000
Newsgroups gmane.comp.db.dbxml.general
Message-ID <[email protected]>
Hi Richard,

> 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

You'll need to set LDFLAGS as well so that the linker also knows to  
build a 32-bit binary out of the 32-bit objects:

   env CFLAGS=-m32 LDFLAGS=-m32 ./buildall.sh --enable-java -b 32

Regards,
Michael.


------------------------------------------
To remove yourself from this list, send an
email to [email protected]