Bug #66381 [NEW]: __ss_family was changed on AIX 5.3
| From: | kaplan@php.net | Date: | Wed, 01 Jan 2014 11:26:29 +0000 |
| Subject: | Bug #66381 [NEW]: __ss_family was changed on AIX 5.3 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-183528@lists.php.net to get a copy of this message | ||
From: kaplan
Operating system: AIX
PHP version: 5.5.7
Package: Sockets related
Bug Type: Bug
Bug description:__ss_family was changed on AIX 5.3
Description:
------------
Commit 5e51c851431189677aa80f7a3a863699488678cd brought back a build
problem for sockets on AIX older than 5.3 (similar to bug #62025).
php-5.5.7/ext/sockets/sockaddr_conv.c: In function
`php_set_inet46_addr':
php-5.5.7/ext/sockets/sockaddr_conv.c:115: error: structure has no
member named `ss_family'
php-5.5.7/ext/sockets/sockaddr_conv.c:125: error: structure has no
member named `ss_family'
A similar patch can be applied:
--- a/ext/sockets/sockaddr_conv.c
+++ b/ext/sockets/sockaddr_conv.c
@@ -1,6 +1,9 @@
#include <php.h>
#include <php_network.h>
#include "php_sockets.h"
+#if defined(_AIX) && !defined(HAVE_SA_SS_FAMILY)
+#define ss_family __ss_family
+#endif
#ifdef PHP_WIN32
#include "windows_common.h"
But we might want to have this code somewhere common (php_sockets.h ?)
with sockets.c to prevent duplicates with the fix for bug #62025.
--
Edit bug report at https://bugs.php.net/bug.php?id=66381&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66381&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66381&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66381&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=66381&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=66381&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=66381&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=66381&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=66381&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=66381&r=support
Expected behavior: https://bugs.php.net/fix.php?id=66381&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=66381&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=66381&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=66381&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66381&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=66381&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=66381&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=66381&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66381&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=66381&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=66381&r=mysqlcfg