Red Hat Bugzilla – Bug 839060
libglapi not linked against pthread
Last modified: 2012-09-17 18:55:40 EDT
Description of problem:
mesa-libglapi.i686: W: undefined-non-weak-symbol /usr/lib/libglapi.so.0.0.0 pthread_getspecific
mesa-libglapi.i686: W: undefined-non-weak-symbol /usr/lib/libglapi.so.0.0.0 pthread_key_create
mesa-libglapi.i686: W: undefined-non-weak-symbol /usr/lib/libglapi.so.0.0.0 pthread_once
mesa-libglapi.i686: W: undefined-non-weak-symbol /usr/lib/libglapi.so.0.0.0 pthread_setspecific
mesa-libglapi.i686: E: library-without-ldconfig-postin /usr/lib/libglapi.so.0.0.0
mesa-libglapi.i686: E: library-without-ldconfig-postun /usr/lib/libglapi.so.0.0.0
Trying to link against it:
[ 16%] /usr/bin/ld: /lib64/libglapi.so.0: undefined reference to symbol 'pthread_once@@GLIBC_2.2.5'
/usr/bin/ld: note: 'pthread_once@@GLIBC_2.2.5' is defined in DSO /lib64/libpthread.so.0 so try adding it to the linker command line
Version-Release number of selected component (if applicable):
Hello. Is someone working on this issue? It is blocking one of my packages from building in fedora 18 "rawhide" while it builds fine in fedora 16 and fedora 17. Thus, my package cannot get into fedora or epel until this bug get fixed.
Apps should never link against libglapi. Never ever ever. It's an implementation detail of libGL, it is not API.
That said, the linker complaining when it's implicitly brought into the link and not usable seems like a real bug. I'll take a look.
It's not linking directly, this is the link command:
/usr/bin/c++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -O3 -DNDEBUG -Wl,-z,relro -L/builddir/build/BUILD/VirtualGL-2.3.1/staticlib -static-libgcc CMakeFiles/glreadtest.dir/glreadtest.cpp.o -o ../bin/glreadtest -rdynamic -lGL -lGLU -lX11
mesa-8.1-0.19.fc18 has been submitted as an update for Fedora 18.
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing mesa-8.1-0.19.fc18'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
Yes. Seems to fix issues building in rawhide. Thanks so much. I also added a comment at the url above for karma.
mesa-8.1-0.19.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.