From: mcihar at suse dot cz Operating system: Linux PHP version: 5.0.3 PHP Bug Type: Compile Warning Bug description: Warnings when compiling posix.c
Description: ------------ php-5.0.3/ext/posix/posix.c: In function `zif_posix_getpgid': php-5.0.3/ext/posix/posix.c:374: warning: implicit declaration of function `getpgid' php-5.0.3/ext/posix/posix.c: In function `zif_posix_getsid': php-5.0.3/ext/posix/posix.c:384: warning: implicit declaration of function `getsid' fix is simple, see man page for getpgid for detailed description: --- ext/posix/posix.c.orig 2004-04-18 23:49:10.000000000 +0200 +++ ext/posix/posix.c 2005-02-21 13:01:50.452549636 +0100 @@ -23,6 +23,8 @@ #endif #include "php.h" +/* Needed to get getpgid and getsid */ +#define _XOPEN_SOURCE 500 #include <unistd.h> #include "ext/standard/info.h" #include "ext/standard/php_string.h" -- Edit bug report at http://bugs.php.net/?id=32045&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32045&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32045&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32045&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32045&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32045&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32045&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32045&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32045&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32045&r=support Expected behavior: http://bugs.php.net/fix.php?id=32045&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32045&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32045&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32045&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32045&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32045&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32045&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32045&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32045&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32045&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32045&r=mysqlcfg