building 2.0.1 sunOS4.1.3

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

building 2.0.1 sunOS4.1.3

Djossou Coco 0251858170
Hello,
Building octave-2.0.1 on SPARCstation-10 sunOS4.1.4 stops on the file
sighandlers.cc in src directory.
./configure --prefix=/usr/local/gnu > & ../configure.log
make CFLAGS=-O CXXFLAGS=-O LDFLAGS= > & ../all.log

-rw-r--r--   1 djossou  staff       85650 Jan 21 13:44 all.log
-rw-r--r--   1 djossou  staff       20116 Jan 21 12:23 configure.log
The output of ./configure and make are available
I can grep information in them if it could help.
Any idea will be welcome,
Thanks in advance,
Coco D.

mm-498% uname -a
SunOS mm 4.1.4 1 sun4m
mm-499% make --version
GNU Make version 3.75, by Richard Stallman and Roland McGrath.
mm-500% gcc --version
2.7.2
mm-501% makeinfo --version
GNU Makeinfo (Texinfo 3.9) 1.67
mm-508% tail -15 all.log
c++ -c  -I. -I.. -I../liboctave -I../src -I../glob -I../libcruft/misc  -DHAVE_CONFIG_H  -fno-implicit-templates  -O 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 `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 `/netsrc/src/gnu/current/octave-2.0.1/src'
make[1]: *** [src] Error 2
make[1]: Leaving directory `/netsrc/src/gnu/current/octave-2.0.1'
make: *** [all] Error 2

Reply | Threaded
Open this post in threaded view
|

building 2.0.1 sunOS4.1.3

John W. Eaton-6
On 21-Jan-1997, Djossou Coco <[hidden email]> wrote:

: c++ -c  -I. -I.. -I../liboctave -I../src -I../glob -I../libcruft/misc  -DHAVE_CONFIG_H  -fno-implicit-templates  -O 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 `(...)'

>From my current version of the INSTALL.OCTAVE file:

   * If you encounter errors like

          passing `void (*)()' as argument 2 of
            `octave_set_signal_handler(int, void (*)(int))'

     or

          warning: ANSI C++ prohibits conversion from `(int)' to `(...)'

     while compiling `sighandlers.cc', you may need to edit some files
     in the gcc include subdirectory to add proper prototypes for
     functions there.  For example, Ultrix 4.2 needs proper
     declarations for the `signal()' and the `SIG_IGN' macro in the
     file `signal.h'.

     On some systems the `SIG_IGN' macro is defined to be something like
     this:

          #define  SIG_IGN  (void (*)())1

     when it should really be something like:

          #define  SIG_IGN  (void (*)(int))1

     to match the prototype declaration for `signal()'.  This change
     should also be made for the `SIG_DFL' and `SIG_ERR' symbols.  It
     may be necessary to change the definitions in `sys/signal.h' as
     well.

     The gcc fixincludes/fixproto script should probably fix these
     problems when gcc installs its modified set of header files, but I
     don't think that's been done yet.


Thanks,

jwe