Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Dec 2002 12:53:48 -0500
From:      Donn Miller <dmmiller@cvzoom.net>
To:        current <current@freebsd.org>
Subject:   sa_handler and sigaction...
Message-ID:  <3E0B422C.2000407@cvzoom.net>

next in thread | raw e-mail | index | archive | help
Just tried compiling the mgv port on current.  It bombs out with the 
following error message:

> Making all in toolbar
> cc -DPACKAGE=\"mgv\" -DVERSION=\"3.1.5\" -DHAVE_PUTENV=0 -DUSE_DMALLOC=0 -DHAVE_XPM=1 -DHAVE_X11_XPM_H=1 -DHAVE_MOTIF=1 -DHAVE_LIBHELP=0 -DHAVE_EDITRES=1  -I. -I. -I. -Iwlib -I/usr/X11R6/include -O2 -Os -pipe -march=pentium3 -D_POSIX_SOURCE  -I/usr/X11R6/include -c Ghostview.c
> Ghostview.c: In function `Input':
> Ghostview.c:487: structure has no member named `sa_handler'
> Ghostview.c: In function `StopInterpreter':
> Ghostview.c:1529: structure has no member named `sa_handler'
> *** Error code 1
> 
> Stop in /usr/ports/print/mgv/work/mgv-3.1.5.
> *** Error code 1
> 
> Stop in /usr/ports/print/mgv.

Here is the relevant portions of Ghostview.c:

> static void
> Input(XtPointer client_data, int *source, XtInputId *id)
> {
> 	Widget		w   = (Widget)client_data;
> 	int		bytes_written;
> 	struct sigaction	sa, osa;
> 
> 	USEUP(id); USEUP(source);
> 
> 	memset((void *)&sa,  '\0', sizeof(sa));
> 	memset((void *)&osa, '\0', sizeof(osa));
> 	sa.sa_handler = CatchPipe;
> 	sigemptyset(&sa.sa_mask);

It looks like it should compile, but it doesn't.  I mean, <sys/signal.h> 
does have a #define for sa_handler.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E0B422C.2000407>