Bug #75292 [NEW]: AI_NUMERICSERVâ undeclared
| From: | php-bugs-2017 at ryandesign dot com | Date: | Sat, 30 Sep 2017 00:13:17 +0000 |
| Subject: | Bug #75292 [NEW]: AI_NUMERICSERVâ undeclared | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-211471@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=75292&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75292&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75292&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75292&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=75292&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=75292&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=75292&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=75292&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=75292&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=75292&r=support
Expected behavior: https://bugs.php.net/fix.php?id=75292&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=75292&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=75292&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=75292&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75292&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=75292&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=75292&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=75292&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75292&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=75292&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=75292&r=mysqlcfg