Subject: pkg/30942: xterm-202 fails to build
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <stuart@zeus.com>
List: pkgsrc-bugs
Date: 08/08/2005 10:01:00
>Number:         30942
>Category:       pkg
>Synopsis:       xterm-202 fails to build
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 08 10:01:00 +0000 2005
>Originator:     Stuart Shelton
>Release:        n/a
>Organization:
>Environment:
IRIX64 octane 6.5 01062343 IP30 mips
>Description:
The xterm build specifies a compiler flag of "-nostdinc" (which drops the common include directories such as /usr/include) but then tries to include (or includes another header which tries to include) <sys/types.h> which can no longer be found, since /usr/include isn't in the include path.

This may be because IRIX' standard headers are somewhat more convoluted than usual - but I'm surprised this issue (presumably) isn't hit using the GCC compilter suite instead of MIPSpro - or does gcc ignore the -nostdinc option?
>How-To-Repeat:
"bmake install" in pkgsrc/x11/xterm on IRIX
>Fix:

Edit the Makefile to remove references to "-nostdinc" and rebuild.  I guess that adding "-I/usr/include" would be an alternative, but that seems a little pointless since we've just excluded it.

Why was nostdinc there in the first place?