Subject: pkg/23274: devel/gtl won't build with gcc 3.3
To: None <gnats-bugs@gnats.netbsd.org>
From: None <kristerw@netbsd.org>
List: netbsd-bugs
Date: 10/26/2003 01:38:36
>Number:         23274
>Category:       pkg
>Synopsis:       devel/gtl won't build with gcc 3.3
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 26 01:39:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Krister Walfridsson
>Release:        NetBSD 1.6ZD
>Organization:
	
>Environment:
	
	
NetBSD pccurrent 1.6ZD NetBSD 1.6ZD (KWA) #0: Sat Oct 25 20:35:30 CEST 2003  cato@pc:/usr/local/tmp/nbsd031024/src/sys/arch/i386/compile/KWA i386
gcc (GCC) 3.3.2-nb1
Architecture: i386
Machine: i386
>Description:
/bin/sh ../libtool --mode=compile c++ -DPACKAGE=\"GTL\" -DVERSION=\"0.3.3\"  -I. -I. -I../include    -O2 -c edge.cpp
c++ -DPACKAGE=\"GTL\" -DVERSION=\"0.3.3\" -I. -I. -I../include -O2 -c edge.cpp  -fPIC -DPIC -o .libs/edge.o
In file included from ../include/GTL/node.h:12,
                 from ../include/GTL/node_data.h:12,
                 from edge.cpp:8:
../include/GTL/edge.h:89: error: parse error before `)' token
../include/GTL/edge.h:94: error: parse error before `)' token
../include/GTL/edge.h:125: error: ISO C++ forbids declaration of `ostream' with 
   no type
../include/GTL/edge.h:125: error: `ostream' is neither function nor member 
   function; cannot be declared friend
../include/GTL/edge.h:125: error: parse error before `&' token
In file included from ../include/GTL/node_data.h:12,
                 from edge.cpp:8:
../include/GTL/node.h:40: error: syntax error before `;' token
../include/GTL/node.h:41: error: syntax error before `;' token
../include/GTL/node.h:101: error: parse error before `)' token
../include/GTL/node.h:125: error: ISO C++ forbids declaration of `list' with no 
   type
../include/GTL/node.h:125: error: template-id `list<edge>' used as a declarator
../include/GTL/node.h:125: error: parse error before `::' token
[...]

>How-To-Repeat:
cd pkgsrc/devel/gtl
make
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: