Hi Sebastian,

Thes, the tools are the only one which fails to compile, I can compile the daemon and ibrcommon without a complaint from the compiler. However, I have seen that the daemon is started on the openwrt but it stops showing the message "Aborted...

Thanks again,

regards


2014-03-31 17:25 GMT+02:00 Sebastian Schildt <schildt@ibr.cs.tu-bs.de>:
I noticed your error is form compiling dtnping. Are only the tools failing? Did the daemon or ibrcommon get build? In that case maybe your architecture just needs some more linker flags to find pthreads. You could try in the ibrdtn-tools recipe adding

+libpthread

to the DEPENDS flag in the define Package/ibrdtn-tools section or try experimenting with

TARGET_LDFLAGS += -lpthread

in the tools recipe.


Sebastian



Am 31.03.2014 um 17:13 schrieb Francisco Cuesta <ndarkness@gmail.com>:

> Hi Johannes, I did
>
> I have download everything from scratch and I still get that error when compiling ibrd
>
> Making install in src
> make[1]: 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[1]: *** [dtnping] Error 1
> make[1]: Leaving directory `/home/t/ibrdtnOpenWRT_rPi/ibrdtn/ibrdtn-tools-0.10.2/src'
> make: *** [install-recursive] Error 1
> error while compiling ibrdtn-tools
>
>
> 2014-03-31 16:28 GMT+02:00 Johannes Morgenroth <morgenroth@ibr.cs.tu-bs.de>:
> Hello Francisco,
>
> did you do a "make clean" after you configured the toolchain to use
> uclibc instead of eglibc? If not, do it now and start-over. If that
> still does not work start with a fresh copy of OpenWrt.
>
> Kind regards,
> Johannes
>
> Am 31.03.2014 16:20, schrieb Francisco Cuesta:
> > 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
> >
>
>
> --
> !! 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.