Subject: pkg/27267: pkgsrc/devel/nbitools fails to compile on IRIX 5.3
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <geos@epost.de>
List: pkgsrc-bugs
Date: 10/15/2004 20:37:14
>Number:         27267
>Category:       pkg
>Synopsis:       pkgsrc/devel/nbitools fails to compile on IRIX 5.3
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 15 20:38:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Georg Schwarz
>Release:        current pkgsrc
>Organization:
>Environment:
IRIX lorenz 5.3 08031225 IP20 mips
>Description:
pkgsrc/devel/nbitools fails to compile on IRIX 5.3 becasue in config/imake/imake.c  struct stat is unknown without the respective includes.
>How-To-Repeat:

>Fix:
Expand patch-ag to accomodate for the following modification:

--- config/imake/imake.c.orig1  Fri Oct 15 22:01:50 2004
+++ config/imake/imake.c        Fri Oct 15 22:04:22 2004
@@ -145,11 +145,13 @@
  *     #include INCLUDE_IMAKEFILE
  *     <add any global targets like 'clean' and long dependencies>
  */
-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__) || defined(__sgi)
 /* This needs to be before _POSIX_SOURCE gets defined */
 # include <sys/param.h>
 # include <sys/types.h>
+#ifndef __sgi
 # include <sys/sysctl.h>
+#endif
 # include <sys/stat.h>
 #endif
 #include <stdio.h>


or something similar. It is important to include sys/types.h and sys/stat.h. sys/sysctl.h does not exist pn IRIX 5.3 (and is not needed).
>Release-Note:
>Audit-Trail:
>Unformatted: