<div dir="ltr">Hi All<div><br></div><div>I'm trying to build the binaries of ndn-cxx in my linux 64-bit machine and hoping to compile it for raspberry pi 2. I've built crosstool-ng and have compiled the programs. However, I'm unable to link the symbols in the program. Here's the output of the program. I've used <a href="https://github.com/ath-90/discover-conf/blob/master/ndn.sh">this</a> shell script to run the compilation. Below are the lines that are causing the issue (Full log with verbose <a href="https://github.com/ath-90/discover-conf/blob/master/log-wo-pthread">here</a>).</div><div><br></div><div>/home/ath/raspberrypi/x-tools/arm-rpi-linux-gnueabihf/lib/gcc/arm-rpi-linux-gnueabihf/7.4.1/../../../../arm-rpi-linux-gnueabihf/bin/ld: tools/ndnsec/cert-dump.cpp.1.o: undefined reference to symbol 'pthread_getspecific@@GLIBC_2.4'<br>/home/ath/raspberrypi/x-tools/arm-rpi-linux-gnueabihf/arm-rpi-linux-gnueabihf/sysroot/lib/libpthread.so.0: error adding symbols: DSO missing from command line<br>collect2: error: ld returned 1 exit status<br></div><div><br></div><div>This seems to be an issue that the waf is unable to locate the pthread library. Could someone please guide me on how I can get the waf to recognize the pthread library? Also, I tried using the -pthread flag but it seems to introduce new linkage errors for some unknown reason. <a href="https://github.com/ath-90/discover-conf/blob/master/log-w-pthread">Here</a> is the output when I have included the -pthread in LDFLAGS.</div><div><br></div><div>Any help would be appreciated. </div><div><br></div><div>Regards</div><div>Athreya H N</div></div>