Bug #55111 [Com]: Make fails with --enable-sockets
Edit report at https://bugs.php.net/bug.php?id=55111edit=1 ID: 55111 Comment by: carlos dot lazcano at cursor dot cl Reported by:manuel at bouza dot ch Summary:Make fails with --enable-sockets Status: Assigned Type: Bug Package:Compile Failure Operating System: Mac OSX 10.6.7 PHP Version:5.4SVN-2011-07-02 (SVN) Assigned To:cataphract Block user comment: N Private report: N New Comment: I get the same error with version php5.4-201107101830 /bin/sh /Users/clazcano/Compilados/php5.4-201107101830/libtool --silent -- preserve-dup-deps --mode=compile cc -Iext/sockets/ - I/Users/clazcano/Compilados/php5.4-201107101830/ext/sockets/ -DPHP_ATOM_INC - I/Users/clazcano/Compilados/php5.4-201107101830/include - I/Users/clazcano/Compilados/php5.4-201107101830/main - I/Users/clazcano/Compilados/php5.4-201107101830 - I/Users/clazcano/Compilados/php5.4-201107101830/ext/date/lib - I/Users/clazcano/Compilados/php5.4-201107101830/ext/ereg/regex - I/usr/include/libxml2 -I/usr/local/include -I/usr/local/include/freetype2 - I/Users/clazcano/Compilados/php5.4-201107101830/ext/mbstring/oniguruma - I/Users/clazcano/Compilados/php5.4-201107101830/ext/mbstring/libmbfl - I/Users/clazcano/Compilados/php5.4-201107101830/ext/mbstring/libmbfl/mbfl - I/Users/clazcano/Compilados/php5.4-201107101830/ext/sqlite3/libsqlite - I/opt/local/include/libxml2 -I/Users/clazcano/Compilados/php5.4- 201107101830/TSRM -I/Users/clazcano/Compilados/php5.4-201107101830/Zend -no- cpp-precomp -I/usr/local/include -I/usr/local/include -L/usr/local/lib - fvisibility=hidden -DZTS -DZEND_SIGNALS -c /Users/clazcano/Compilados/php5.4- 201107101830/ext/sockets/multicast.c -o ext/sockets/multicast.lo /Users/clazcano/Compilados/php5.4-201107101830/ext/sockets/multicast.c: In function âphp_if_index_to_addr4â: /Users/clazcano/Compilados/php5.4-201107101830/ext/sockets/multicast.c:426: error: âstruct ifreqâ has no member named âifr_ifindexâ /Users/clazcano/Compilados/php5.4-201107101830/ext/sockets/multicast.c: In function âphp_add4_to_if_indexâ: /Users/clazcano/Compilados/php5.4-201107101830/ext/sockets/multicast.c:506: error: âSIOCGIFINDEXâ undeclared (first use in this function) /Users/clazcano/Compilados/php5.4-201107101830/ext/sockets/multicast.c:506: error: (Each undeclared identifier is reported only once /Users/clazcano/Compilados/php5.4-201107101830/ext/sockets/multicast.c:506: error: for each function it appears in.) /Users/clazcano/Compilados/php5.4-201107101830/ext/sockets/multicast.c:513: error: âstruct ifreqâ has no member named âifr_ifindexâ Previous Comments: [2011-07-08 16:00:40] me at sumardi dot net I have the same issue on Mac OS X. SVN rev. 313075 [2011-07-02 12:45:36] manuel at bouza dot ch Thank you for looking into this. Just tries with svn branches/PHP_5_4, rev 312814 and make now stops with the following error: /bin/sh /Users/mbouza/tmp/php-5.4-sock/libtool --silent --preserve-dup-deps -- mode=compile cc -Iext/sockets/ -I/Users/mbouza/tmp/php-5.4-sock/ext/sockets/ - DPHP_ATOM_INC -I/Users/mbouza/tmp/php-5.4-sock/include -I/Users/mbouza/tmp/php- 5.4-sock/main -I/Users/mbouza/tmp/php-5.4-sock -I/Users/mbouza/tmp/php-5.4- sock/ext/date/lib -I/Users/mbouza/tmp/php-5.4-sock/ext/ereg/regex - I/usr/include/libxml2 -I/usr/local/include -I/opt/local/include/postgresql90 - I/Users/mbouza/tmp/php-5.4-sock/ext/sqlite3/libsqlite -I/Users/mbouza/tmp/php- 5.4-sock/TSRM -I/Users/mbouza/tmp/php-5.4-sock/Zend -no-cpp-precomp - I/usr/local/include -g -O2 -fvisibility=hidden -DZEND_SIGNALS -c /Users/mbouza/tmp/php-5.4-sock/ext/sockets/sockets.c -o ext/sockets/sockets.lo /Users/mbouza/tmp/php-5.4-sock/ext/sockets/sockets.c: In function âzif_socket_connectâ: /Users/mbouza/tmp/php-5.4-sock/ext/sockets/sockets.c:1556: warning: cast from pointer to integer of different size /bin/sh /Users/mbouza/tmp/php-5.4-sock/libtool --silent --preserve-dup-deps -- mode=compile cc -Iext/sockets/ -I/Users/mbouza/tmp/php-5.4-sock/ext/sockets/ - DPHP_ATOM_INC -I/Users/mbouza/tmp/php-5.4-sock/include -I/Users/mbouza/tmp/php- 5.4-sock/main -I/Users/mbouza/tmp/php-5.4-sock -I/Users/mbouza/tmp/php-5.4- sock/ext/date/lib -I/Users/mbouza/tmp/php-5.4-sock/ext/ereg/regex - I/usr/include/libxml2 -I/usr/local/include -I/opt/local/include/postgresql90 - I/Users/mbouza/tmp/php-5.4-sock/ext/sqlite3/libsqlite -I/Users/mbouza/tmp/php- 5.4-sock/TSRM -I/Users/mbouza/tmp/php-5.4-sock/Zend -no-cpp-precomp - I/usr/local/include -g -O2 -fvisibility=hidden -DZEND_SIGNALS -c /Users/mbouza/tmp/php-5.4-sock/ext/sockets/multicast.c -o ext/sockets/multicast.lo /Users/mbouza/tmp/php-5.4-sock/ext/sockets/multicast.c: In function âphp_if_index_to_addr4â:
Bug #55111 [Com]: Make fails with --enable-sockets
Edit report at https://bugs.php.net/bug.php?id=55111edit=1 ID: 55111 Comment by: carlos dot lazcano at cursor dot cl Reported by:manuel at bouza dot ch Summary:Make fails with --enable-sockets Status: Assigned Type: Bug Package:Compile Failure Operating System: Mac OSX 10.6.7 PHP Version:5.4SVN-2011-07-02 (SVN) Assigned To:cataphract Block user comment: N Private report: N New Comment: I have the same issue on Mac OS X snow 10.6.6. SVN rev. 313120 ./configure \ --prefix=/usr/local/php5 \ --with-apxs2=/usr/local/apache2/bin/apxs \ --with-bz2=/usr \ --with-config-file-scan-dir=/usr/local/php5/php.d \ --with-curl \ --with-freetype-dir=/usr/local/php5 \ --with-gd \ --with-gettext \ --with-iconv-dir=/usr \ --with-imap-ssl=/usr/local \ --with-imap=/usr/local \ --with-jpeg-dir=/usr/local/php5 \ --with-kerberos=/usr \ --with-ldap \ --with-libxml-dir=shared,/usr/local/php5 \ --with-mcrypt \ --with-mhash \ --with-mysql=mysqlnd \ --with-mysqli=mysqlnd \ --with-pdo-mysql=mysqlnd \ --with-openssl=/usr \ --with-png-dir=/usr/local/php5 \ --with-snmp=/usr \ --with-t1lib=/usr/local/php5 \ --with-xmlrpc \ --with-xsl \ --with-zlib-dir=/usr \ --with-zlib=/usr \ --enable-bcmath \ --enable-calendar \ --enable-cgi \ --enable-exif \ --enable-ftp \ --enable-gd-native-ttf \ --enable-mbstring \ --enable-pcntl \ --enable-shmop \ --enable-soap \ --enable-sockets \ --enable-sysvmsg \ --enable-sysvsem \ --enable-sysvshm \ --enable-wddx \ --enable-zip Previous Comments: [2011-07-10 16:41:58] carlos dot lazcano at cursor dot cl I get the same error with version php5.4-201107101830 /bin/sh /Users/clazcano/Compilados/php5.4-201107101830/libtool --silent -- preserve-dup-deps --mode=compile cc -Iext/sockets/ - I/Users/clazcano/Compilados/php5.4-201107101830/ext/sockets/ -DPHP_ATOM_INC - I/Users/clazcano/Compilados/php5.4-201107101830/include - I/Users/clazcano/Compilados/php5.4-201107101830/main - I/Users/clazcano/Compilados/php5.4-201107101830 - I/Users/clazcano/Compilados/php5.4-201107101830/ext/date/lib - I/Users/clazcano/Compilados/php5.4-201107101830/ext/ereg/regex - I/usr/include/libxml2 -I/usr/local/include -I/usr/local/include/freetype2 - I/Users/clazcano/Compilados/php5.4-201107101830/ext/mbstring/oniguruma - I/Users/clazcano/Compilados/php5.4-201107101830/ext/mbstring/libmbfl - I/Users/clazcano/Compilados/php5.4-201107101830/ext/mbstring/libmbfl/mbfl - I/Users/clazcano/Compilados/php5.4-201107101830/ext/sqlite3/libsqlite - I/opt/local/include/libxml2 -I/Users/clazcano/Compilados/php5.4- 201107101830/TSRM -I/Users/clazcano/Compilados/php5.4-201107101830/Zend -no- cpp-precomp -I/usr/local/include -I/usr/local/include -L/usr/local/lib - fvisibility=hidden -DZTS -DZEND_SIGNALS -c /Users/clazcano/Compilados/php5.4- 201107101830/ext/sockets/multicast.c -o ext/sockets/multicast.lo /Users/clazcano/Compilados/php5.4-201107101830/ext/sockets/multicast.c: In function âphp_if_index_to_addr4â: /Users/clazcano/Compilados/php5.4-201107101830/ext/sockets/multicast.c:426: error: âstruct ifreqâ has no member named âifr_ifindexâ /Users/clazcano/Compilados/php5.4-201107101830/ext/sockets/multicast.c: In function âphp_add4_to_if_indexâ: /Users/clazcano/Compilados/php5.4-201107101830/ext/sockets/multicast.c:506: error: âSIOCGIFINDEXâ undeclared (first use in this function) /Users/clazcano/Compilados/php5.4-201107101830/ext/sockets/multicast.c:506: error: (Each undeclared identifier is reported only once /Users/clazcano/Compilados/php5.4-201107101830/ext/sockets/multicast.c:506: error: for each function it appears in.) /Users/clazcano/Compilados/php5.4-201107101830/ext/sockets/multicast.c:513: error: âstruct ifreqâ has no member named âifr_ifindexâ [2011-07-08 16:00:40] me at sumardi dot net I have the same issue on Mac OS X. SVN rev. 313075 [2011-07-02 12:45:36] manuel at bouza dot ch Thank you for looking into this. Just tries with svn branches/PHP_5_4, rev 312814 and make now stops with the following error: /bin/sh /Users/mbouza/tmp/php-5.4-sock/libtool --silent --preserve-dup-deps -- mode=compile cc -Iext/sockets/ -I/Users/mbouza/tmp/php-5.4-sock/ext/sockets/ - DPHP_ATOM_INC -I/Users/mbouza/tmp/php-5.4-sock/include -I/Users/mbouza/tmp/php- 5.4-sock/main -I/Users/mbouza/tmp/php-5.4-sock -I/Users/mbouza/tmp/php-5.4- sock/ext/date/lib -I/Users/mbouza/tmp/php-5.4-sock/ext/ereg/regex - I/usr/include/libxml2 -I/usr/local/include -I/opt/local/include/postgresql90 - I/Users/mbouza/tmp/php-5.4-sock/ext/sqlite3/libsqlite -I/Users/mbouza/tmp/php- 5.4-sock/TSRM -I/Users/mbouza/tmp/php-5.4-sock/Zend -no-cpp-precomp - I/usr/local/include -g -O2 -fvisibility=hidden
Bug #55111 [Com]: Make fails with --enable-sockets
Edit report at https://bugs.php.net/bug.php?id=55111edit=1 ID: 55111 Comment by: me at sumardi dot net Reported by:manuel at bouza dot ch Summary:Make fails with --enable-sockets Status: Assigned Type: Bug Package:Compile Failure Operating System: Mac OSX 10.6.7 PHP Version:5.4SVN-2011-07-02 (SVN) Assigned To:cataphract Block user comment: N Private report: N New Comment: I have the same issue on Mac OS X. SVN rev. 313075 Previous Comments: [2011-07-02 12:45:36] manuel at bouza dot ch Thank you for looking into this. Just tries with svn branches/PHP_5_4, rev 312814 and make now stops with the following error: /bin/sh /Users/mbouza/tmp/php-5.4-sock/libtool --silent --preserve-dup-deps -- mode=compile cc -Iext/sockets/ -I/Users/mbouza/tmp/php-5.4-sock/ext/sockets/ - DPHP_ATOM_INC -I/Users/mbouza/tmp/php-5.4-sock/include -I/Users/mbouza/tmp/php- 5.4-sock/main -I/Users/mbouza/tmp/php-5.4-sock -I/Users/mbouza/tmp/php-5.4- sock/ext/date/lib -I/Users/mbouza/tmp/php-5.4-sock/ext/ereg/regex - I/usr/include/libxml2 -I/usr/local/include -I/opt/local/include/postgresql90 - I/Users/mbouza/tmp/php-5.4-sock/ext/sqlite3/libsqlite -I/Users/mbouza/tmp/php- 5.4-sock/TSRM -I/Users/mbouza/tmp/php-5.4-sock/Zend -no-cpp-precomp - I/usr/local/include -g -O2 -fvisibility=hidden -DZEND_SIGNALS -c /Users/mbouza/tmp/php-5.4-sock/ext/sockets/sockets.c -o ext/sockets/sockets.lo /Users/mbouza/tmp/php-5.4-sock/ext/sockets/sockets.c: In function âzif_socket_connectâ: /Users/mbouza/tmp/php-5.4-sock/ext/sockets/sockets.c:1556: warning: cast from pointer to integer of different size /bin/sh /Users/mbouza/tmp/php-5.4-sock/libtool --silent --preserve-dup-deps -- mode=compile cc -Iext/sockets/ -I/Users/mbouza/tmp/php-5.4-sock/ext/sockets/ - DPHP_ATOM_INC -I/Users/mbouza/tmp/php-5.4-sock/include -I/Users/mbouza/tmp/php- 5.4-sock/main -I/Users/mbouza/tmp/php-5.4-sock -I/Users/mbouza/tmp/php-5.4- sock/ext/date/lib -I/Users/mbouza/tmp/php-5.4-sock/ext/ereg/regex - I/usr/include/libxml2 -I/usr/local/include -I/opt/local/include/postgresql90 - I/Users/mbouza/tmp/php-5.4-sock/ext/sqlite3/libsqlite -I/Users/mbouza/tmp/php- 5.4-sock/TSRM -I/Users/mbouza/tmp/php-5.4-sock/Zend -no-cpp-precomp - I/usr/local/include -g -O2 -fvisibility=hidden -DZEND_SIGNALS -c /Users/mbouza/tmp/php-5.4-sock/ext/sockets/multicast.c -o ext/sockets/multicast.lo /Users/mbouza/tmp/php-5.4-sock/ext/sockets/multicast.c: In function âphp_if_index_to_addr4â: /Users/mbouza/tmp/php-5.4-sock/ext/sockets/multicast.c:426: error: âstruct ifreqâ has no member named âifr_ifindexâ /Users/mbouza/tmp/php-5.4-sock/ext/sockets/multicast.c: In function âphp_add4_to_if_indexâ: /Users/mbouza/tmp/php-5.4-sock/ext/sockets/multicast.c:506: error: âSIOCGIFINDEXâ undeclared (first use in this function) /Users/mbouza/tmp/php-5.4-sock/ext/sockets/multicast.c:506: error: (Each undeclared identifier is reported only once /Users/mbouza/tmp/php-5.4-sock/ext/sockets/multicast.c:506: error: for each function it appears in.) /Users/mbouza/tmp/php-5.4-sock/ext/sockets/multicast.c:513: error: âstruct ifreqâ has no member named âifr_ifindexâ make: *** [ext/sockets/multicast.lo] Error 1 [2011-07-02 08:04:14] cataphr...@php.net Committed fix to SVN. Could you try to compile now? [2011-07-02 08:03:33] cataphr...@php.net Automatic comment from SVN on behalf of cataphract Revision: http://svn.php.net/viewvc/?view=revisionamp;revision=312810 Log: - Fixed bug #55111 (sockets extension fails to compile on Mac OSX). [2011-07-02 06:12:54] cataphr...@php.net I thought this has been fixed (though I couldn't confirm myself because I don't have Mac OSX). Assigning to me. [2011-07-02 03:15:21] manuel at bouza dot ch Description: PHP Version: 5.4.0alpha2-dev Make fails with --enable-sockets configuration option. Without --enable-sockets, make make install is successful. Test script: --- I used the following configuration options: sudo ./configure \ --prefix=/opt/local/php-5.4-dev \ --with-config-file-path=/opt/local/php-5.4-dev/etc \ --with-fpm-user=_www \ --with-fpm-group=_www \ --enable-fpm \ --with-mysql=mysqlnd \ --with-mysqli=mysqlnd \ --with-pdo-mysql=mysqlnd \ --with-pdo-pgsql=/opt/local/lib/postgresql90/bin \ --enable-sockets Expected result: PHP should compile successfully with --enable-sockets. Socket function should be available in PHP after successful compilation. Actual result: -- Confuguration runs ok, but make
Bug #55111 [Com]: Make fails with --enable-sockets
Edit report at https://bugs.php.net/bug.php?id=55111edit=1 ID: 55111 Comment by: manuel at bouza dot ch Reported by:manuel at bouza dot ch Summary:Make fails with --enable-sockets Status: Feedback Type: Bug Package:Compile Failure Operating System: Mac OSX 10.6.7 PHP Version:5.4SVN-2011-07-02 (SVN) Assigned To:cataphract Block user comment: N Private report: N New Comment: Thank you for looking into this. Just tries with svn branches/PHP_5_4, rev 312814 and make now stops with the following error: /bin/sh /Users/mbouza/tmp/php-5.4-sock/libtool --silent --preserve-dup-deps -- mode=compile cc -Iext/sockets/ -I/Users/mbouza/tmp/php-5.4-sock/ext/sockets/ - DPHP_ATOM_INC -I/Users/mbouza/tmp/php-5.4-sock/include -I/Users/mbouza/tmp/php- 5.4-sock/main -I/Users/mbouza/tmp/php-5.4-sock -I/Users/mbouza/tmp/php-5.4- sock/ext/date/lib -I/Users/mbouza/tmp/php-5.4-sock/ext/ereg/regex - I/usr/include/libxml2 -I/usr/local/include -I/opt/local/include/postgresql90 - I/Users/mbouza/tmp/php-5.4-sock/ext/sqlite3/libsqlite -I/Users/mbouza/tmp/php- 5.4-sock/TSRM -I/Users/mbouza/tmp/php-5.4-sock/Zend -no-cpp-precomp - I/usr/local/include -g -O2 -fvisibility=hidden -DZEND_SIGNALS -c /Users/mbouza/tmp/php-5.4-sock/ext/sockets/sockets.c -o ext/sockets/sockets.lo /Users/mbouza/tmp/php-5.4-sock/ext/sockets/sockets.c: In function âzif_socket_connectâ: /Users/mbouza/tmp/php-5.4-sock/ext/sockets/sockets.c:1556: warning: cast from pointer to integer of different size /bin/sh /Users/mbouza/tmp/php-5.4-sock/libtool --silent --preserve-dup-deps -- mode=compile cc -Iext/sockets/ -I/Users/mbouza/tmp/php-5.4-sock/ext/sockets/ - DPHP_ATOM_INC -I/Users/mbouza/tmp/php-5.4-sock/include -I/Users/mbouza/tmp/php- 5.4-sock/main -I/Users/mbouza/tmp/php-5.4-sock -I/Users/mbouza/tmp/php-5.4- sock/ext/date/lib -I/Users/mbouza/tmp/php-5.4-sock/ext/ereg/regex - I/usr/include/libxml2 -I/usr/local/include -I/opt/local/include/postgresql90 - I/Users/mbouza/tmp/php-5.4-sock/ext/sqlite3/libsqlite -I/Users/mbouza/tmp/php- 5.4-sock/TSRM -I/Users/mbouza/tmp/php-5.4-sock/Zend -no-cpp-precomp - I/usr/local/include -g -O2 -fvisibility=hidden -DZEND_SIGNALS -c /Users/mbouza/tmp/php-5.4-sock/ext/sockets/multicast.c -o ext/sockets/multicast.lo /Users/mbouza/tmp/php-5.4-sock/ext/sockets/multicast.c: In function âphp_if_index_to_addr4â: /Users/mbouza/tmp/php-5.4-sock/ext/sockets/multicast.c:426: error: âstruct ifreqâ has no member named âifr_ifindexâ /Users/mbouza/tmp/php-5.4-sock/ext/sockets/multicast.c: In function âphp_add4_to_if_indexâ: /Users/mbouza/tmp/php-5.4-sock/ext/sockets/multicast.c:506: error: âSIOCGIFINDEXâ undeclared (first use in this function) /Users/mbouza/tmp/php-5.4-sock/ext/sockets/multicast.c:506: error: (Each undeclared identifier is reported only once /Users/mbouza/tmp/php-5.4-sock/ext/sockets/multicast.c:506: error: for each function it appears in.) /Users/mbouza/tmp/php-5.4-sock/ext/sockets/multicast.c:513: error: âstruct ifreqâ has no member named âifr_ifindexâ make: *** [ext/sockets/multicast.lo] Error 1 Previous Comments: [2011-07-02 08:04:14] cataphr...@php.net Committed fix to SVN. Could you try to compile now? [2011-07-02 08:03:33] cataphr...@php.net Automatic comment from SVN on behalf of cataphract Revision: http://svn.php.net/viewvc/?view=revisionamp;revision=312810 Log: - Fixed bug #55111 (sockets extension fails to compile on Mac OSX). [2011-07-02 06:12:54] cataphr...@php.net I thought this has been fixed (though I couldn't confirm myself because I don't have Mac OSX). Assigning to me. [2011-07-02 03:15:21] manuel at bouza dot ch Description: PHP Version: 5.4.0alpha2-dev Make fails with --enable-sockets configuration option. Without --enable-sockets, make make install is successful. Test script: --- I used the following configuration options: sudo ./configure \ --prefix=/opt/local/php-5.4-dev \ --with-config-file-path=/opt/local/php-5.4-dev/etc \ --with-fpm-user=_www \ --with-fpm-group=_www \ --enable-fpm \ --with-mysql=mysqlnd \ --with-mysqli=mysqlnd \ --with-pdo-mysql=mysqlnd \ --with-pdo-pgsql=/opt/local/lib/postgresql90/bin \ --enable-sockets Expected result: PHP should compile successfully with --enable-sockets. Socket function should be available in PHP after successful compilation. Actual result: -- Confuguration runs ok, but make stops with the following error: /Users/mbouza/Downloads/php5.4-201107012030/ext/sockets/sockets.c: In function âzif_socket_connectâ: