Bug #75293 [NEW]: AI_NUMERICSERV’ undeclared

From: Date: Sat, 30 Sep 2017 00:13:18 +0000
Subject: Bug #75293 [NEW]: AI_NUMERICSERV’ undeclared
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-211472@lists.php.net to get a copy of this message
From: php-bugs-2017 at ryandesign dot com Operating system: Mac OS X 10.5 PHP version: 7.2.0RC3 Package: Sockets related Bug Type: Bug Bug description:AI_NUMERICSERV’ undeclared Description: ------------ The sockets module from php 7.2.0RC3 (and earlier RCs and betas) fails to build on Mac OS X 10.5 and earlier: ext/sockets/sockets.c: In function ‘zm_startup_sockets’: ext/sockets/sockets.c:805: error: ‘AI_NUMERICSERV’ undeclared (first use in this function) Here's a full build log: https://build.macports.org/builders/ports-10.5_ppc_legacy-builder/builds/41128/steps/install-port/logs/stdio The php 7.1.x and earlier versions of the sockets module build fine on the same system. AI_NUMERICSERV was introduced in Mac OS X 10.6. If you want to use it but remain compatible with older systems, you can apparently define it to 0 if it's not defined: https://www.mail-archive.com/nbd-general@lists.sourceforge.net/msg01052.html Note that sapi/phpdbg/phpdbg_io.h already contains these lines: /* Older versions of glibc <= 2.3.0 and <= OS X 10.5 do not have this constant defined */ #ifndef AI_NUMERICSERV #define AI_NUMERICSERV 0 #endif The same lines could be added somewhere for the sockets module. -- Edit bug report at https://bugs.php.net/bug.php?id=75293&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75293&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75293&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75293&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=75293&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=75293&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=75293&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=75293&r=needscript Try newer version: https://bugs.php.net/fix.php?id=75293&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=75293&r=support Expected behavior: https://bugs.php.net/fix.php?id=75293&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=75293&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=75293&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=75293&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75293&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=75293&r=dst IIS Stability: https://bugs.php.net/fix.php?id=75293&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=75293&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=75293&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=75293&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=75293&r=mysqlcfg

« previous php.bugs (#211472) next »