From:             
Operating system: Mac OSX 10.6.7
PHP version:      5.4SVN-2011-07-02 (SVN)
Package:          Compile Failure
Bug Type:         Bug
Bug description:Make fails with --enable-sockets

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 bug report at https://bugs.php.net/bug.php?id=55111&edit=1
-- 
Try a snapshot (PHP 5.2):            
https://bugs.php.net/fix.php?id=55111&r=trysnapshot52
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=55111&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=55111&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=55111&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=55111&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=55111&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=55111&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=55111&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=55111&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=55111&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=55111&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=55111&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=55111&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=55111&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=55111&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=55111&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=55111&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=55111&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=55111&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=55111&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=55111&r=mysqlcfg
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=55111&r=trysnapshot54

Reply via email to