From: jdolecek at NetBSD dot org Operating system: NetBSD PHP version: 5.1.3 PHP Bug Type: Compile Warning Bug description: sigemptyset() used without including <signal.h>
Description: ------------ Compiling FastCGI PHP emits a warning about sigemptyset() used without correct header #include in sapi/cgi/fastcgi.c. Patch: --- 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 -- Edit bug report at http://bugs.php.net/?id=37313&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37313&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=37313&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37313&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37313&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37313&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37313&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37313&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37313&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37313&r=support Expected behavior: http://bugs.php.net/fix.php?id=37313&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37313&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37313&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37313&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37313&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37313&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37313&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37313&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37313&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37313&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37313&r=mysqlcfg