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://bugs.php.net/fix.php?id=55224&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=55224&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=55224&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=55224&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=55224&r=mysqlcfg
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=55224&r=trysnapshot54

Reply via email to