problem installing on SGI

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

problem installing on SGI

Neal S. Holter
Hi,
  I am attempting to build octave-1.0 on a SGI 4D/70 machine under
IRIX 4.0.5.  I have successfully (I think) installed GNU make and
the latest GNU C++ compiler and libg++.  The make fails on the
file octave.cc with the errors:

octave.cc: In function `int main(int, char **)':
octave.cc:523: initialization between incompatible pointer types
octave.cc:534: incompatible pointer types for argument 2 of
`void (* signal(int, void (*)(int ...)))(int ...)'

In the file INSTALL.OCTAVE and BUGS, it is stated that on some systems proper
prototypes and macros need to be added to signal.h.  Is this one of the
systems with that problem, and if so, what are the changes that need to
be made.
                                          Thanks,
                                            Neal Holter
                                            [hidden email]
 

Reply | Threaded
Open this post in threaded view
|

Re: problem installing on SGI

Martin Beaudoin
I have successfully installed octave 1.0 on my Indigo^2 system
running Irix 4.0.5h.

I'm using gcc version 2.5.7.
With libg++ Version 2.5.3.

I have been compiling octave without a glitch since version 0.8 just
by using configure, and waiting for a while.

Martin Beaudoin

Martin Beaudoin                         [hidden email]
Institut de recherche d'Hydro-Quebec    Tel: +1 514 652-8136
Varennes, QC, Canada   J3X 1S1          Fax: +1 514 652-8435

Reply | Threaded
Open this post in threaded view
|

Re: problem installing on SGI

John Eaton-4
In reply to this post by Neal S. Holter
"Neal S. Holter" <[hidden email]> wrote:

:   I am attempting to build octave-1.0 on a SGI 4D/70 machine under
: IRIX 4.0.5.  I have successfully (I think) installed GNU make and
: the latest GNU C++ compiler and libg++.  The make fails on the
: file octave.cc with the errors:
:
: octave.cc: In function `int main(int, char **)':
: octave.cc:523: initialization between incompatible pointer types
: octave.cc:534: incompatible pointer types for argument 2 of
: `void (* signal(int, void (*)(int ...)))(int ...)'
:
: In the file INSTALL.OCTAVE and BUGS, it is stated that on some systems proper
: prototypes and macros need to be added to signal.h.  Is this one of the
: systems with that problem, and if so, what are the changes that need to
: be made.

The SIG_IGN, SIG_DFL, etc. macros are usually the ones that need to be
fixed.  On some systems they end up as

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

when they should be something like

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

to match the prototype for signal.

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

I've modified the manual to be more specific about this.

Thanks,

jwe