Bug #55224 [Opn]: make fails if configured with --with-gd=DIR

2011-07-22 Thread manuel at bouza dot ch
Edit report at https://bugs.php.net/bug.php?id=55224&edit=1

 ID: 55224
 User updated by:manuel at bouza dot ch
 Reported by:manuel at bouza dot ch
-Summary:make fails if configured with --with-gd
+Summary:make fails if configured with --with-gd=DIR
 Status: Open
 Type:   Bug
 Package:GD related
 Operating System:   MAC OSX 10.6.8
 PHP Version:5.4SVN-2011-07-18 (SVN)
 Block user comment: N
 Private report: N

 New Comment:

make does not fail if configured with --with-gd (using native library)


Previous Comments:

[2011-07-19 02:53:09] manuel at bouza dot ch

It's libgd version 2.0.35.


[2011-07-18 22:26:12] ahar...@php.net

What version of libgd do you have installed in /opt/local?


[2011-07-18 04:36:00] manuel at bouza dot ch

Description:

If PHP is configured with --with-gd for compilation, make fails and aborts with 
an 
error.


Test script:
---
On my MAC OSX 10.6.8, I configured PHP as follows for compilation:

> ./configure \
--prefix=/opt/local/php-5.4-dev \
--with-config-file-path=/opt/local/php-5.4-dev/etc \
--enable-fpm \
--with-fpm-user=_www \
--with-fpm-group=_www \
--enable-sockets \
--enable-mbstring \
--enable-pcntl \
--enable-soap \
--enable-sockets \
--enable-zip \
--with-zlib \
--with-curl \
--with-gd=/opt/local \
--with-jpeg-dir=/opt/local \
--with-png-dir=/opt/local \
--with-zlib-dir \
--with-gettext=/opt/local \
--with-mcrypt=/opt/local \
--with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-pdo-sqlite \
--with-tidy \
--with-pear \
--with-iconv

> make

Produces error as stated in actual result (see below).


Expected result:

I expect make to complete successfully when --with-gd is specified for 
configuration.

Actual result:
--
Make fails and aborts with the following error: 

/bin/sh /Users/manuel.bouza/tmp/php-5.4-dev/libtool --silent 
--preserve-dup-deps 
--mode=compile cc -I/opt/local/include -Iext/gd/ -I/Users/manuel.bouza/tmp/php-
5.4-dev/ext/gd/ -DPHP_ATOM_INC -I/Users/manuel.bouza/tmp/php-5.4-dev/include -
I/Users/manuel.bouza/tmp/php-5.4-dev/main -I/Users/manuel.bouza/tmp/php-5.4-dev 
-I/Users/manuel.bouza/tmp/php-5.4-dev/ext/date/lib -
I/Users/manuel.bouza/tmp/php-5.4-dev/ext/ereg/regex -I/usr/include/libxml2 -
I/opt/local/include -I/usr/local/include -I/Users/manuel.bouza/tmp/php-5.4-
dev/ext/mbstring/oniguruma -I/Users/manuel.bouza/tmp/php-5.4-
dev/ext/mbstring/libmbfl -I/Users/manuel.bouza/tmp/php-5.4-
dev/ext/mbstring/libmbfl/mbfl -I/Users/manuel.bouza/tmp/php-5.4-
dev/ext/sqlite3/libsqlite -I/usr/include/tidy -I/Users/manuel.bouza/tmp/php-5.4-
dev/TSRM -I/Users/manuel.bouza/tmp/php-5.4-dev/Zend  -no-cpp-precomp  -
I/usr/local/include -g -O2 -fvisibility=hidden -DZEND_SIGNALS  -c 
/Users/manuel.bouza/tmp/php-5.4-dev/ext/gd/gd.c -o ext/gd/gd.lo 
In file included from /Users/manuel.bouza/tmp/php-5.4-dev/ext/gd/gd.c:103:
/Users/manuel.bouza/tmp/php-5.4-dev/ext/gd/gd_ctx.c: In function 
‘_php_image_stream_putc’:
/Users/manuel.bouza/tmp/php-5.4-dev/ext/gd/gd_ctx.c:51: error: ‘struct 
gdIOCtx’ 
has no member named ‘data’
/Users/manuel.bouza/tmp/php-5.4-dev/ext/gd/gd_ctx.c: In function 
‘_php_image_stream_putbuf’:
/Users/manuel.bouza/tmp/php-5.4-dev/ext/gd/gd_ctx.c:58: error: ‘struct 
gdIOCtx’ 
has no member named ‘data’
/Users/manuel.bouza/tmp/php-5.4-dev/ext/gd/gd_ctx.c: In function 
‘_php_image_stream_ctxfree’:
/Users/manuel.bouza/tmp/php-5.4-dev/ext/gd/gd_ctx.c:67: error: ‘struct 
gdIOCtx’ 
has no member named ‘data’
/Users/manuel.bouza/tmp/php-5.4-dev/ext/gd/gd_ctx.c:68: error: ‘struct 
gdIOCtx’ 
has no member named ‘data’
/Users/manuel.bouza/tmp/php-5.4-dev/ext/gd/gd_ctx.c:69: error: ‘struct 
gdIOCtx’ 
has no member named ‘data’
/Users/manuel.bouza/tmp/php-5.4-dev/ext/gd/gd_ctx.c: In function 
‘_php_image_output_ctx’:
/Users/manuel.bouza/tmp/php-5.4-dev/ext/gd/gd_ctx.c:153: error: ‘gdIOCtx’ 
has no 
member named ‘data’
make: *** [ext/gd/gd.lo] Error 1







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


Bug #55224 [Fbk->Opn]: make fails if configured with --with-gd

2011-07-18 Thread manuel at bouza dot ch
Edit report at https://bugs.php.net/bug.php?id=55224&edit=1

 ID: 55224
 User updated by:manuel at bouza dot ch
 Reported by:manuel at bouza dot ch
 Summary:make fails if configured with --with-gd
-Status: Feedback
+Status: Open
 Type:   Bug
 Package:GD related
 Operating System:   MAC OSX 10.6.8
 PHP Version:5.4SVN-2011-07-18 (SVN)
 Block user comment: N
 Private report: N

 New Comment:

It's libgd version 2.0.35.


Previous Comments:

[2011-07-18 22:26:12] ahar...@php.net

What version of libgd do you have installed in /opt/local?


[2011-07-18 04:36:00] manuel at bouza dot ch

Description:

If PHP is configured with --with-gd for compilation, make fails and aborts with 
an 
error.


Test script:
---
On my MAC OSX 10.6.8, I configured PHP as follows for compilation:

> ./configure \
--prefix=/opt/local/php-5.4-dev \
--with-config-file-path=/opt/local/php-5.4-dev/etc \
--enable-fpm \
--with-fpm-user=_www \
--with-fpm-group=_www \
--enable-sockets \
--enable-mbstring \
--enable-pcntl \
--enable-soap \
--enable-sockets \
--enable-zip \
--with-zlib \
--with-curl \
--with-gd=/opt/local \
--with-jpeg-dir=/opt/local \
--with-png-dir=/opt/local \
--with-zlib-dir \
--with-gettext=/opt/local \
--with-mcrypt=/opt/local \
--with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-pdo-sqlite \
--with-tidy \
--with-pear \
--with-iconv

> make

Produces error as stated in actual result (see below).


Expected result:

I expect make to complete successfully when --with-gd is specified for 
configuration.

Actual result:
--
Make fails and aborts with the following error: 

/bin/sh /Users/manuel.bouza/tmp/php-5.4-dev/libtool --silent 
--preserve-dup-deps 
--mode=compile cc -I/opt/local/include -Iext/gd/ -I/Users/manuel.bouza/tmp/php-
5.4-dev/ext/gd/ -DPHP_ATOM_INC -I/Users/manuel.bouza/tmp/php-5.4-dev/include -
I/Users/manuel.bouza/tmp/php-5.4-dev/main -I/Users/manuel.bouza/tmp/php-5.4-dev 
-I/Users/manuel.bouza/tmp/php-5.4-dev/ext/date/lib -
I/Users/manuel.bouza/tmp/php-5.4-dev/ext/ereg/regex -I/usr/include/libxml2 -
I/opt/local/include -I/usr/local/include -I/Users/manuel.bouza/tmp/php-5.4-
dev/ext/mbstring/oniguruma -I/Users/manuel.bouza/tmp/php-5.4-
dev/ext/mbstring/libmbfl -I/Users/manuel.bouza/tmp/php-5.4-
dev/ext/mbstring/libmbfl/mbfl -I/Users/manuel.bouza/tmp/php-5.4-
dev/ext/sqlite3/libsqlite -I/usr/include/tidy -I/Users/manuel.bouza/tmp/php-5.4-
dev/TSRM -I/Users/manuel.bouza/tmp/php-5.4-dev/Zend  -no-cpp-precomp  -
I/usr/local/include -g -O2 -fvisibility=hidden -DZEND_SIGNALS  -c 
/Users/manuel.bouza/tmp/php-5.4-dev/ext/gd/gd.c -o ext/gd/gd.lo 
In file included from /Users/manuel.bouza/tmp/php-5.4-dev/ext/gd/gd.c:103:
/Users/manuel.bouza/tmp/php-5.4-dev/ext/gd/gd_ctx.c: In function 
‘_php_image_stream_putc’:
/Users/manuel.bouza/tmp/php-5.4-dev/ext/gd/gd_ctx.c:51: error: ‘struct 
gdIOCtx’ 
has no member named ‘data’
/Users/manuel.bouza/tmp/php-5.4-dev/ext/gd/gd_ctx.c: In function 
‘_php_image_stream_putbuf’:
/Users/manuel.bouza/tmp/php-5.4-dev/ext/gd/gd_ctx.c:58: error: ‘struct 
gdIOCtx’ 
has no member named ‘data’
/Users/manuel.bouza/tmp/php-5.4-dev/ext/gd/gd_ctx.c: In function 
‘_php_image_stream_ctxfree’:
/Users/manuel.bouza/tmp/php-5.4-dev/ext/gd/gd_ctx.c:67: error: ‘struct 
gdIOCtx’ 
has no member named ‘data’
/Users/manuel.bouza/tmp/php-5.4-dev/ext/gd/gd_ctx.c:68: error: ‘struct 
gdIOCtx’ 
has no member named ‘data’
/Users/manuel.bouza/tmp/php-5.4-dev/ext/gd/gd_ctx.c:69: error: ‘struct 
gdIOCtx’ 
has no member named ‘data’
/Users/manuel.bouza/tmp/php-5.4-dev/ext/gd/gd_ctx.c: In function 
‘_php_image_output_ctx’:
/Users/manuel.bouza/tmp/php-5.4-dev/ext/gd/gd_ctx.c:153: error: ‘gdIOCtx’ 
has no 
member named ‘data’
make: *** [ext/gd/gd.lo] Error 1







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


[PHP-BUG] Bug #55224 [NEW]: make fails if configured with --with-gd

2011-07-18 Thread manuel at bouza dot ch
From: 
Operating system: MAC OSX 10.6.8
PHP version:  5.4SVN-2011-07-18 (SVN)
Package:  Compile Failure
Bug Type: Bug
Bug description:make fails if configured with --with-gd

Description:

If PHP is configured with --with-gd for compilation, make fails and aborts
with an 
error.


Test script:
---
On my MAC OSX 10.6.8, I configured PHP as follows for compilation:

> ./configure \
--prefix=/opt/local/php-5.4-dev \
--with-config-file-path=/opt/local/php-5.4-dev/etc \
--enable-fpm \
--with-fpm-user=_www \
--with-fpm-group=_www \
--enable-sockets \
--enable-mbstring \
--enable-pcntl \
--enable-soap \
--enable-sockets \
--enable-zip \
--with-zlib \
--with-curl \
--with-gd=/opt/local \
--with-jpeg-dir=/opt/local \
--with-png-dir=/opt/local \
--with-zlib-dir \
--with-gettext=/opt/local \
--with-mcrypt=/opt/local \
--with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-pdo-sqlite \
--with-tidy \
--with-pear \
--with-iconv

> make

Produces error as stated in actual result (see below).


Expected result:

I expect make to complete successfully when --with-gd is specified for 
configuration.

Actual result:
--
Make fails and aborts with the following error: 

/bin/sh /Users/manuel.bouza/tmp/php-5.4-dev/libtool --silent
--preserve-dup-deps 
--mode=compile cc -I/opt/local/include -Iext/gd/
-I/Users/manuel.bouza/tmp/php-
5.4-dev/ext/gd/ -DPHP_ATOM_INC
-I/Users/manuel.bouza/tmp/php-5.4-dev/include -
I/Users/manuel.bouza/tmp/php-5.4-dev/main
-I/Users/manuel.bouza/tmp/php-5.4-dev 
-I/Users/manuel.bouza/tmp/php-5.4-dev/ext/date/lib -
I/Users/manuel.bouza/tmp/php-5.4-dev/ext/ereg/regex -I/usr/include/libxml2
-
I/opt/local/include -I/usr/local/include
-I/Users/manuel.bouza/tmp/php-5.4-
dev/ext/mbstring/oniguruma -I/Users/manuel.bouza/tmp/php-5.4-
dev/ext/mbstring/libmbfl -I/Users/manuel.bouza/tmp/php-5.4-
dev/ext/mbstring/libmbfl/mbfl -I/Users/manuel.bouza/tmp/php-5.4-
dev/ext/sqlite3/libsqlite -I/usr/include/tidy
-I/Users/manuel.bouza/tmp/php-5.4-
dev/TSRM -I/Users/manuel.bouza/tmp/php-5.4-dev/Zend  -no-cpp-precomp  -
I/usr/local/include -g -O2 -fvisibility=hidden -DZEND_SIGNALS  -c 
/Users/manuel.bouza/tmp/php-5.4-dev/ext/gd/gd.c -o ext/gd/gd.lo 
In file included from /Users/manuel.bouza/tmp/php-5.4-dev/ext/gd/gd.c:103:
/Users/manuel.bouza/tmp/php-5.4-dev/ext/gd/gd_ctx.c: In function 
‘_php_image_stream_putc’:
/Users/manuel.bouza/tmp/php-5.4-dev/ext/gd/gd_ctx.c:51: error: ‘struct
gdIOCtx’ 
has no member named ‘data’
/Users/manuel.bouza/tmp/php-5.4-dev/ext/gd/gd_ctx.c: In function 
‘_php_image_stream_putbuf’:
/Users/manuel.bouza/tmp/php-5.4-dev/ext/gd/gd_ctx.c:58: error: ‘struct
gdIOCtx’ 
has no member named ‘data’
/Users/manuel.bouza/tmp/php-5.4-dev/ext/gd/gd_ctx.c: In function 
‘_php_image_stream_ctxfree’:
/Users/manuel.bouza/tmp/php-5.4-dev/ext/gd/gd_ctx.c:67: error: ‘struct
gdIOCtx’ 
has no member named ‘data’
/Users/manuel.bouza/tmp/php-5.4-dev/ext/gd/gd_ctx.c:68: error: ‘struct
gdIOCtx’ 
has no member named ‘data’
/Users/manuel.bouza/tmp/php-5.4-dev/ext/gd/gd_ctx.c:69: error: ‘struct
gdIOCtx’ 
has no member named ‘data’
/Users/manuel.bouza/tmp/php-5.4-dev/ext/gd/gd_ctx.c: In function 
‘_php_image_output_ctx’:
/Users/manuel.bouza/tmp/php-5.4-dev/ext/gd/gd_ctx.c:153: error:
‘gdIOCtx’ has no 
member named ‘data’
make: *** [ext/gd/gd.lo] Error 1


-- 
Edit bug report at https://bugs.php.net/bug.php?id=55224&edit=1
-- 
Try a snapshot (PHP 5.2):
https://bugs.php.net/fix.php?id=55224&r=trysnapshot52
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=55224&r=trysnapshot53
Try a snapshot (trunk):  
https://bugs.php.net/fix.php?id=55224&r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=55224&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=55224&r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=55224&r=alreadyfixed
Need backtrace:  
https://bugs.php.net/fix.php?id=55224&r=needtrace
Need Reproduce Script:   
https://bugs.php.net/fix.php?id=55224&r=needscript
Try newer version:   
https://bugs.php.net/fix.php?id=55224&r=oldversion
Not developer issue: 
https://bugs.php.net/fix.php?id=55224&r=support
Expected behavior:   
https://bugs.php.net/fix.php?id=55224&r=notwrong
Not enough info: 
https://bugs.php.net/fix.php?id=55224&r=notenoughinfo
Submitted twice: 
https://bugs.php.net/fix.php?id=55224&r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=55224&r=globals
PHP 4 support discontinued:  
https://bugs.php.net/fix.php?id=55224&r=php4
Daylight Savings:https://bugs.php.net/fix.php?id=55224&r=dst
IIS Stability:   
https://

Bug #55111 [Fbk->Asn]: Make fails with --enable-sockets

2011-07-11 Thread manuel at bouza dot ch
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/mult

Bug #55111 [Com]: Make fails with --enable-sockets

2011-07-02 Thread manuel at bouza dot ch
Edit report at https://bugs.php.net/bug.php?id=55111&edit=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=revision&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’:
/Users/m

[PHP-BUG] Bug #55111 [NEW]: Make fails with --enable-sockets

2011-07-02 Thread manuel at bouza dot ch
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