From owner-bug-octave at bevo dot che dot wisc dot edu Wed Dec 11 09:16:39 1996 Subject: C++ compile error on Sun SPARC SunOS4.1.4 From: "Andrew J. Deighan" To: bug-octave at bevo dot che dot wisc dot edu Date: Wed, 11 Dec 1996 15:18:12 GMT Bug report for Octave 2.0 configured for sparc-sun-sunos4.1.4 Description: ----------- The compilation fails in the src directory when trying to compile the sighandlers.cc file. The output is: making all in src cd src ; /home/gph/deighan/SOFTWARE/OTHERS/make-3.75/bin/make all make[2]: Entering directory `/tmp_mnt/work/andy/OCTAVE/octave-2.0/src' c++ -c -I. -I.. -I../liboctave -I../src -I../glob -I../libcruft/misc -DHAVE_CONFIG_H -fno-implicit-templates -g -O2 -Wall sighandlers.cc sighandlers.cc: In function `void my_friendly_exit(const char *, int)': sighandlers.cc:128: 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:168: warning: ANSI C++ prohibits conversion from `(int)' to `(...)' sighandlers.cc: In function `void sigint_handler(int)': sighandlers.cc:274: warning: unused parameter `int sig' sighandlers.cc: In function `struct octave_interrupt_handler * octave_ignore_interrupts()': sighandlers.cc:327: passing `void (*)()' as argument 2 of `octave_set_signal_handler(int, void (*)(int))' sighandlers.cc: In function `void install_signal_handlers()': sighandlers.cc:415: passing `void (*)()' as argument 2 of `octave_set_signal_handler(int, void (*)(int))' sighandlers.cc:455: passing `void (*)()' as argument 2 of `octave_set_signal_handler(int, void (*)(int))' make[2]: *** [sighandlers.o] Error 1 make[2]: Leaving directory `/tmp_mnt/work/andy/OCTAVE/octave-2.0/src' make[1]: *** [src] Error 2 make[1]: Leaving directory `/tmp_mnt/work/andy/OCTAVE/octave-2.0' make: *** [all] Error 2 I am compiling using make 3.75, gcc 2.7.2, libg++2.7.1 and sparc f77 v3.0.1. Configuration (please do not edit this section): ----------------------------------------------- uname output: SunOS merrick 4.1.4 1 sun4m configure opts: --prefix=/work/andy/OCTAVE Fortran compiler: f77 FFLAGS: -O F2C: F2CFLAGS: FLIBS: -L/usr/lang/lib /usr/lang/SC3.0.1/lib/values-Xs.o -L/usr/lang/SC3.0.1/lib/cg89 -L/usr/lang/SC3.0.1/lib -u _fix_libc_ /usr/lang/SC3.0.1/lib/libM77.a -lF77 -lsunmath -lansi -lcx CPPFLAGS: INCFLAGS: -I/work/andy/OCTAVE/include -I/work/andy/OCTAVE/include/octave-2.0 C compiler: gcc, version 2.7.2 CFLAGS: -DHAVE_CONFIG_H -g -O2 -Wall CPICFLAG: -fPIC C++ compiler: c++, version 2.7.2 CXXFLAGS: -DHAVE_CONFIG_H -fno-implicit-templates -g -O2 -Wall CXXPICFLAG: -fPIC LDFLAGS: -g LIBFLAGS: -L/work/andy/OCTAVE/lib RLD_FLAG: -L /work/andy/OCTAVE/lib CXXLIBS: -lstdc++ -lm -L/export/seismic/eta/dca/local/lib/gcc-lib/sparc-sun-sunos4.1.4/2.7.2 -L/export/seismic/eta/dca/local/lib -lstdc++ -lm -lgcc -lc -lg -lgcc TERMLIBS: -ltermcap LIBS: LEXLIB: -ll LIBPLPLOT: LIBDLFCN: DEFS: -DOCTAVE_SOURCE=1 -DSEPCHAR=':' -DSEPCHAR_STR=":" -DUSE_GNU_INFO=1 -DUSE_READLINE=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DF77_APPEND_UNDERSCORE=1 -DHAVE_DIRENT_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_ASSERT_H=1 -DHAVE_CURSES_H=1 -DHAVE_FCNTL_H=1 -DHAVE_FLOAT_H=1 -DHAVE_FLOATINGPOINT_H=1 -DHAVE_GRP_H=1 -DHAVE_LIMITS_H=1 -DHAVE_MEMORY_H=1 -DHAVE_NAN_H=1 -DHAVE_PWD_H=1 -DHAVE_SGTTY_H=1 -DHAVE_STDLIB_H=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