Opened 9 years ago
Closed 9 years ago
#48786 closed defect (fixed)
php70 @7.0.0RC2: error: "AI_NUMERICSERV" undeclared (first use in this function)
Reported by: | willem+macports@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.3 |
Keywords: | tiger leopard | Cc: | |
Port: | php70 |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
PHP 70 won't build on OSX Leopard (10.5) because it's missing a constant AI_NUMERICSERV
.
php70/work/php-7.0.0RC2/sapi/phpdbg/phpdbg_io.c: In function "phpdbg_create_listenable_socket": php70/work/php-7.0.0RC2/sapi/phpdbg/phpdbg_io.c:236: error: "AI_NUMERICSERV" undeclared (first use in this function)
A similar fix was applied here: #41916
It would be nice to include a patch or send one upstream to make the improvements of PHP 7.0 available on older systems.
Change History (4)
comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Owner: | changed from macports-tickets@… to ryandesign@… |
Port: | php70 added; PHP70 removed |
Summary: | OSX 10.5 (Leopard) support for AI_NUMERICSERV → php70 @7.0.0RC2: error: "AI_NUMERICSERV" undeclared (first use in this function) |
comment:2 Changed 9 years ago by willem+macports@…
I've reported the bug so they can pick it up. (See: https://bugs.php.net/bug.php?id=70449)
If eventually, the PHP devs decide not to support such old systems anymore, would it be too much trouble to have a compile patch in the PHP7 ports?
comment:3 Changed 9 years ago by willem+macports@…
That escalated quickly! http://git.php.net/?p=php-src.git;a=commit;h=51272f4217b5961438cf89ac03dc3ab097db8af5
Thanks,
comment:4 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | new → closed |
I updated php70 to 7.0.0RC3 in r140352, which should contain that commit, which should resolve the issue. But I didn't test on Leopard so please let me know if it works or not.
Since this is not a MacPorts-specific problem, it needs to be reported to the developers of PHP. I could do it for you, but I would just be acting as a middleman; it might be more efficient for you to report the problem to them, since you're the one experiencing it.