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

 ID:                 55111
 Updated by:         [email protected]
 Reported by:        manuel at bouza dot ch
 Summary:            Make fails with --enable-sockets
 Status:             Open
 Type:               Bug
 Package:            Compile Failure
 Operating System:   Mac OSX 10.6.7
 PHP Version:        5.4SVN-2011-07-02 (SVN)
-Assigned To:        
+Assigned To:        cataphract
 Block user comment: N
 Private report:     N

 New Comment:

I thought this has been fixed (though I couldn't confirm myself because I don't 
have Mac OSX). Assigning to me.


Previous Comments:
------------------------------------------------------------------------
[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’:
/Users/mbouza/Downloads/php5.4-201107012030/ext/sockets/sockets.c:1556: 
warning: 
cast from pointer to integer of different size
/Users/mbouza/Downloads/php5.4-201107012030/ext/sockets/sockets.c: In function 
‘zif_socket_set_option’:
/Users/mbouza/Downloads/php5.4-201107012030/ext/sockets/sockets.c:2206: error: 
‘MCAST_BLOCK_SOURCE’ undeclared (first use in this function)
/Users/mbouza/Downloads/php5.4-201107012030/ext/sockets/sockets.c:2206: error: 
(Each undeclared identifier is reported only once
/Users/mbouza/Downloads/php5.4-201107012030/ext/sockets/sockets.c:2206: error: 
for each function it appears in.)
/Users/mbouza/Downloads/php5.4-201107012030/ext/sockets/sockets.c:2207: error: 
‘MCAST_UNBLOCK_SOURCE’ undeclared (first use in this function)
/Users/mbouza/Downloads/php5.4-201107012030/ext/sockets/sockets.c:2208: error: 
‘MCAST_JOIN_SOURCE_GROUP’ undeclared (first use in this function)
/Users/mbouza/Downloads/php5.4-201107012030/ext/sockets/sockets.c:2209: error: 
‘MCAST_LEAVE_SOURCE_GROUP’ undeclared (first use in this function)
make: *** [ext/sockets/sockets.lo] Error 1



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



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

Reply via email to