Created attachment 330724 [details]
Output of "emerge --info"
When emerging media-libs/mesa-9.0.1 I am getting the error:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-gnu/bin/ld: ../../auxiliary//libgallium.a(u_dl.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'dlclose@@GLIBC_2.2.5' is defined in DSO /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../lib64/libdl.so so try adding it to the linker command line
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../lib64/libdl.so: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
Created attachment 330726 [details]
Log produced by emerge.
The build log shows that -ldl is linked everytime -lgallium is, so maybe something is wrong with your libdl.so file?
What does 'file /lib64/libdl-*.so' say?
# file /lib64/libdl-*.so
/lib64/libdl-2.16.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, stripped
Can you reproduce this with 9.1?
(In reply to comment #4)
> Can you reproduce this with 9.1?
I cannot reproduce it with 9.1.
mesa-9.1 installs without problems.
Cool. Thanks for testing. If it's okay with you, I think I won't investigate this bug further. 9.1 introduces a new build system, so anything we did to find and fix the problem in 9.0.x wouldn't help any future versions.