After looking for a solution I just passed -m32 and give --target=i386 like below: ./aconfigure CFLAGS='-Wno-unused-label -m32' --target=i386 --disable-ssl It compiles until test parts, in example all pjlib code is compiled for 32 bit but test code can not be compiled. In the compile log I see that gcc is not called with the required CFLAGS. In the below output CFLAGS I gave is "-Wno-unused-label -m32", gcc is called with "-Wno-unused-label -m32" for util.o but not for "pjlib-test-i386-pc-none" and because I am on 64 bit gcc tries to compile 64 bit output with 32 bit ones. Why is this happening? gcc -c -Wall -DPJ_AUTOCONF=1 -Wno-unused-label -m32 -g -O0 -I../include \ -ooutput/pjlib-test-i386-pc-none/util.o \ ../src/pjlib-test/util.c if test ! -d ../bin; then mkdir -p ../bin; fi gcc -o ../bin/pjlib-test-i386-pc-none \ output/pjlib-test-i386-pc-none/main.o output/pjlib-test-i386-pc-none/activesock.o output/pjlib-test-i386-pc-none/atomic.o output/pjlib-test-i386-pc-none/echo_clt.o output/pjlib-test-i386-pc-none/errno.o output/pjlib-test-i386-pc-none/exception.o output/pjlib-test-i386-pc-none/fifobuf.o output/pjlib-test-i386-pc-none/file.o output/pjlib-test-i386-pc-none/hash_test.o output/pjlib-test-i386-pc-none/ioq_perf.o output/pjlib-test-i386-pc-none/ioq_udp.o output/pjlib-test-i386-pc-none/ioq_unreg.o output/pjlib-test-i386-pc-none/ioq_tcp.o output/pjlib-test-i386-pc-none/list.o output/pjlib-test-i386-pc-none/mutex.o output/pjlib-test-i386-pc-none/os.o output/pjlib-test-i386-pc-none/pool.o output/pjlib-test-i386-pc-none/pool_perf.o output/pjlib-test-i386-pc-none/rand.o output/pjlib-test-i386-pc-none/rbtree.o output/pjlib-test-i386-pc-none/select.o output/pjlib-test-i386-pc-none/sleep.o output/pjlib-test-i386-pc-none/sock.o output/pjlib-test-i386-pc-none/sock_perf.o output/pjlib-test-i386-pc-none/ssl_sock.o output/pjlib-test-i386-pc-none/string.o output/pjlib-test-i386-pc-none/test.o output/pjlib-test-i386-pc-none/thread.o output/pjlib-test-i386-pc-none/timer.o output/pjlib-test-i386-pc-none/timestamp.o output/pjlib-test-i386-pc-none/udp_echo_srv_sync.o output/pjlib-test-i386-pc-none/udp_echo_srv_ioqueue.o output/pjlib-test-i386-pc-none/util.o -lm -luuid -lnsl -lrt -lpthread ../lib/libpj-i386-pc-none.a -lm -luuid -lnsl -lrt -lpthread collect2: ld terminated with signal 11 [Segmentation fault] /usr/bin/ld: i386 architecture of input file `output/pjlib-test-i386-pc-none/main.o' is incompatible with i386:x86-64 output /usr/bin/ld: i386 architecture of input file `output/pjlib-test-i386-pc-none/activesock.o' is incompatible with i386:x86-64 output /usr/bin/ld: i386 architecture of input file `output/pjlib-test-i386-pc-none/atomic.o' is incompatible with i386:x86-64 output /usr/bin/ld: i386 architecture of input file `output/pjlib-test-i386-pc-none/echo_clt.o' is incompatible with i386:x86-64 output 12 Ekim 2010 12:25 tarihinde Kabil Akp?nar <kabilakpinar at gmail.com> yazd?: > Hi all; > I'm on Ubuntu 64 bit for a few days. Formerly I compiled, built under 32 > Bit successfully. > My code compiles fine under 64 bit as well but I rather want to compile 32 > bit under 64 bit. > > So"How to configure pjsip for 32 bit under 64 bit?" > > (I gave -m32 for configure "./aconfigure CFLAGS='-Wno-unused-label -m32'", > but generated file names still contains x86_64) > > Thanks > > -- > Kabil Akp?nar > > -- Kabil Akp?nar -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20101012/30c4ab53/attachment.html>