Subject: pkg/6845: gtk+-1.1.12 pkg doesn't build (patch included)
To: None <gnats-bugs@gnats.netbsd.org>
From: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
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
>Last-Modified:
>Originator: Hubert Feyrer
>Organization:
--
Hubert Feyrer <hubert.feyrer@rz.uni-regensburg.de>
>Release: 1.3I
>Environment:
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
>Description:
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
>How-To-Repeat:
cd /usr/pkgsrc/x11/gtk ; make
>Fix:
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
+#endif /* __NetBSD__ */
#include <stdlib.h>
#include <sys/types.h>
>Audit-Trail:
>Unformatted: