title: Cross-compile for ARM: undefined reference to '__fdelt_chk@GLIBC_2.15'
body: <p>Following <a href="https://stackoverflow.com/questions/19162072/installing-raspberry-pi-cross-compiler">this howto</a> I'm cross-compiling a bluetooth application for Raspberry Pi (ARM). When I try to link with libbluetooth I get the error below. Even the simplest helloworld application (without bluetooth code) won't link.</p>
  
  <pre><code>arm-linux-gnueabihf-g++ -c hello.cpp -o hello.o
  arm-linux-gnueabihf-g++ hello.o -o hello -lbluetooth -L/home/sbf/raspberrypi/rootfs/usr/lib/arm-linux-gnueabihf
  /home/sbf/raspberrypi/rootfs/usr/lib/arm-linux-gnueabihf/libbluetooth.so: undefined reference to `__fdelt_chk@GLIBC_2.15'
  
  
  sbf@sbf-VirtualBox ~/raspberrypi/projects/test $ ls -al /home/sbf/raspberrypi/rootfs/usr/lib/arm-linux-gnueabihf/libbluetooth*
  -rw-r--r-- 1 sbf sbf 132886 May 27  2016 /home/sbf/raspberrypi/rootfs/usr/lib/arm-linux-gnueabihf/libbluetooth.a
  lrwxrwxrwx 1 sbf sbf     23 Nov 24 21:20 /home/sbf/raspberrypi/rootfs/usr/lib/arm-linux-gnueabihf/libbluetooth.so -&gt; libbluetooth.so.3.17.11
  lrwxrwxrwx 1 sbf sbf     23 Nov 24 21:20 /home/sbf/raspberrypi/rootfs/usr/lib/arm-linux-gnueabihf/libbluetooth.so.3 -&gt; libbluetooth.so.3.17.11
  -rw-r--r-- 1 sbf sbf 103376 May 27  2016 /home/sbf/raspberrypi/rootfs/usr/lib/arm-linux-gnueabihf/libbluetooth.so.3.17.11
  </code></pre>
  
  <p>Edit (added):
  GLIBC Version 2.19</p>
  
  <pre><code>pi@raspberrypi:~ $ ldd --version
  ldd (Debian GLIBC 2.19-18+deb8u6) 2.19
  </code></pre>
  
  <p>What's going wrong?</p>