Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Jack-Byrne opened this issue Dec 1, 2016 · 3 comments

Comments

@Jack-Byrne
Copy link

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 Jack-Byrne changed the title Unable to Link libbluetooth undefined reference to '__fdelt_chk@GLIBC_2.15' Unable to Link libbluetooth: undefined reference to '__fdelt_chk@GLIBC_2.15' Dec 1, 2016
@danjal
Copy link

danjal commented Mar 13, 2017

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'.

@popcornmix
Copy link
Contributor

popcornmix commented Mar 13, 2017

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.

@danjal
Copy link

danjal commented Mar 13, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants