Subject: pkg/21874: math/octave fails to compile using gcc3.3
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jschauma@netmeister.org>
List: netbsd-bugs
Date: 06/13/2003 13:16:41
>Number:         21874
>Category:       pkg
>Synopsis:       math/octave fails to compile using gcc3.3
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 13 17:17:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Jan Schaumann
>Release:        NetBSD 1.6.1_STABLE
>Organization:
	
>Environment:
	
	
System: NetBSD dogfish-head.cs.stevens-tech.edu 1.6.1_STABLE NetBSD 1.6.1_STABLE (BOCK) #2: Thu May 22 15:59:50 EDT 2003 jschauma@amstel.cs.stevens-tech.edu:/usr/stable-src/sys/arch/i386/compile/BOCK i386
Architecture: i386
Machine: i386
>Description:
	Trying to install math/octave using gcc-3.3 fails as follows:

gmake[2]: Entering directory `/share/pkgsrc/math/octave/work.i386/octave-2.0.16/liboctave'
/usr/pkg/gcc-3.3/bin/c++ -c -I/share/pkgsrc/math/octave/work.i386/include  -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -I../glob -I../glob -I /usr/pkg/include -DHAVE_CONFIG_H -mieee-fp -fno-rtti -fno-exceptions -fno-implicit-templates -O2 Bounds.cc
In file included from /usr/pkg/gcc-3.3/include/c++/3.3/backward/iostream.h:31,
                 from Bounds.cc:31:
/usr/pkg/gcc-3.3/include/c++/3.3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
In file included from mx-defs.h:72,
		 from dColVector.h:32,
		 from Bounds.h:32,
		 from Bounds.cc:33:
oct-cmplx.h:28: error: syntax error before `;' token
In file included from dColVector.h:32,
                 from Bounds.h:32,
		 from Bounds.cc:33:
mx-defs.h:81: error: parse error before `&' token
mx-defs.h:82: error: `c_c_Mapper' was not declared in this scope
mx-defs.h:82: error: parse error before `&' token
mx-defs.h:82: error: ISO C++ forbids declaration of `Complex' with no type
mx-defs.h:82: error: typedef `Complex' is initialized (use __typeof__ instead)
gmake[2]: *** [Bounds.o] Error 1
gmake[2]: Leaving directory `/share/pkgsrc/math/octave/work.i386/octave-2.0.16/liboctave'
gmake[1]: *** [liboctave] Error 2
gmake[1]: Leaving directory `/share/pkgsrc/math/octave/work.i386/octave-2.0.16'
gmake: *** [all] Error 2


	math/octave-current fails with a different error:

In file included from c-file-ptr-stream.cc:31:
c-file-ptr-stream.h: In constructor `c_file_ptr_buf::c_file_ptr_buf(FILE*, int 
(*)(FILE*))':
c-file-ptr-stream.h:57: error: no matching function for call to `
std::basic_filebuf<char, std::char_traits<char> >::basic_filebuf(int, int, 
std::_Ios_Openmode)'
/usr/pkg/gcc-3.3/include/c++/3.3/iosfwd:86: error: candidates are: 
std::basic_filebuf<char, std::char_traits<char> >::basic_filebuf(const 
std::basic_filebuf<char, std::char_traits<char> >&)
/usr/pkg/gcc-3.3/include/c++/3.3/fstream:144: error:                 
std::basic_filebuf<_CharT, _Traits>::basic_filebuf() [with _CharT = char, 
_Traits = std::char_traits<char>]
gmake[2]: *** [c-file-ptr-stream.o] Error 1
gmake[2]: Leaving directory `/share/pkgsrc/math/octave-current/work.i386/octave-2.1.33/src'


>How-To-Repeat:
	cd /usr/pkgsrc/lang/gcc3
	make install
	echo .sinclude \"/usr/pkg/share/examples/gcc/mk.conf\" >> /etc/mk.conf
	cd /usr/pkgsrc/math/octave
	make
>Fix:
	dunno.  suggest not using gcc3 ?  both octave and octave-current
	build fine with 2.95.3.
>Release-Note:
>Audit-Trail:
>Unformatted: