delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/08/06/07:25:54

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: "Jon Rabone" <Jon DOT Rabone AT btinternet DOT com>
To: <cygwin AT cygwin DOT com>
Cc: <cgf AT redhat DOT com>, <mmillard AT vidiom DOT com>
Subject: Re: Using POSIX functions in Cygwin?
Date: Mon, 6 Aug 2001 12:25:17 +0100
Organization: Jon at home
Message-ID: <000801c11e6a$78507530$0400a8c0@fourdelta.co.uk>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.2627
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Importance: Normal

------=_NextPart_000_0009_01C11E72.DA14DD30
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

On Fri, 3 Aug 2001 17:43:14 -0400, Christopher Faylor wrote:

> sigaction is part of the cygwin DLL and there are certainly 
> some SA_ macros defined in ~msinclude/sys/signal.h:

OK, I'm having the same problem with release 1.3.2 - can't find a
prototype for sigaction_t. These ARE supposed to appear by just
#include'ing signal.h, yes?

> AFAICT, these are invoked by gcc.  If they weren't we wouldn't 
> be able to actually build Cygwin which uses these.

Please find attached the output of gcc -v for the test program I'm
using. -D__CYGWIN__ is there on the list. 

Any thoughts on what I'm doing wrong?

Thanks,

Jon.

------=_NextPart_000_0009_01C11E72.DA14DD30
Content-Type: text/plain;
	name="gcc -v.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="gcc -v.txt"

$ gcc -v -o test4 -I/usr/include/ncurses test4.c -lncurses
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/specs
gcc version 2.95.3-5 (cygwin special)
 /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/cpp0.exe -lang-c -v =
-I/usr/include/ncurses -D__GNUC__=3D2 -D__GNUC_MINOR__=3D95 -D_X86_=3D1 =
-D_X86_=3D1 -Asystem(winnt) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 =
-D__i386__ -Di686 -Dpentiumpro -D__i686 -D__i686__ -D__pentiumpro =
-D__pentiumpro__ -D__stdcall=3D__attribute__((__stdcall__)) =
-D__cdecl=3D__attribute__((__cdecl__)) =
-D_stdcall=3D__attribute__((__stdcall__)) =
-D_cdecl=3D__attribute__((__cdecl__)) =
-D__declspec(x)=3D__attribute__((x)) -D__CYGWIN32__ -D__CYGWIN__ -Dunix =
-D__unix__ -D__unix -isystem /usr/local/include -idirafter /usr/include =
-idirafter /usr/include/w32api test4.c /cygdrive/s/TEMP/ccVgnG0c.i
GNU CPP version 2.95.3-5 (cygwin special) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/ncurses
 /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/include
 /usr/include
 /usr/include/w32api
End of search list.
The following default directories have been omitted from the search =
path:
End of omitted list.
 /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/cc1.exe =
/cygdrive/s/TEMP/ccVgnG0c.i -quiet -dumpbase test4.c -version -o =
/cygdrive/s/TEMP/ccD95OiH.s
GNU C version 2.95.3-5 (cygwin special) (i686-pc-cygwin) compiled by GNU =
C version 2.95.3-5 (cygwin special).
test4.c: In function `main':
test4.c:14: `sigaction_t' undeclared (first use in this function)
test4.c:14: (Each undeclared identifier is reported only once
test4.c:14: for each function it appears in.)
test4.c:14: parse error before `act'
test4.c:25: `act' undeclared (first use in this function)
test4.c:29: `oldact' undeclared (first use in this function)

------=_NextPart_000_0009_01C11E72.DA14DD30
Content-Type: text/plain; charset=us-ascii

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
------=_NextPart_000_0009_01C11E72.DA14DD30--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019