ID: 32045 User updated by: mcihar at suse dot cz Reported By: mcihar at suse dot cz Status: Wont fix Bug Type: Compile Warning Operating System: Linux PHP Version: 5.0.3 New Comment:
>From getpgid(2): To get the prototypes under glibc, define both _XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED, or use "#define _XOPEN_SOURCE n" for some integer n larger than or equal to 500. And yes, it did fix the warning for me. These warning can cause problem when pid_t is not int, however I don't know whether such platform exist. Previous Comments: ------------------------------------------------------------------------ [2005-03-06 17:24:51] [EMAIL PROTECTED] Not only does that fix not work, but it might cause more problems than it tries to fix -> wont fix. (that warning is harmless) ------------------------------------------------------------------------ [2005-02-21 14:35:41] mcihar at suse dot cz 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 this bug report at http://bugs.php.net/?id=32045&edit=1