Edit report at https://bugs.php.net/bug.php?id=62025&edit=1
ID: 62025 User updated by: lior dot k at zend dot com Reported by: lior dot k at zend dot com Summary: FTBS on AIX Status: Open Type: Bug Package: Sockets related -Operating System: +Operating System: AIX PHP Version: 5.4.3 Block user comment: N Private report: N New Comment: Setting OS to AIX. Previous Comments: ------------------------------------------------------------------------ [2012-05-14 13:51:29] lior dot k at zend dot com 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 this bug report at https://bugs.php.net/bug.php?id=62025&edit=1