Edit report at https://bugs.php.net/bug.php?id=55111&edit=1

 ID:                 55111
 User updated by:    manuel at bouza dot ch
 Reported by:        manuel at bouza dot ch
 Summary:            Make fails with --enable-sockets
-Status:             Feedback
+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 tried to compile from revision 313151 and it was successful. Calling 
socket_create successfully created a socket ressource in PHP.

Seems you patch was already applied in this revision, because I got the 
following message trying to patch the file:

> sudo patch -b -i ./bug55111.diff /tmp/php-5.4-dev-
patched/ext/sockets/multicast.c
patching file /tmp/php-5.4-dev-patched/ext/sockets/multicast.c
Reversed (or previously applied) patch detected!  Assume -R? [n]

Thanks for your help!


Previous Comments:
------------------------------------------------------------------------
[2011-07-11 04:29:36] cataphr...@php.net

Automatic comment from SVN on behalf of cataphract
Revision: http://svn.php.net/viewvc/?view=revision&revision=313126
Log: - Further fix for bug #55111 (compilation failure of ext/sockets in Mac OS 
X).

------------------------------------------------------------------------
[2011-07-10 20:39:23] cataphr...@php.net

Please test this patch: http://nebm.ist.utl.pt/~glopes/misc/bug55111.diff

------------------------------------------------------------------------
[2011-07-10 17:07:06] carlos dot lazcano at cursor dot cl

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

------------------------------------------------------------------------
[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

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=55111


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=55111&edit=1

Reply via email to