From bug-octave-request at bevo dot che dot wisc dot edu Fri Sep 22 07:36:22 1995 Subject: Octave-1.1.1 will not compile with gcc 2.7.0 on Solaris 2.4 From: Mehrdad Ghassempoory - ENGIN To: bug-octave at che dot utexas dot edu Date: Fri, 22 Sep 1995 13:31:48 +0100 I am trying to build octave on Sparc - Solaris-2.4 I am running GCC-2.7.0 I have configured the make with the following command: CC=gcc ./configure \ --with-f2c \ --enable-dld \ --enable-lite-kernel 2>&1 | tee conf-octave.history the make process will fail with a compilation error in one of Octave modules: ******************************** LOG STARTS HERE ************************ .... previous lines deleted making Bounds.d from Bounds.cc make[2]: Leaving directory `/aux/users/mehrdad/gnu/octave-1.1.1/liboctave' make[2]: Entering directory `/aux/users/mehrdad/gnu/octave-1.1.1/liboctave' c++ -c -I. -I../src -I.. -I../liboctave -I../src -DHAVE_CONFIG_H -fno-implicit-templates -g -O Bounds.cc c++ -c -I. -I../src -I.. -I../liboctave -I../src -DHAVE_CONFIG_H -fno-implicit-templates -g -O CollocWt.cc c++ -c -I. -I../src -I.. -I../liboctave -I../src -DHAVE_CONFIG_H -fno-implicit-templates -g -O DAE.cc DAE.cc: In function `int ddassl_f(double *, double *, double *, double *, int *, double *, int *)': DAE.cc:212: `i' undeclared (first use this function) DAE.cc:212: (Each undeclared identifier is reported only once DAE.cc:212: for each function it appears in.) DAE.cc: In method `class Matrix DAE::integrate(const class ColumnVector &, class Matrix &)': DAE.cc:376: `i' undeclared (first use this function) DAE.cc: In method `class Matrix DAE::integrate(const class ColumnVector &, class Matrix &, const class ColumnVector &)': DAE.cc:465: `i' undeclared (first use this function) make[2]: *** [DAE.o] Error 1 make[2]: Leaving directory `/aux/users/mehrdad/gnu/octave-1.1.1/liboctave' make[1]: *** [liboctave] Error 2 make[1]: Leaving directory `/aux/users/mehrdad/gnu/octave-1.1.1' make: *** [all] Error 2 ****************************** END OF LOG *************************** I have edited the file DAE.cc and a couple of other files with the same kind of problem and ran make again. This time GCC complained about some of class definitions and aborted the make. Has anyone else had this problem with GCC-2.7.0 and Octave? Is there a patch anywhere to correct this problem?