From bug-octave-request at bevo dot che dot wisc dot edu Sun Feb 15 11:29:06 1998 Subject: Trouble compiling Octave 2.0.10, sighandlers.cc with gcc 2.8.0 From: roberto at banach dot npt dot nuwc dot navy dot mil (Roberto Dominijanni) To: bug-octave at bevo dot che dot wisc dot edu Date: Sun, 15 Feb 98 12:29:03 EST I've tried compiling Octave 2.0.10 under SunOS 4.1.3 using gcc 2.8.0 (with CFLAGS=CXXFLAGS=-O3) and the latest f2c. Everything went well until src/sighandlers.cc. The command c++ -c -I. -I.. -I../liboctave -I../src -I../glob -I../libcruft/misc -DHAVE_CONFIG_H -fno-rtti -fno-exceptions -fno-implicit-templates -O3 sighandlers.cc gave the following result: sighandlers.cc: In function `void my_friendly_exit(const char *, int)': sighandlers.cc:114: passing `void (*)()' as argument 2 of `octave_set_signal_handler(int, void (*)(int))' sighandlers.cc: In function `void (* octave_set_signal_handler(int, void (*)(int)))(int)': sighandlers.cc:154: assignment to `void (*)()' from `void (*)(int)' sighandlers.cc:159: return to `void (*)(int)' from `void (*)()' sighandlers.cc: In function `struct octave_interrupt_handler octave_ignore_interrupts()': sighandlers.cc:324: passing `void (*)()' as argument 2 of `octave_set_signal_handler(int, void (*)(int))' sighandlers.cc: In function `void install_signal_handlers()': sighandlers.cc:408: passing `void (*)()' as argument 2 of `octave_set_signal_handler(int, void (*)(int))' sighandlers.cc:448: passing `void (*)()' as argument 2 of `octave_set_signal_handler(int, void (*)(int))' Any ideas on what it is about this file that is causing gcc to choke? Sincerely, Roberto Dominijanni