[reSIProcate-users] linking error with ares when cross compiling
Hello group,
When we use arm_v5t_le tool chain, gcc version 3.4.3
(MontaVista 3.4.3-25.0.104.0600975 2006-07-06), to cross compile resiprocate,
a linking problem happens.
ld fails to link libares.a and the message is incompatible. libares.a is built by
arm_v5t_le tool chain. Why ld says incompatible?
How can we solve the problem?
/opt/mv_pro_4.0.1/montavista/
pro/devkit/arm/v5t_le/bin/arm-linux-g++
-o bin.opt.Linux.arm/basicRegister obj.opt.Linux.arm/basicRegister.o obj.o
pt.Linux.arm/CommandLineParser.o obj.opt.Linux.arm/UserAgent.o obj.opt.Linux.arm
/RegEventClient.o -L../../../build/../resip/dum/obj.opt.Linux.arm -L../../..
/build/../resip/stack/obj.opt.Linux.arm -L../../../build/../rutil/obj.opt.Linux
.arm -L../../../build/../contrib/ares-build.Linux.arm -ldum -lresip -lrutil
-lares -lpthread
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/../lib/gcc/armv5tl-montav
ista-linuxeabi/3.4.3/../../../../armv5tl-montavista-linuxeabi/bin/ld: skipping i
ncompatible ../../../build/../contrib/ares-build.Linux.arm/libares.a when search
ing for -lares
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/../lib/gcc/armv5tl-montav
ista-linuxeabi/3.4.3/../../../../armv5tl-montavista-linuxeabi/bin/ld: cannot fin
d -lares
collect2: ld returned 1 exit status
make: *** [bin.opt.Linux.arm/basicRegister] Error 1
Thank you
clare