|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37313 sigemptyset() used without including <signal.h>
Submitted: 2006-05-04 18:28 UTC Modified: 2006-05-05 07:08 UTC
From: jdolecek at NetBSD dot org Assigned: dmitry (profile)
Status: Closed Package: Compile Warning
PHP Version: 5.1.3 OS: NetBSD
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: jdolecek at NetBSD dot org
New email:
PHP Version: OS:


 [2006-05-04 18:28 UTC] jdolecek at NetBSD dot org
Compiling FastCGI PHP emits a warning about sigemptyset() used without correct header #include in sapi/cgi/fastcgi.c.

--- sapi/cgi/fastcgi.c.orig
+++ sapi/cgi/fastcgi.c
@@ -69,7 +69,7 @@
 # include <netinet/in.h>
 # include <arpa/inet.h>
 # include <netdb.h>
-# include <sys/signal.h>
+# include <signal.h>
 #ifndef INADDR_NONE
 #define INADDR_NONE ((unsigned long) -1)

Reproduce code:
./configure --enable-fastcgi, make and wait

Expected result:
No warning

Actual result:
sapi/cgi/fastcgi.o(.text+0x9c): In function `fcgi_init':
: warning: warning: reference to compatibility sigemptyset(); include <signal.h> for correct reference


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-05 07:08 UTC]
Thnank you for catching this bug.
Your patch is committed into CVS HEAD and PHP_5_1.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Mar 03 20:01:29 2024 UTC