Subject: pkg/22702: devel/anjuta fails to build
To: None <gnats-bugs@gnats.netbsd.org>
From: None <pino@dohd.org>
List: netbsd-bugs
Date: 09/06/2003 12:32:30
>Number:         22702
>Category:       pkg
>Synopsis:       devel/anjuta fails to build
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 06 10:33:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6X 28/08/2003 snapshot with gcc3
>Organization:
	
>Environment:
System: NetBSD concretus.ipv6.stack.nl 1.6X NetBSD 1.6X (GENERIC_LAPTOP) #0: Fri Aug 29 04:01:33 EST 2003 mrg@bigkev.thistledown.com.au:/scratch/mrg/obj/i386/home/mrg/src/netbsd/rosrc/sys/arch/i386/compile/GENERIC_LAPTOP i386
Architecture: i386
Machine: i386
>Description:
	devel/anjuta fails to build, with an odd error:

[ ...]
gmake[3]: Entering directory `/spare/netbsd/pkgsrc/devel/anjuta/work/anjuta-1.0.1/tagmanager'
source='args.c' object='args.o' libtool=no \
depfile='.deps/args.Po' tmpdepfile='.deps/args.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I.. -I./include -I/usr/pkg/include/glib/glib-1.2 -I/usr/pkg/lib/glib/include  -I/usr/X11R6/include/gnome-1.0 -I/usr/X11R6/include/gdk-pixbuf-1.0 -I/usr/X11R6/include/libglade-1.0  -I/usr/pkg/include -I/usr/X11R6/include -I/usr/X11R6/include/gtk-1.2 -I/usr/pkg/include/glib/glib-1.2 -I/usr/pkg/lib/glib/include -I/usr/X11R6/include  -O2 -march=pentium -I/usr/pkg/include -I/usr/X11R6/include -c `test -f 'args.c' || echo './'`args.c
In file included from /usr/include/machine/lock.h:3,
                 from /usr/include/pthread_types.h:42,
                 from /usr/include/sys/types.h:361,
                 from /usr/include/stdlib.h:41,
                 from vstring.h:18,
                 from entry.h:20,
                 from debug.h:20,
                 from args.c:21:
/usr/include/x86/lock.h:79: error: parse error before "__attribute__"
/usr/include/x86/lock.h:79: error: parse error before ')' token
/usr/include/x86/lock.h:81: error: parse error before "__attribute__"
/usr/include/x86/lock.h:81: error: parse error before ')' token
/usr/include/x86/lock.h:83: error: parse error before "__attribute__"
/usr/include/x86/lock.h:83: error: parse error before ')' token
/usr/include/x86/lock.h:85: error: parse error before "__attribute__"
/usr/include/x86/lock.h:85: error: parse error before ')' token
gmake[3]: *** [args.o] Error 1

	I'm using the gcc3 toolchain; it's probably related to that

>How-To-Repeat:
	Try and make devel/anjuta on a gcc3 system
>Fix:
	I don't know a fix - I only know a nasty workaround, and I don't
	really know *why* it works. Adding a "#include <stdlib.h>" at the
	begin of anjuta-1.0.1/tagmanager/general.h seems to work.
>Release-Note:
>Audit-Trail:
>Unformatted: