Bug #77677 [NEW]: FPM fails to build on AIX due to missing WCOREDUMP

From: Date: Thu, 28 Feb 2019 03:46:09 +0000
Subject: Bug #77677 [NEW]: FPM fails to build on AIX due to missing WCOREDUMP
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-219757@lists.php.net to get a copy of this message
From: kadler at us dot ibm dot com Operating system: AIX PHP version: 7.3.2 Package: Compile Failure Bug Type: Bug Bug description:FPM fails to build on AIX due to missing WCOREDUMP Description: ------------ WCOREDUMP is actually a macro on Linux and other systems, but since it was undefined at compile time the compiler implicitly defined it: /QOpenSys/home/rpmbuild/rpmbuild/BUILD/php-7.3.1/sapi/fpm/fpm/fpm_children.c:210:28: warning: implicit declaration of function 'WCOREDUMP' [-Wimplicit-function-declaration] const char *have_core = WCOREDUMP(status) ? " - core dumped" : ""; ^~~~~~~~~ This leads to an eventual linker error due to the missing symbol: ld: 0711-317 ERROR: Undefined symbol: .WCOREDUMP ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. According to the Linux man page, WCOREDUMP should be gated by an #ifdef WCOREDUMP(status) returns true if the child produced a core dump. This macro should only be employed if WIFSIGNALED returned true. This macro is not specified in POSIX.1-2001 and is not available on some UNIX implementations (e.g., AIX, SunOS). Only use this enclosed in #ifdef WCOREDUMP ... #endif -- Edit bug report at https://bugs.php.net/bug.php?id=77677&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77677&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77677&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77677&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=77677&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=77677&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=77677&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=77677&r=needscript Try newer version: https://bugs.php.net/fix.php?id=77677&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=77677&r=support Expected behavior: https://bugs.php.net/fix.php?id=77677&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=77677&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=77677&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=77677&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77677&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=77677&r=dst IIS Stability: https://bugs.php.net/fix.php?id=77677&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=77677&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=77677&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=77677&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=77677&r=mysqlcfg

« previous php.bugs (#219757) next »