Hi,

I am trying to take one step ahead, and start adapting the script to
work with the upcoming ubuntu relase of october.

after a little modification (libapr1-dev needed and renaming
libboost1.46-dev) I failed to succeed cause simgear does not compile,
it complains about pthread during compilation:


g++  -g -O2 -Wall -D_REENTRANT
-L/home/francesco/fgfs/install/simgear/lib
-L/home/francesco/fgfs/install/OpenSceneGraph/lib -o socktest
socktest.o libsgio.a ../../simgear/structure/libsgstructure.a
../../simgear/threads/libsgthreads.a ../../simgear/debug/libsgdebug.a
../../simgear/bucket/libsgbucket.a ../../simgear/misc/libsgmisc.a -lz
-lOpenThreads -lrt -lm  -lrt -lm   -lrt -lm
../../simgear/threads/libsgthreads.a(SGThread.o): In function `~PrivateData':
/home/francesco/fgfs/simgear/simgear/simgear/threads/SGThread.cxx:194:
undefined reference to `pthread_detach'
../../simgear/threads/libsgthreads.a(SGThread.o): In function
`SGThread::PrivateData::start(SGThread&)':
/home/francesco/fgfs/simgear/simgear/simgear/threads/SGThread.cxx:209:
undefined reference to `pthread_create'
../../simgear/threads/libsgthreads.a(SGThread.o): In function
`SGThread::PrivateData::join()':
/home/francesco/fgfs/simgear/simgear/simgear/threads/SGThread.cxx:222:
undefined reference to `pthread_join'


./configure says that pthread is availeable and he can find it.

what makes me worry is this (generated during ./configure):

checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for library containing pthread_exit... none required

looks like the configure thinks he does not need pthread at all, so it
does not add it to g++ calls. (This is my noob c++ opinion).

is there a solution ? I even tried with:
export LIBS="-lpthread"

before launching the configure, but no success at all...

Thanks in advance.

Cheers
Francesco

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to