-----Original Message-----
From: Ämin Baumeler <amin.baumeler(a)zitune.ch>
Sender: sr-users-bounces(a)lists.sip-router.org
Date: Tue, 29 Nov 2011 21:15:52
To: SIP Router - Kamailio and SIP Express Router - Users Mailing
List<sr-users(a)lists.sip-router.org>
Reply-To: "SIP Router - Kamailio \(OpenSER\) and SIP Express Router \(SER\) -
Users Mailing List" <sr-users(a)lists.sip-router.org>
Subject: Re: [SR-Users] undefined symbol: dprint_crit
Hi Ovidiu
I tried to build it for a Linux systems that runs on a ARM processor.
Am 29.11.2011 um 20:27 schrieb Ovidiu Sas:
Probably you are having a linker issue.
For which platform are you trying to build?
In the trunk, there are a couple of fixes for cross compiling but the
work is not 100% completed.
Regards,
Ovidiu Sas
--
VoIP Embedded, Inc.
http://www.voipembedded.com
On Mon, Nov 28, 2011 at 1:55 PM, Ämin Baumeler <zebla(a)zitune.ch> wrote:
Hi everybody
I cross compiled kamailio for ARM. However, when I try to start kamailio on the ARM
machine, it tells me that there are a lot of undefined symbols. E.g. libkcore.so does not
find the symbol dprint_crit. Having a look at libkcore.so:
$ nm -C -D lib/kcore/libkcore.so|grep dprint
U dprint_crit
All deployed .so files do not contain dprint_crit. However I found dprint_crit in an
object file, that was used for compilation. Namely in dprint.o:
$ nm -C dprint.o |grep print
00000000 B dprint_crit
I used following commands to cross compile kamailio:
export GCC_ARM_HOME=/opt/arm-2009q1/arm-none-linux-gnueabi/
export TOOL_PREFIX=/opt/arm-2009q1/bin/arm-none-linux-gnueabi
export CXX=$TOOL_PREFIX-g++
export AR=$TOOL_PREFIX-ar
export RANLIB=$TOOL_PREFIX-ranlib
export CC=$TOOL_PREFIX-gcc
export LD=$TOOL_PREFIX-ld
export ARM_TARGET_LIB=/opt/arm-2009q1/arm-none-linux-gnueabi/libc
make proper
make cfg FLAVOUR=kamailio PREFIX=/root/kamailio/local include_modules="auth auth_db
db_text registrar" ARCH=arm TARGET=arm-none-linux-gnueabi
make all && make install
Thanks
Amin
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org