how to cross compile partysip with arm-linux-gcc

Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

how to cross compile partysip with arm-linux-gcc

Luo Qian

 I want to run partysip-2.2.3 on an embeded arm platform (cpu: sumsung s3c6410, OS: Linux )
I met this error when cross-compiling

arm-linux-gcc -DOSIP_MT -D_REENTRANT -D_THREAD_SAFE -DXOPEN_SOURCE=500 -DHAVE_GETADDRINFO -DNEW_TIMER -pedantic -DUSE_TMP_BUFFER -DDENABLE_DEBUG -g -DENABLE_TRACE -DPSP_SERVER_PREFIX=\"/home/bupt/luoqian/build\" -DCONFIG_DIR=\"/home/bupt/luoqian/build/etc/partysip\" -g -o .libs/partysip main.o psp_config.o psp_utils.o psp_module.o psp_plugin.o osip_msg.o psp_request.o psp_osip.o tlp.o tlp_plugin.o imp.o imp_plugin.o psp_core.o psp_core2.o psp_core3.o psp_core4.o psp_core5.o psp_resolv.o psp_nat.o sfp_fsm.o sfp_plugin.o sfp_branch.o sfp.o sfp_fsm2.o ntservice.o nt_svc.o -Wl,--export-dynamic  -pthread -L/home/bupt/luoqian/build/lib /home/bupt/luoqian/build/lib/libosip2.so ../ppl/unix/.libs/libppl.so -lnsl -ldl -Wl,--rpath -Wl,/home/bupt/luoqian/build/lib
../ppl/unix/.libs/libppl.so: undefined reference to `__dn_expand'
../ppl/unix/.libs/libppl.so: undefined reference to `__res_query'
collect2: ld returned 1 exit status
make[2]: *** [partysip] 错误 1
make[2]:正在离开目录 `/home/bupt/luoqian/partysip-2.2.3/src'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/home/bupt/luoqian/partysip-2.2.3'
make: *** [all] 错误 2


"错误" means "error"

any help will be appreciated!!!


_______________________________________________
Partysip-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/partysip-dev
Reply | Threaded
Open this post in threaded view
|

Re: how to cross compile partysip with arm-linux-gcc

Aymeric Moizard

Hi,

partysip is very obsolete and not developped any more. I advise you
to use more recent project unless you do want to experiment with the
simple partysip old server...

It seems you are missing "-lresolv" in your cmmand line! run
   ./configure ... LIBS="-lresolv" ...

Regards

Aymeric MOIZARD / ANTISIP
amsip - http://www.antisip.com
osip2 - http://www.osip.org
eXosip2 - http://savannah.nongnu.org/projects/exosip/


On Thu, 20 Feb 2014, Luo Qian wrote:

>
>  I want to run partysip-2.2.3 on an embeded arm platform (cpu: sumsung s3c6410, OS: Linux )
> I met this error when cross-compiling
>
> arm-linux-gcc -DOSIP_MT -D_REENTRANT -D_THREAD_SAFE -DXOPEN_SOURCE=500 -DHAVE_GETADDRINFO -DNEW_TIMER -pedantic -DUSE_TMP_BUFFER -DDENABLE_DEBUG -g -DENABLE_TRACE
> -DPSP_SERVER_PREFIX=\"/home/bupt/luoqian/build\" -DCONFIG_DIR=\"/home/bupt/luoqian/build/etc/partysip\" -g -o .libs/partysip main.o psp_config.o psp_utils.o psp_module.o
> psp_plugin.o osip_msg.o psp_request.o psp_osip.o tlp.o tlp_plugin.o imp.o imp_plugin.o psp_core.o psp_core2.o psp_core3.o psp_core4.o psp_core5.o psp_resolv.o psp_nat.o
> sfp_fsm.o sfp_plugin.o sfp_branch.o sfp.o sfp_fsm2.o ntservice.o nt_svc.o -Wl,--export-dynamic  -pthread -L/home/bupt/luoqian/build/lib /home/bupt/luoqian/build/lib/libosip2.so
> ../ppl/unix/.libs/libppl.so -lnsl -ldl -Wl,--rpath -Wl,/home/bupt/luoqian/build/lib
> ../ppl/unix/.libs/libppl.so: undefined reference to `__dn_expand'
> ../ppl/unix/.libs/libppl.so: undefined reference to `__res_query'
> collect2: ld returned 1 exit status
> make[2]: *** [partysip] 错误 1
> make[2]:正在离开目录 `/home/bupt/luoqian/partysip-2.2.3/src'
> make[1]: *** [all-recursive] 错误 1
> make[1]:正在离开目录 `/home/bupt/luoqian/partysip-2.2.3'
> make: *** [all] 错误 2
>
>
> "错误" means "error"
>
> any help will be appreciated!!!
>
> ________________________________________________________________________________________________________________________________________________________________________________
> [hidden email]
>
>
>
_______________________________________________
Partysip-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/partysip-dev