Re: Compiler Errors with IRIX..

Shaw Terwilliger (sterwill@postman.abisource.com)
Wed, 02 Jun 1999 09:55:33 -0500


Bob Monaghan wrote:
>
> Greetings all!
>
> I've been trying to compile the Abiword application on an SGI Indy
> with Irix 6.5.4.
>
> When I compile with gcc 2.8.1 and gmake, I am presented with the
> following error after a while:
> [...]

I've added #include <stdio.h> to the top of the file, just to catch
the popen/pclose definitions, but those were just the warnings.

On Linux, it looks like signal() takes a handler who wants an
integer as an argument; it appears IRIX's signal() wants a
handler who takes no arguments.

Is it as simple as this, or is the problem perhaps in the #include
of signal.h? Often an operating system will define multiple
function prototypes (which map to multiple implementations) for
development "compatability environments".

Linux glibc2 signal():
void (*signal(int signum, void (*handler)(int)))(int);

Solaris 7 signal():
void (*signal (int sig, void (*disp)(int)))(int);

FreeBSD 2.2.5 signal():
void (*signal(int sig, void (*func)(int)))(int);

-- 
Shaw Terwilliger


This archive was generated by hypermail 1.03b2.