Hi all,
After a long process of investigation, i finally found that the file
libxml2.so and libxml2.a were missing in /usr/lib
from a fresh install of Fedora Core 4 (64bits/SMP). redhat powah :(
Even if the rpm packages were installed (libxml2-2.6.19-1.X86_64.rpm and
libxml2-2.6.19-1.i386.rpm)
#) cat yum.list |grep xml
libxml2.x86_64 2.6.19-1 installed
libxml2.i386 2.6.19-1 installed
So i copied these files from a non-64bits install to my /usr/lib, and it
seems to finally work !!
Here is the best way to use -m32
./configure --with-malloc-native --disable-docs --disable-wap --sysconfdir=/etc/kannel/
--enable-start-stop-daemon --disable-keepalive --with-cflags="-m32"
BTW, and after my experience, kannel is *NOT* working with native 64bits
mode
Regards
Vincent.
----- Original Message -----
From: "Vincent CHAVANIS" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, July 08, 2005 5:47 PM
Subject: Compiling errors on x86_64
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
bgwlib.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