Bug #75293 [Opn->Csd]: AI_NUMERICSERVâ undeclared
| From: | php-bugs-2017 at ryandesign dot com | Date: | Sat, 30 Sep 2017 00:50:41 +0000 |
| Subject: | Bug #75293 [Opn->Csd]: AI_NUMERICSERVâ undeclared | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-211474@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75293&edit=1
ID: 75293
User updated by: php-bugs-2017 at ryandesign dot com
Reported by: php-bugs-2017 at ryandesign dot com
Summary: AI_NUMERICSERVâ undeclared
-Status: Open
+Status: Closed
Type: Bug
Package: Sockets related
Operating System: Mac OS X 10.5
PHP Version: 7.2.0RC3
Block user comment: N
Private report: N
New Comment:
Duplicate
Previous Comments:
------------------------------------------------------------------------
[2017-09-30 00:50:04] php-bugs-2017 at ryandesign dot com
Sorry, I hit the Submit button twice. Duplicate of #75292.
------------------------------------------------------------------------
[2017-09-30 00:13:18] php-bugs-2017 at ryandesign dot com
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 this bug report at https://bugs.php.net/bug.php?id=75293&edit=1