Hi Johannnes,

I changed the toolchain to the uclibc one, but now I cannot crosscompile the ibrdtn tools as can be seen below, I need to add something more ?

Regards and thanks again

make[1]: Leaving directory `/home/t/ibrdtnOpenWRT_rPi/ibrdtn/ibrdtn-tools-0.10.2'
t@t-VirtualBox:~/ibrdtnOpenWRT_rPi/ibrdtn/ibrdtn-tools-0.10.2$ make
Making all in src
make[1]: Entering directory `/home/t/ibrdtnOpenWRT_rPi/ibrdtn/ibrdtn-tools-0.10.2/src'
make  all-am
make[2]: Entering directory `/home/t/ibrdtnOpenWRT_rPi/ibrdtn/ibrdtn-tools-0.10.2/src'
  CXX      dtnping.o
  CXXLD    dtnping
/home/t/openwrt/attitude_adjustment_rPi/staging_dir/toolchain-arm_v6_gcc-4.6-linaro_uClibc-0.9.33.2_eabi/lib/gcc/arm-openwrt-linux-uclibcgnueabi/4.6.3/../../../../arm-openwrt-linux-uclibcgnueabi/bin/ld: /home/t/openwrt/attitude_adjustment_rPi/staging_dir/toolchain-arm_v6_gcc-4.6-linaro_uClibc-0.9.33.2_eabi/lib/gcc/arm-openwrt-linux-uclibcgnueabi/4.6.3/../../../../arm-openwrt-linux-uclibcgnueabi/lib/librt.so: undefined reference to symbol 'pthread_cancel'
/home/t/openwrt/attitude_adjustment_rPi/staging_dir/toolchain-arm_v6_gcc-4.6-linaro_uClibc-0.9.33.2_eabi/lib/gcc/arm-openwrt-linux-uclibcgnueabi/4.6.3/../../../../arm-openwrt-linux-uclibcgnueabi/bin/ld: note: 'pthread_cancel' is defined in DSO /home/t/openwrt/attitude_adjustment_rPi/staging_dir/toolchain-arm_v6_gcc-4.6-linaro_uClibc-0.9.33.2_eabi/arm-openwrt-linux-uclibcgnueabi/bin/../../../toolchain-arm_v6_gcc-4.6-linaro_uClibc-0.9.33.2_eabi/lib/libpthread.so.0 so try adding it to the linker command line
/home/t/openwrt/attitude_adjustment_rPi/staging_dir/toolchain-arm_v6_gcc-4.6-linaro_uClibc-0.9.33.2_eabi/arm-openwrt-linux-uclibcgnueabi/bin/../../../toolchain-arm_v6_gcc-4.6-linaro_uClibc-0.9.33.2_eabi/lib/libpthread.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [dtnping] Error 1
make[2]: Leaving directory `/home/t/ibrdtnOpenWRT_rPi/ibrdtn/ibrdtn-tools-0.10.2/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/t/ibrdtnOpenWRT_rPi/ibrdtn/ibrdtn-tools-0.10.2/src'
make: *** [all-recursive] Error 1


2014-03-31 14:58 GMT+02:00 Francisco Cuesta <ndarkness@gmail.com>:
Hello Johannes,

Thanks for replying so fast ;D

I will change the toolchain to uclibc and try again, I will let you know the outcome.

Regards,



2014-03-31 12:48 GMT+02:00 Johannes Morgenroth <morgenroth@ibr.cs.tu-bs.de>:

Hallo Francisco,

you have build your packages using OpenWrt based on the eglibc library.
But default OpenWrt images (available from the website) are based on
uclibc instead. That means your binaries are linked against the wrong c
library and you need to switch to a OpenWrt system which is also based
on eglibc or switch to a toolchain based on uclibc. I recommend the
latter case.

Kind regards,
Johannes

Am 31.03.2014 12:42, schrieb Francisco Cuesta:
>  I have checked out that the library is there and I have found it
>
> $VirtualBox:~/openwrt/attitude_adjustment_rPi$ locate ./ libm.so
> /attitude_adjustment_rPi/build_dir/target-arm_v6_eglibc-2.15_eabi/root-brcm2708/lib/libm.so.6
> /attitude_adjustment_rPi/build_dir/target-arm_v6_eglibc-2.15_eabi/toolchain/ipkg-brcm2708/libc/lib/libm.so.6
> /attitude_adjustment_rPi/build_dir/toolchain-arm_v6_gcc-4.6-linaro_eglibc-2.15_eabi/eglibc-2.15-r18909-final/math/libm.so
> /attitude_adjustment_rPi/build_dir/toolchain-arm_v6_gcc-4.6-linaro_eglibc-2.15_eabi/eglibc-2.15-r18909-final/math/libm.so.6
> /attitude_adjustment_rPi/staging_dir/target-arm_v6_eglibc-2.15_eabi/root-brcm2708/lib/libm.so.6
> /attitude_adjustment_rPi/staging_dir/toolchain-arm_v6_gcc-4.6-linaro_eglibc-2.15_eabi/lib/libm.so
> /attitude_adjustment_rPi/staging_dir/toolchain-arm_v6_gcc-4.6-linaro_eglibc-2.15_eabi/lib/libm.so.6
>
>
> and on my openwrt the library is present as well
> root@OpenWrt:/lib# ls -la | grep libm
> -rwxr-xr-x    1 root     root        615996 Mar 22  2014 libm-2.15.so
> <http://libm-2.15.so>
> lrwxrwxrwx    1 root     root            12 Mar 22  2014 libm.so.6 ->
> libm-2.15.so <http://libm-2.15.so>
>
> So then is it a matter of crosscompilation?
>
> Thanks in advance,
>
> Regards

--
!! This message is brought to you via the `ibr-dtn' mailing list.
!! Please do not reply to this message to unsubscribe. To unsubscribe or adjust
!! your settings, send a mail message to <ibr-dtn-request@ibr.cs.tu-bs.de>
!! or look at https://mail.ibr.cs.tu-bs.de/listinfo/ibr-dtn.