Bug #62025 [NEW]: FTBS on AIX
| From: | lior dot k at zend dot com | Date: | Mon, 14 May 2012 13:51:29 +0000 |
| Subject: | Bug #62025 [NEW]: FTBS on AIX | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-170429@lists.php.net to get a copy of this message | ||
From:
Operating system:
PHP version: 5.4.3
Package: Sockets related
Bug Type: Bug
Bug description:FTBS on AIX
Description:
------------
Hi,
I had a problem building the sockets extension on AIX (tested with
5.4.0RC8, but the code didn't change 5.4.1 or 5.4.3).
The problem is that ss_family is called __ss_family on aix. The following
small but ugly patch did the work, but probably should be applied in a more
clean way.
diff -ruw php-5.4.0RC8.orig/ext/sockets/sockets.c
php-5.4.0RC8/ext/sockets/sockets.c
--- php-5.4.0RC8.orig/ext/sockets/sockets.c 2012-01-01
15:15:04.000000000 +0200
+++ php-5.4.0RC8/ext/sockets/sockets.c 2012-05-13 11:51:35.750746776
+0300
@@ -77,6 +77,9 @@
# define IS_INVALID_SOCKET(a) (a->bsd_socket < 0)
# define set_errno(a) (errno = a)
# include "php_sockets.h"
+# ifdef _AIX
+# define ss_family __ss_family
+# endif
# if HAVE_IF_NAMETOINDEX
# include <net/if.h>
# endif
Lior Kaplan
Zend Inc
--
Edit bug report at https://bugs.php.net/bug.php?id=62025&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62025&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62025&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62025&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=62025&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62025&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=62025&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=62025&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=62025&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=62025&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=62025&r=support
Expected behavior: https://bugs.php.net/fix.php?id=62025&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=62025&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=62025&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=62025&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62025&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=62025&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=62025&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=62025&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=62025&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=62025&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=62025&r=mysqlcfg