From owner-freebsd-current Thu Dec 26 16: 2: 5 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8716937B401 for ; Thu, 26 Dec 2002 16:02:03 -0800 (PST) Received: from smtp04.iprimus.com.au (smtp04.iprimus.com.au [210.50.76.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 06CFA43EB2 for ; Thu, 26 Dec 2002 16:02:02 -0800 (PST) (envelope-from tim@robbins.dropbear.id.au) Received: from smtp02.iprimus.net.au (210.50.76.70) by smtp04.iprimus.com.au (6.7.010) id 3DF583C3001D3F90 for current@FreeBSD.org; Fri, 27 Dec 2002 11:01:50 +1100 Received: from dilbert.robbins.dropbear.id.au ([203.134.132.158]) by smtp02.iprimus.net.au with Microsoft SMTPSVC(5.0.2195.5600); Fri, 27 Dec 2002 11:01:48 +1100 Received: from dilbert.robbins.dropbear.id.au (2hrtvidku2o91k7v@localhost [127.0.0.1]) by dilbert.robbins.dropbear.id.au (8.12.6/8.12.6) with ESMTP id gBR02TCv065358; Fri, 27 Dec 2002 11:02:30 +1100 (EST) (envelope-from tim@dilbert.robbins.dropbear.id.au) Received: (from tim@localhost) by dilbert.robbins.dropbear.id.au (8.12.6/8.12.6/Submit) id gBR02Q5F065249; Fri, 27 Dec 2002 11:02:26 +1100 (EST) (envelope-from tim) Date: Fri, 27 Dec 2002 11:02:26 +1100 From: Tim Robbins To: Dan Nelson Cc: Donn Miller , current Subject: Re: sa_handler and sigaction... Message-ID: <20021227110226.A27921@dilbert.robbins.dropbear.id.au> References: <3E0B422C.2000407@cvzoom.net> <20021226182742.GA1473@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20021226182742.GA1473@dan.emsphone.com>; from dnelson@allantgroup.com on Thu, Dec 26, 2002 at 12:27:43PM -0600 X-OriginalArrivalTime: 27 Dec 2002 00:01:49.0576 (UTC) FILETIME=[276A7880:01C2AD3B] Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Dec 26, 2002 at 12:27:43PM -0600, Dan Nelson wrote: > In the last episode (Dec 26), Donn Miller said: > > 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. > > > > It looks like it should compile, but it doesn't. I mean, > > does have a #define for sa_handler. > > But not in the -D_POSIX_SOURCE case. Could someone with the POSIX spec > see whether sa_handler is supposed to be visible or not? From the SUSv3 System Interfaces volume (excuse the bad formatting): 41429 The structure sigaction, used to describe an action to be taken, is defined in the 41430 header to include at least the following members: 41431 41432 Member Type Member Name Description 41433 void(*) (int) sa_handler SIG_DFL, SIG_IGN, or pointer to a function. 43434 sigset_t sa_mask Additional set of signals to be blocked during execution of signal-catching function. 41437 int sa_flags Special flags to affect behavior of signal. 41438 void(*) (int, 41439 siginfo_t *, void *) sa_sigaction Signal-catching function. 41440 The storage occupied by sa_handler and sa_sigaction may overlap, and a conforming application 41441 shall not use both simultaneously. Tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message