Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 212298

Summary: x11-libs/libX11 & x11-libs/libXt 'cpp' test breaks on IRIX
Product: Gentoo/Alt Reporter: Stuart Shelton <srcshelton>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED UPSTREAM    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: MIPS   
OS: IRIX   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to allow libX11 to build on compilers lacking '-undef' and/or '-traditional'

Description Stuart Shelton 2008-03-04 17:16:50 UTC
The configure script for libX11 tries to get a clean environment with the (GNU?) '-undef' option to cpp - which doesn't exist on IRIX.

This causes the build to error-out.  Simply reversing the sense of this test allows the build to complete successfully, though - and I can't see any ill affects of having a few additional values defined.

(It looks as if 'cpp' is only used for building the man-pages in any case, and there's a comment in the configure script stating that their method of testing cpp is probably a hack ;)
Comment 1 Stuart Shelton 2008-03-11 18:12:14 UTC
... still a problem in libX11-1.1.4, same fix still works.
Comment 2 Stuart Shelton 2008-03-12 12:10:49 UTC
x11-libs/libXt-1.0.5 affected too
Comment 3 Stuart Shelton 2009-02-02 11:16:21 UTC
Created attachment 180680 [details, diff]
Patch to allow libX11 to build on compilers lacking '-undef' and/or '-traditional'

Preserve warning, but remove erroneous abort from libX11.
Comment 4 Fabian Groffen gentoo-dev 2009-10-25 09:37:38 UTC
I can't find neither of these symbols in the configure files of recent libX11, so I assume upstream has fixed this problem.
Comment 5 Stuart Shelton 2009-10-29 12:00:23 UTC
Whether through IRIX-MIPSpro-wrapper or through (hopefully) upstream changes, the latest libX11 and libXt build cleanly! :D