From bug-octave-request at bevo dot che dot wisc dot edu Wed Sep 2 14:25:28 1998 Subject: cont'd egcs compile problems From: "John W. Eaton" To: Adam Zdunek Cc: bug-octave at bevo dot che dot wisc dot edu Date: Wed, 2 Sep 1998 14:25:47 -0500 (CDT) On 25-Aug-1998, Adam Zdunek wrote: | I found and applied the patch 270 to octave-2.0.13 | which resolved my bug report Aug-21-1998. | | Using the egcs snapshot: | | htzka:~/Octave/octave-2.0.13$ gcc -v | Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.91.53/sp | ecs | gcc version egcs-2.91.53 19980803 (gcc2 ss-980609 experimental) | | I get the following complaint over a undeclared variable in src/help.cc which I | find weired: | | c++ -c -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H -m | ieee-fp -fno-rtti -fno-exceptions -fno-implicit-templates -g -O2 -Wall help.cc | help.cc: In function `int try_info(const class string &)': | help.cc:562: `status' undeclared (first use this function) | help.cc:562: (Each undeclared identifier is reported only once | help.cc:562: for each function it appears in.) | help.cc:562: warning: ANSI C++ forbids declaration `__in' with no type | help.cc:563: warning: ANSI C++ forbids declaration `__in' with no type | make[2]: *** [help.o] Error 1 | make[2]: Leaving directory `/mnt1/home/zka/Octave/octave-2.0.13/src' | make[1]: *** [src] Error 2 | make[1]: Leaving directory `/mnt1/home/zka/Octave/octave-2.0.13' | make: *** [all] Error 2 | htzka:~/Octave/octave-2.0.13$ I'd have to guess a bug in the egcs snapshot you are using. Have you tried a more recent snapshot since then? If you think the bug is really in Octave, can you please try to debug it? I believe the lines that the error messages refer to are if (WIFEXITED (status)) status = WEXITSTATUS (status); else status = 127; What are the definitions of WIFEXITED and WEXITSTATUS on your system? jwe