make fails with undefined reference to symbol

Issue #74 new
Steve Kroon created an issue

Downloading and attempting to compile with ./configure and make leads to the following compilation error:

#!

g++  -Wall -g -O3 -DTOPSRCDIR=\"/home/kroon/sandbox/francois_oakfoam/francoisvn-oakfoam-dca806c2a017\" -fno-strict-aliasing -L/usr/lib/i386-linux-gnu/    -o oakfoam src/oakfoam-Oakfoam.o src/oakfoam-main.o src/engine/oakfoam-Go.o src/engine/oakfoam-Engine.o src/engine/oakfoam-Tree.o src/engine/oakfoam-Random.o src/engine/oakfoam-Pattern.o src/engine/oakfoam-Parameters.o src/engine/oakfoam-Features.o src/engine/oakfoam-Time.o src/engine/oakfoam-Book.o src/engine/oakfoam-Playout.o src/engine/oakfoam-Benson.o src/engine/oakfoam-Worker.o src/engine/oakfoam-DecisionTree.o src/web/oakfoam-Web.o src/gtp/oakfoam-Gtp.o -lboost_system -lboost_thread -lboost_filesystem   
/usr/bin/ld: src/engine/oakfoam-Tree.o: undefined reference to symbol 'pthread_mutex_trylock@@GLIBC_2.0'
//lib/i386-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [oakfoam] Error 1
make[1]: Leaving directory `/home/kroon/sandbox/francois_oakfoam/francoisvn-oakfoam-dca806c2a017'
make: *** [all] Error 2

Some discussion of this error has taken place on the mailing list at https://groups.google.com/forum/#!topic/oakfoam/1q1u9Y2ftok . There I've suggested some changes in a fork that can be used to address this issue. I'm not sure how to test whether the proposed changes will break cross-compiling for Windows.

I do think addressing this and incorporating it into the main repo is fairly important, since currently someone downloading Oakfoam and trying to compile it to try it out may get stuck quite easily.

Comments (2)

  1. Log in to comment