Ask Your Question
0

Error while compiling: /usr/bin/ld: ../../../libs/poco/lib/linux64/libPocoFoundation.a(Mutex.o)||undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'|

asked 2012-02-19 21:38:26 -0600

jpilldev gravatar image

updated 2014-09-30 09:25:23 -0600

mether gravatar image

Hello.

I installed OF in Fedora 16, with the dependences and others that aren't in the script. After many times, Trying to compile the advanced3dExample, adding the headers as symbolic links, finally got this:

$ make
Package jack was not found in the pkg-config search path.
Perhaps you should add the directory containing `jack.pc'
to the PKG_CONFIG_PATH environment variable
No package 'jack' found
Package glew was not found in the pkg-config search path.
Perhaps you should add the directory containing `glew.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glew' found
Package cairo was not found in the pkg-config search path.
Perhaps you should add the directory containing `cairo.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cairo' found
linking bin/advanced3dExample . ./src ./.settings
mkdir -p bin
g++ -o bin/advanced3dExample obj/x86_64Release/./src/main.o obj/x86_64Release/./src/testApp.o obj/x86_64Release/./src/OrthoCamera.o obj/x86_64Release/./src/Grid.o obj/x86_64Release/./src/Swarm.o   -Wl,-rpath=./libs  ../../../libs/openFrameworksCompiled/lib/linux64/libopenFrameworks.a   ../../../libs/freetype/lib/linux64/libfreetype.a ../../../libs/kiss/lib/linux64/libkiss.a ../../../libs/portaudio/lib/linux64/libportaudio.a ../../../libs/rtAudio/lib/linux64/libRtAudio.a ../../../libs/tess2/lib/linux64/libtess2.a ../../../libs/poco/lib/linux64/libPocoNet.a ../../../libs/poco/lib/linux64/libPocoXML.a ../../../libs/poco/lib/linux64/libPocoUtil.a ../../../libs/poco/lib/linux64/libPocoFoundation.a -L../../../libs/fmodex/lib/linux64 -L../../../libs/freetype/lib/linux64 -L../../../libs/kiss/lib/linux64 -L../../../libs/openFrameworksCompiled/lib/linux64 -L../../../libs/poco/lib/linux64 -L../../../libs/portaudio/lib/linux64 -L../../../libs/rtAudio/lib/linux64 -L../../../libs/tess2/lib/linux64 -lfmodex  -lglut -lGL -lasound -lopenal -lsndfile -lvorbis -lFLAC -logg -lfreeimage -lGLU
/usr/bin/ld: ../../../libs/poco/lib/linux64/libPocoFoundation.a(Mutex.o): undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'
/usr/bin/ld: note: 'pthread_mutexattr_settype@@GLIBC_2.2.5' is defined in DSO /lib64/libpthread.so.0 so try adding it to the linker command line
/lib64/libpthread.so.0: could not read symbols: Invalid operation
collect2: ld devolvió el estado de salida 1
make: *** [bin/advanced3dExample] Error 1

Looks like an issue with file: /lib64/libpthread.so.0

How can i workaround this?

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
2

answered 2012-02-20 03:02:50 -0600

Remi gravatar image

I think the answer is in the error message :

/usr/bin/ld: note: 'pthreadmutexattrsettype@@GLIBC_2.2.5' is defined in DSO /lib64/libpthread.so.0 so try adding it to the linker command line

So, add -lpthread to your command.

edit flag offensive delete link more

Comments

FranciscoD_ gravatar imageFranciscoD_ ( 2012-02-20 12:11:50 -0600 )edit
0

answered 2013-07-05 06:34:03 -0600

hjd gravatar image

I encountered the same problem, can you tell me how to solve? The lack of which bag?

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2012-02-19 21:38:26 -0600

Seen: 4,106 times

Last updated: Jul 05 '13