Subject: devel/libsigc++2 fails with old gcc?
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 03/22/2005 16:06:59
This is with GCC 2.95.3 under NetBSD 1.6.2_STABLE. Using gcc3-c++-3.3.3
works to build this though.

===> Checking for vulnerabilities in libsigc++2-2.0.6
===> Building for libsigc++2-2.0.6
/usr/pkg/bin/gmake  all-recursive
gmake[1]: Entering directory `/usr/pkg/tmp/pkgsrc/devel/libsigc++2/work.rainier/libsigc++-2.0.6'
Making all in sigc++
gmake[2]: Entering directory `/usr/pkg/tmp/pkgsrc/devel/libsigc++2/work.rainier/libsigc++-2.0.6/sigc++'
/usr/pkg/bin/gmake  all-am
gmake[3]: Entering directory `/usr/pkg/tmp/pkgsrc/devel/libsigc++2/work.rainier/libsigc++-2.0.6/sigc++'
gmake[3]: Nothing to be done for `all-am'.
gmake[3]: Leaving directory `/usr/pkg/tmp/pkgsrc/devel/libsigc++2/work.rainier/libsigc++-2.0.6/sigc++'
gmake[2]: Leaving directory `/usr/pkg/tmp/pkgsrc/devel/libsigc++2/work.rainier/libsigc++-2.0.6/sigc++'
Making all in tests
gmake[2]: Entering directory `/usr/pkg/tmp/pkgsrc/devel/libsigc++2/work.rainier/libsigc++-2.0.6/tests'
source='test_functor_trait.cc' object='test_functor_trait.o' libtool=no \
DEPDIR=.deps depmode=gcc /bin/sh ../depcomp \
c++  -I. -I. -I.. -I.. -I..  -I/usr/pkg/include  -O2 -s -I/usr/pkg/include -c -o test_functor_trait.o test_functor_trait.cc
In file included from test_functor_trait.cc:7:
../sigc++/adaptors/bind.h:1103: `deduce_result_type_internal' is not a template
../sigc++/adaptors/bind.h:1103: `type' is not a class or namespace
../sigc++/adaptors/bind.h:1103: ANSI C++ forbids declaration `type' with no type
../sigc++/adaptors/bind.h:1316: `deduce_result_type_internal' is not a template
../sigc++/adaptors/bind.h:1316: `type' is not a class or namespace
../sigc++/adaptors/bind.h:1316: ANSI C++ forbids declaration `type' with no type
../sigc++/adaptors/bind.h:1502: `deduce_result_type_internal' is not a template
../sigc++/adaptors/bind.h:1502: `type' is not a class or namespace
../sigc++/adaptors/bind.h:1502: ANSI C++ forbids declaration `type' with no type
../sigc++/adaptors/bind.h:1662: `deduce_result_type_internal' is not a template
../sigc++/adaptors/bind.h:1662: `type' is not a class or namespace
../sigc++/adaptors/bind.h:1662: ANSI C++ forbids declaration `type' with no type
../sigc++/adaptors/bind.h:1797: `deduce_result_type_internal' is not a template
../sigc++/adaptors/bind.h:1797: `type' is not a class or namespace
../sigc++/adaptors/bind.h:1797: ANSI C++ forbids declaration `type' with no type
../sigc++/adaptors/bind.h:1908: `deduce_result_type_internal' is not a template
../sigc++/adaptors/bind.h:1908: `type' is not a class or namespace
../sigc++/adaptors/bind.h:1908: ANSI C++ forbids declaration `type' with no type
../sigc++/adaptors/bind.h:1999: `deduce_result_type_internal' is not a template
../sigc++/adaptors/bind.h:1999: `type' is not a class or namespace
../sigc++/adaptors/bind.h:1999: ANSI C++ forbids declaration `type' with no type
gmake[2]: *** [test_functor_trait.o] Error 1
gmake[2]: Leaving directory `/usr/pkg/tmp/pkgsrc/devel/libsigc++2/work.rainier/libsigc++-2.0.6/tests'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/pkg/tmp/pkgsrc/devel/libsigc++2/work.rainier/libsigc++-2.0.6'
gmake: *** [all] Error 2
*** Error code 2

Stop.
make: stopped in /usr/local/pkgsrc/devel/libsigc++2
===>
===> There was an error during the ``build'' phase.
===> Please investigate the following for more information:
===>      * log of the build
===>      * /usr/pkg/tmp/pkgsrc/devel/libsigc++2/work.rainier/.work.log
===>
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/devel/libsigc++2

Using:
GCC_REQD=               3.0
makes this build fine.



 Jeremy C. Reed

 	  	 	 technical support & remote administration
	  	 	 http://www.pugetsoundtechnology.com/