Subject: pkg/6845: gtk+-1.1.12 pkg doesn't build (patch included)
To: None <>
From: Hubert Feyrer <>
List: netbsd-bugs
Date: 01/19/1999 02:43:20
>Number:         6845
>Category:       pkg
>Synopsis:       gtk+-1.1.12 pkg doesn't build (patch included)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 18 17:50:00 1999
>Originator:     Hubert Feyrer
Hubert Feyrer <>
>Release:        1.3I
System: NetBSD miyu 1.3I NetBSD 1.3I (MIYU) #15: Sun Jan 17 23:19:10 MET 1999 feyrer@miyu:/data/cvs/src/sys/arch/i386/compile/MIYU i386

	when compiling pkgsrc/x11/gtk, I get:

/usr/pkg/bin/pkglibtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Gdk\"    -I..            -DGTK_NO_CHECK_CASTS    -DUSE_XIM               -I/usr/pkg/lib/glib/include -I/usr/pkg/include/glib             -I/usr/X11R6/include -I/usr/pkg/include -pipe -O2 -Wall -c gdkimage.c
cc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Gdk\" -I.. -DGTK_NO_CHECK_CASTS -DUSE_XIM -I/usr/pkg/lib/glib/include -I/usr/pkg/include/glib -I/usr/X11R6/include -I/usr/pkg/include -pipe -O2 -Wall -c -fPIC -DPIC gdkimage.c
In file included from gdkimage.c:37:
/usr/include/sys/ipc.h:55: syntax error before `ushort'
*** Error code 1

	cd /usr/pkgsrc/x11/gtk ; make

	Include the following as patches/patch-ad:

--- gdk/gdkimage.c.orig	Tue Jan 19 02:38:24 1999
+++ gdk/gdkimage.c	Tue Jan 19 02:38:45 1999
@@ -18,6 +18,7 @@
 #include <config.h>
+#ifndef __NetBSD__
 /* gcc -ansi -pedantic on GNU/Linux causes warnings and errors
  * unless this is defined:
  * warning: #warning "Files using this header must be compiled with _SVID_SOURCE or _XOPEN_SOURCE"
@@ -25,6 +26,7 @@
 #ifndef _XOPEN_SOURCE
 #  define _XOPEN_SOURCE 1
+#endif /* __NetBSD__ */
 #include <stdlib.h>
 #include <sys/types.h>