< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index  

Re: [reSIProcate-users] linking error with ares when cross compiling


Ø  skipping incompatible ../../../build/../contrib/ares-build.Linux.arm/libares.a when search
ing for –lares

 

It seems that resip/contrib/ares did not get cross compiled properly, for some reason.

 

Scott

 

From: resiprocate-users-bounces@xxxxxxxxxxxxxxx [mailto:resiprocate-users-bounces@xxxxxxxxxxxxxxx] On Behalf Of clare tsai
Sent: Wednesday, August 13, 2008 3:19 AM
To: resiprocate-users@xxxxxxxxxxxxxxx
Subject: [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