shogun-toolbox/shogun — pull request #861 by iglesias (2013-02-09 23:04:35+00:00)
Title: Minor fix: Add -lpthread flag to build tests correctly

The Makefile in ${GMOCK_DIR}/make includes this compile flag so it may make sense to have it there. Without the flag the build fails due to:

/usr/bin/ld: libgmock.a(gtest-all.o): undefined reference to symbol 'pthread_key_delete@@GLIBC_2.2.5'
/usr/bin/ld: note: 'pthread_key_delete@@GLIBC_2.2.5' is defined in DSO /usr/lib/libpthread.so.0 so try adding it to the linker command line

PS. The tests run fine here but there are some warnings, do you also get them? Most of them look like:

GMOCK WARNING:
Uninteresting mock function call - returning directly.
Function call: argmax_h(@0x7fff1f3f3230 32-byte object <30-6F 1D-74 88-7F 00-00 90-78 68-02 00-00 00-00 60-4E 68-02 00-00 00-00 0A-00 00-00 00-00 00-00>)
Stack trace:

GMOCK WARNING:
Uninteresting mock function call - returning default value.
Function call: get_name()
Returns: NULL