help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]


From: SANDS
Date: Tue, 27 Sep 1994 09:23:03 -0400 (EDT)

I have been having problems compiling octave on a DecStation 5000 so
I read the BUGS file and it says:

   * With version 2.5.7 of gcc, you may need to edit some files in the
     gcc include subdirectory to add 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'.

Since I can compile octave on a SPARC ok I hacked the signal.h file
to look like the SPARC signal.h file in the places where signal() 
and SIG_IGN are declared: 

   .
   .
   .

#define SIG_ERR         ((void (*)())(-1))
#define SIG_DFL         ((void (*)())( 0))
#define SIG_IGN         (void (*)())1


#ifdef KERNEL
#define SIG_CATCH       ((void (*)())( 2))

   .
   .
   .

   .
   .
   .
/*
 *  prototypes
 *
 */
void    (*signal())();
int     raise( int __sig );
int     kill( pid_t __pid, int __sig );
int     sigemptyset( sigset_t *__set );
   .
   .
   .

I'm not sure if this is correct since I don't write C
code but it felt good when I did it (the error I was
getting went away). On the other hand I now get an error 
during the final load stage of the build:

   .
   .
   .

/usr/lib/cmplrs/cc/ld
Undefined:
s_abort
   .
   .
   .

Can someone tell me if what I did makes sense? What is
the proper fix for Ultrix? I'm running Ultrix 4.4 with
gcc 2.5.7 and libg++ 2.5.2. Is gcc 2.5.8 better? What
to do?

Thanks 
Scott Sands



reply via email to

[Prev in Thread] Current Thread [Next in Thread]