tools icon indicating copy to clipboard operation
tools copied to clipboard

Unable to Link libbluetooth: undefined reference to '__fdelt_chk@GLIBC_2.15'

Open Jack-Byrne opened this issue 9 years ago • 3 comments

Related Stack overflow question and answer here

I was unable to link libbluetooth due to an undefined reference to '__fdelt_chk@GLIBC_2.15'.

I resolved this issue by using a newer release of the Linaro toolchain (6.1.1).

The current Linaro toolchain used by the repository is pretty old (NG-1.13.1-4.8-2014.01 ).

Any thoughts about updating the toolchain used in this repository?

Jack-Byrne avatar Dec 01 '16 15:12 Jack-Byrne

I end up with the same problem when linking to libsystemd.so.0.3.1 It has a dependency to libgcrypt.so.20 which in turn complains about undefined reference to '__fdelt_chk@GLIBC_2.15'.

danjal avatar Mar 13 '17 11:03 danjal

Any thoughts about updating the toolchain used in this repository?

The problem with using a newer cross compiler is it causes problems with the jessie runtime libs. E.g. If I cross compile omxplayer with the compiler you referenced, it builds okay, but running it gets:

omxplayer/omxplayer.bin: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by omxplayer/omxplayer.bin)

Sticking with gcc 4.9.3 matches the gcc version in debian jessie and avoids that issue.

popcornmix avatar Mar 13 '17 22:03 popcornmix

I am using the compiler under /tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian I got it to work by updating some of the libraries under /tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/arm-linux-gnueabihf/libc/lib/arm-linux-gnueabihf Is this a valid way to solve it?

I also tried using the compiler under /tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf, but got a long list of errors.

danjal avatar Mar 13 '17 22:03 danjal