On Fri, Apr 10, 2015 at 08:58:56PM +0100, Pedro Neves wrote: > On 10-04-2015 19:49, Dirk Hohndel wrote: > >make 2>&1 | tee /tmp/linkfailure.log > Hi Dirk: > > Here it goes...
Yeah, so this shows that you need -lpthread after libgit2.a on your link line. I don't quite understand why this works for me and fails for you, though. Which distro is this? /D > Linking CXX executable TestGpsCoords > /usr/bin/ld: > /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libgit2.a(cache.c.o): > undefined reference to symbol 'pthread_rwlock_wrlock@@GLIBC_2.2.5' > /lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from > command line > collect2: error: ld returned 1 exit status > CMakeFiles/TestGpsCoords.dir/build.make:234: recipe for target > 'TestGpsCoords' failed > make[2]: *** [TestGpsCoords] Error 1 > CMakeFiles/Makefile2:61: recipe for target 'CMakeFiles/TestGpsCoords.dir/all' > failed > make[1]: *** [CMakeFiles/TestGpsCoords.dir/all] Error 2 > Makefile:127: recipe for target 'all' failed > make: *** [all] Error 2 _______________________________________________ subsurface mailing list [email protected] http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
