Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114181 - media-libs/mesa-6.4-r1 fails with USE="motif"
Summary: media-libs/mesa-6.4-r1 fails with USE="motif"
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-01 12:29 UTC by Joe Sapp (RETIRED)
Modified: 2005-12-01 12:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to media-libs/mesa-6.4-r1.ebuild (mesa-6.4-r1.ebuild.patch,409 bytes, patch)
2005-12-01 12:30 UTC, Joe Sapp (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Sapp (RETIRED) gentoo-dev 2005-12-01 12:29:27 UTC
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.
Comment 1 Joe Sapp (RETIRED) gentoo-dev 2005-12-01 12:30:54 UTC
Created attachment 73905 [details, diff]
patch to media-libs/mesa-6.4-r1.ebuild
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2005-12-01 12:40:33 UTC
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