delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/10/03/18:05:01

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Sun, 3 Oct 2004 23:36:58 +0200
From: "Gerrit P. Haase" <gp AT familiehaase DOT de>
Reply-To: "Gerrit @ cygwin" <cygwin AT cygwin DOT com>
Organization: Esse keine toten Tiere
Message-ID: <54441571.20041003233658@familiehaase.de>
To: Miguel Cuesta <miguel DOT cuesta AT gmail DOT com>
CC: cygwin AT cygwin DOT com
Subject: Re: `SIG_IGN' undeclared: Error when 'make' an application
In-Reply-To: <712d935b041003141065122035@mail.gmail.com>
References: <712d935b041003141065122035 AT mail DOT gmail DOT com>
MIME-Version: 1.0
X-IsSubscribed: yes

Hallo Miguel,

Am Sonntag, 3. Oktober 2004 um 23:10 schriebst du:

> Hi.

> Trying to install m4-1.4.2 (http://savannah.gnu.org/projects/m4/)
> on Cygwin (MS Windows 2000)

> When trying to 'make', I get this error message:
> -------------------------------
> make[1]: Entering directory `/home/root/m4-1.4.2/src'
> gcc -c -DHAVE_CONFIG_H -I.. -I. -I./../lib  -g -O2 m4.c
> m4.c: In function `main':
> m4.c:451: error: `SIG_IGN' undeclared (first use in this function)
> m4.c:451: error: (Each undeclared identifier is reported only once
> m4.c:451: error: for each function it appears in.)
> make[1]: *** [m4.o] Error 1
> make[1]: Leaving directory `/home/root/m4-1.4.2/src'
> make: *** [all] Error 1
> ---------------------------

> Any suggestion?

diff -urN -x .build -x .inst -x .sinst m4-1.4.2-orig/src/m4.c m4-1.4.2/src/m4.c
--- m4-1.4.2-orig/src/m4.c      2004-08-21 12:29:00.000000000 +0200
+++ m4-1.4.2/src/m4.c   2004-09-19 23:41:05.070438400 +0200
@@ -21,7 +21,11 @@
 #include "m4.h"
 
 #include <getopt.h>
+#ifndef __CYGWIN__
 #include <sys/signal.h>
+#else /* __CYGWIN__ */
+#include <signal.h>
+#endif /* __CYGWIN__ */
 
 static void usage _((int));
 



-- 
=^..^=



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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