Steps to reproduce: 1. emerge media-libs/mesa-9999 from overlay with USE="openvg" 2. try to emerge media-libs/mesa-10.1.0 or 10.0.4 with USE="openvg" libtool: relink: x86_64-pc-linux-gnu-g++ -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../lib64/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/crtbeginS.o .libs/egl.o .libs/egl_pipe.o .libs/egl_st.o -Wl,--whole-archive ../../../../src/gallium/auxiliary/.libs/libgallium.a ../../../../src/gallium/drivers/identity/.libs/libidentity.a ../../../../src/gallium/drivers/trace/.libs/libtrace.a ../../../../src/gallium/drivers/rbug/.libs/librbug.a ../../../../src/gallium/state_trackers/egl/.libs/libegl.a ../../../../src/gallium/winsys/sw/xlib/.libs/libws_xlib.a ../../../../src/mesa/.libs/libmesagallium.a ../../../../src/gallium/state_trackers/vega/.libs/libvega.a ../../../../src/gallium/winsys/radeon/drm/.libs/libradeonwinsys.a ../../../../src/gallium/drivers/r600/.libs/libr600.a ../../../../src/gallium/drivers/softpipe/.libs/libsoftpipe.a ../../../../src/gallium/drivers/llvmpipe/.libs/libllvmpipe.a -Wl,--no-whole-archive -L/var/tmp/portage/media-libs/mesa-10.0.4/work/Mesa-10.0.4-amd64/src/gbm/.libs -L/var/tmp/portage/media-libs/mesa-10.0.4/work/Mesa-10.0.4-amd64/src/mapi/shared-glapi/.libs -L/usr/lib64 -Wl,--as-needed -L/var/tmp/portage/media-libs/mesa-10.0.4/image//usr/lib64 -lEGL -lX11-xcb -lxcb-dri2 -lxcb-xfixes -lxcb-render -lxcb-shape -lxcb -lX11 -lXext -lXfixes -lgbm -ludev -ldrm -lglapi -lOpenVG -lelf -ldrm_radeon -lz -lpthread -lffi -lcurses -ldl -lLLVM-3.4 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../lib64/crtn.o -march=native -O2 -Wl,--no-undefined -Wl,--allow-multiple-definition -Wl,-O1 -Wl,--version-script=../../../../src/gallium/targets/egl-static/egl.link -pthread -Wl,-soname -Wl,egl_gallium.so -o .libs/egl_gallium.so ../../../../src/gallium/state_trackers/vega/.libs/libvega.a(vgu.o): In function `vgu_append_float_coords': /var/tmp/portage/media-libs/mesa-10.0.4/work/Mesa-10.0.4-amd64/src/gallium/state_trackers/vega/vgu.c:51: undefined reference to `vgAppendPathData' ../../../../src/gallium/state_trackers/vega/.libs/libvega.a(vgu.o): In function `vguLine': /var/tmp/portage/media-libs/mesa-10.0.4/work/Mesa-10.0.4-amd64/src/gallium/state_trackers/vega/vgu.c:65: undefined reference to `vgGetPathCapabilities' ../../../../src/gallium/state_trackers/vega/.libs/libvega.a(vgu.o): In function `vguPolygon': /var/tmp/portage/media-libs/mesa-10.0.4/work/Mesa-10.0.4-amd64/src/gallium/state_trackers/vega/vgu.c:98: undefined reference to `vgGetPathCapabilities' ../../../../src/gallium/state_trackers/vega/.libs/libvega.a(vgu.o): In function `vguRect': /var/tmp/portage/media-libs/mesa-10.0.4/work/Mesa-10.0.4-amd64/src/gallium/state_trackers/vega/vgu.c:144: undefined reference to `vgGetPathCapabilities' ../../../../src/gallium/state_trackers/vega/.libs/libvega.a(vgu.o): In function `vguRoundRect': /var/tmp/portage/media-libs/mesa-10.0.4/work/Mesa-10.0.4-amd64/src/gallium/state_trackers/vega/vgu.c:187: undefined reference to `vgGetPathCapabilities' ../../../../src/gallium/state_trackers/vega/.libs/libvega.a(vgu.o): In function `vguEllipse': /var/tmp/portage/media-libs/mesa-10.0.4/work/Mesa-10.0.4-amd64/src/gallium/state_trackers/vega/vgu.c:238: undefined reference to `vgGetPathCapabilities' ../../../../src/gallium/state_trackers/vega/.libs/libvega.a(vgu.o):/var/tmp/portage/media-libs/mesa-10.0.4/work/Mesa-10.0.4-amd64/src/gallium/state_trackers/vega/vgu.c:275: more undefined references to `vgGetPathCapabilities' follow collect2: error: ld returned 1 exit status libtool: install: error: relink `egl_gallium.la' with the above command before installing it Makefile:786: recipe for target 'install-eglLTLIBRARIES' failed gmake[4]: *** [install-eglLTLIBRARIES] Error 1 gmake[4]: Leaving directory '/var/tmp/portage/media-libs/mesa-10.0.4/work/Mesa-10.0.4-amd64/src/gallium/targets/egl-static' Makefile:981: recipe for target 'install-am' failed gmake[3]: *** [install-am] Error 2 gmake[3]: Leaving directory '/var/tmp/portage/media-libs/mesa-10.0.4/work/Mesa-10.0.4-amd64/src/gallium/targets/egl-static' Makefile:540: recipe for target 'install-recursive' failed gmake[2]: *** [install-recursive] Error 1 gmake[2]: Leaving directory '/var/tmp/portage/media-libs/mesa-10.0.4/work/Mesa-10.0.4-amd64/src/gallium/targets' Makefile:530: recipe for target 'install-recursive' failed gmake[1]: *** [install-recursive] Error 1 gmake[1]: Leaving directory '/var/tmp/portage/media-libs/mesa-10.0.4/work/Mesa-10.0.4-amd64/src' Makefile:581: recipe for target 'install-recursive' failed make: *** [install-recursive] Error 1 * ERROR: media-libs/mesa-10.0.4::gentoo failed (install phase): * emake failed libtool seems to use the system's libs or headers of openvg. Simple unmerging mesa does not help because of preserved libs. The only way to downgrade is disabling openvg use flag. After emerging any mesa (and all other packages that use openvg) with that disabled flag it is possible to emerge the failing versions with enabled flag again. /usr/lib64/opengl/xorg-x11/lib/libOpenVG* and /usr/lib64/opengl/xorg-x11/include/VG/* are installed by mesa ls -l /usr/include/VG insgesamt 0 lrwxrwxrwx 1 root root 47 9. Apr 16:25 openvg.h -> ../../lib64/opengl/xorg-x11/include/VG/openvg.h lrwxrwxrwx 1 root root 46 9. Apr 16:25 vgext.h -> ../../lib64/opengl/xorg-x11/include/VG/vgext.h lrwxrwxrwx 1 root root 51 9. Apr 16:25 vgplatform.h -> ../../lib64/opengl/xorg-x11/include/VG/vgplatform.h lrwxrwxrwx 1 root root 44 9. Apr 16:25 vgu.h -> ../../lib64/opengl/xorg-x11/include/VG/vgu.h these links are created by "eselect opengl set xorg-x11" as I have read in https://bugs.gentoo.org/show_bug.cgi?id=482980#c3 On a fresh install, does emerge mesa take its own just compiled openvg files?
(In reply to jospezial from comment #0) > On a fresh install, does emerge mesa take its own just compiled openvg files? Yes, but in src_install() it will pick anything from $libdir it can find (see bug #501328 which this might well be a duplicate of).
I suspect you don't need openvg, and it's been disabled upstream already, so I'm inclined to say WONTFIX.