When compiling media-libs/mesa-6.4-r1 after x11-libs/openmotif has been emerged (so "motif" is effectively in USE), the build fails (see following). After some investigation, I found that Xm/PrimitiveP.h is provided by openmotif and lesstif; the Makefile wasn't using their include directories, but rather "/usr/include/Motif1.2". I fixed this by patching the ebuild with the attached patch. libnurbs/nurbtess/sampleComp.cc:162: warning: 'gridMidIndex1' might be used uninitialized in this function libnurbs/nurbtess/sampleComp.cc:162: warning: 'gridMidIndex2' might be used uninitialized in this function libnurbs/nurbtess/sampleCompRight.cc: In function `void sampleCompRight(Real*, Real*, vertexArray*, Int, Int, vertexArray*, Int, Int, gridBoundaryChain*, Int, Int, Int, Int, Int, Int, primStream*)': libnurbs/nurbtess/sampleCompRight.cc:75: warning: 'gridMidIndex2' might be used uninitialized in this function libnurbs/nurbtess/sampleMonoPoly.cc: In function `void findLeftGridIndices(directedLine*, Int, Int, gridWrap*, Int*, Int*)': libnurbs/nurbtess/sampleMonoPoly.cc:979: warning: 'isHoriz' might be used uninitialized in this function libnurbs/nurbtess/sampleMonoPoly.cc:987: warning: 'slop' might be used uninitialized in this function libnurbs/nurbtess/sampleMonoPoly.cc: In function `void findRightGridIndices(directedLine*, Int, Int, gridWrap*, Int*, Int*)': libnurbs/nurbtess/sampleMonoPoly.cc:1105: warning: 'slop' might be used uninitialized in this function /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object. In file included from GLwMDrawA.c:41: GLwDrawA.c:53:27: Xm/PrimitiveP.h: No such file or directory In file included from GLwMDrawAP.h:41, from GLwDrawA.c:54, from GLwMDrawA.c:41: GLwDrawAP.h:57: error: parse error before "XmPrimitiveClassPart" GLwDrawAP.h:57: warning: no semicolon at end of struct or union [ snip errors based on missing header file ] make[3]: *** [GLwMDrawA.o] Error 1 make[2]: *** [subdirs] Error 1 make[1]: *** [default] Error 1 make: *** [linux-dri-x86] Error 2 !!! ERROR: media-libs/mesa-6.4-r1 failed. !!! Function src_compile, Line 119, Exitcode 2 !!! Build failed !!! If you need support, post the topmost build error, NOT this status message.
Created attachment 73905 [details, diff] patch to media-libs/mesa-6.4-r1.ebuild
That shouldn't be necessary. Your motif installation is broken. $ ls -l /usr/include/Xm lrwxrwxrwx 1 root root 29 2005-04-28 21:55 /usr/include/Xm -> /usr/include/openmotif-2.2/Xm