Hi,
I tried to compile kannel with -m32 (32bit) from my platform (X86_64)
(I did this because i got a segfault in the 64bits build)
the kannel version is -cvs
CFLAGS='-pthread -m32'
./configure --with-malloc-native --disable-docs --disable-wap --sysconfdir=/etc/kannel/
--enable-start-stop-daemon --disable-keepalive
I've also tried with malloc (check/slow)
and i get this error :
[logs]
Running system checks ...
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler
(gcc -pthread -m32 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -rdynamic) works...
yes
checking whether the C compiler
(gcc -pthread -m32 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -rdynamic) is a
cross-compiler... no
......
gcc -D_REENTRANT=1 -I. -Igw -pthread -m32 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
-I/usr/include/libxml2 -o utils/seewbmp.o -c utils/seewbmp.c
gcc -D_REENTRANT=1 -I. -Igw -pthread -m32 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
-I/usr/include/libxml2 -o utils/mtbatch.o -c utils/mtbatch.c
gcc -D_REENTRANT=1 -I. -Igw -pthread -m32 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
-I/usr/include/libxml2 -o utils/run_kannel_box.o -c utils/run_kannel_box.c
gcc -D_REENTRANT=1 -I. -Igw -pthread -m32 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
-I/usr/include/libxml2 -o utils/start-stop-daemon.o -c
utils/start-stop-daemon.c
gcc -D_REENTRANT=1 -I. -Igw -pthread -m32 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
-I/usr/include/libxml2 -rdynamic -o wmlscript/wmlsc wmlscript/wmlsc.o
libgw.a libwmlscript.a libwap.a
ibgwlib.a -lrt -lbind -lresolv -lnsl -lm -lpthread -lxml2 -lz -lpthread -lm
/usr/bin/ld: skipping incompatible /usr/lib64/libxml2.so when searching
for -lxml2
/usr/bin/ld: skipping incompatible /usr/lib64/libxml2.a when searching
for -lxml2
/usr/bin/ld: cannot find -lxml2
collect2: ld returned 1 exit status
make: *** [wmlscript/wmlsc] Error 1
I'll appreciate if someone got the same problem would help me ?
regards
Vincent