Emerging of the driver symlinks /usr/lib64/libGL.la to /usr/lib/opengl/ati/lib/libGL.la Yet this link points to an empty file. -rw-r--r-- 1 root root 0 Jan 24 08:51 /usr/lib/opengl/ati/lib/libGL.la Reproducible: Always Steps to Reproduce: 1.emerge ati-drivers 2.try to compile an application which depends on libGL 3. Actual Results: The application won't compile: libtool: link: `/usr/lib64/libGL.la' is not a valid libtool archive Expected Results: libGL.la should be a valid libtool archive.
should be fixed in the r3
Having here also empty libGL.la Same with ati-drivers-8.8.25-r3
To me it seems that the ebuild file tries to copy over the libGL.la from xorg-x11. But my x11 has no such file, so the result is an empty file. Is it possible that xorg-x11 ONLY builds libGL if opengl is in the use mask or a driver is installed which supplies opengl (such as the ATI driver -> PROVIDE="virtual/opengl")? If this assumption is correct, then one would have to re-emerge xorg-x11 (since ati-drivers now supply opengl), then re-emerge ati-drivers (so it can copy over the libGL.la created by xorg-x11)? I will attach a patch for an amd64 system which will let at least compile programs. Store the libGL.la in /usr/lib64/opengl/ati/lib and symlink it in /usr/lib64 gentoo lib64 # ll libGL.la lrwxrwxrwx 1 root root 34 Jan 25 21:50 libGL.la -> /usr/lib64/opengl/ati/lib/libGL.la
Created attachment 49512 [details] libGL.la file for ATI drivers (amd64)
please tell me the xorg version you are using
The last version available for ~amd64 is 6.8.1.902 I think. I cannot check at the moment. I didn't have opengl in my USE flags when I emerged it though. Don't know if this poses a problem.
I emerged xorg-x11 BEFORE I had a usable ATI driver. ATI drivers supplies "virtual-opengl" so maybe a re-emerge of xorg-x11 with the ati drivers installed would create the libGL.la, but that is just a guess.
no that won't do it. Luca, perhaps it'd be best to have a libGL.la file in ati-drivers/files (like nvidia-glx does) rather than use xorg-x11's
Yes, I think that makes sense since the ebuild supplies virtual-opengl.
the ati-drivers _requires_ the xorg-x11 opengl anyway, and I think is completely wrong pick a set of includes and libtool files and add them in the ebuild even if they are just copies of the xorg-x11 ones
Actually luca, it requires a USE=opengl xorg-x11 build otherwise it doesn't install a proper libGL.la file... maybe you could have it die() if it doesn't find a libGL.la file to copy?
I'll put a warning at the end if you don't have opengl useflag set. bug renamed and marked as fixed
Hopefully fixed.