From:             [EMAIL PROTECTED]
Operating system: Redhat 7.2, Redhat 8.0
PHP version:      4.2.3
PHP Bug Type:     Compile Failure
Bug description:  Make fails with GD2.0.4

compile fails when compiling with GD2.0.4 (built as static).

Reproducable on both RedHat7.2 and RedHat 8.0

configure command:
./configure \
--with-apxs=/usr/sbin/apxs \
--with-kerberos=/usr \
--with-config-file-path=/etc \
--with-PEAR \
--with-openssl \
--with-mcrypt \
--with-bz2 \
--with-curl=/usr \
--enable-ftp \
--with-gd=../gd-2.0.4 \
--enable-gd-native-ttf \
--enable-gd-imgstrttf \
--with-jpeg-dir=/usr/lib \
--with-png-dir=/usr/lib \
--with-tiff-dir=/usr \
--with-zlib-dir=/usr/share \
--with-xpm-dir=/usr/X11R6/lib/ \
--with-freetype-dir=/usr/include/freetype2/freetype \
--with-ttf=/usr/include/freetype2 \
--with-t1lib=/usr/include \
--with-gettext=/usr/share/gettext \
--with-imap-ssl \
--with-unixODBC \
--with-pgsql=/usr \
--with-mysql=/usr \
--enable-sockets \
--with-regex \
--with-xmlrpc \
--with-expat

GD2.0.4 compiled from source (in /usr/src/redhat/BUILD/gd-2.0.4/):
./configure
make libgd.a



Description:
'configure' completes perfectly

make fails with the following:
[php 4.2.2]
<snip>
Making all in gd
make[2]: Entering directory `/usr/src/redhat/BUILD/php-4.2.2/ext/gd'
make[3]: Entering directory `/usr/src/redhat/BUILD/php-4.2.2/ext/gd'
/bin/sh /usr/src/redhat/BUILD/php-4.2.2/libtool --silent --mode=compile
gcc
-I. -I/usr/src/redhat/BUILD/php-4.2.2/ext/gd
-I/usr/src/redhat/BUILD/php-4.2.2/main -I/usr/src/redhat/BUILD/php-4.2.2
-I/usr/include/apache -I/usr/src/redhat/BUILD/php-4.2.2/Zend
-I/usr/include/freetype2/freetype -I/usr/src/redhat/BUILD/gd-2.0.4
-I/usr/include/mysql -I/usr/local/include -I/usr/include/pgsql
-I/usr/src/redhat/BUILD/php-4.2.2/ext/xml/expat
-I/usr/src/redhat/BUILD/php-4.2.2/ext/xmlrpc/libxmlrpc  -DLINUX=22 -DEAPI
-DEAPI_MM -DEAPI_MM_CORE_PATH=/var/run/httpd.mm
-I/usr/src/redhat/BUILD/php-4.2.2/TSRM -g -O2 -prefer-pic  -c gd.c
In file included from gd.c:83:
gd_ctx.c: In function `_php_image_output_ctx':
gd_ctx.c:70: structure has no member named `free'
gd_ctx.c:98: structure has no member named `free'
gd.c: In function `_php_image_type':
gd.c:1014: structure has no member named `free'
gd.c:1017: structure has no member named `free'
gd.c: In function `_php_image_create_from':
gd.c:1208: structure has no member named `free'
make[3]: *** [gd.lo] Error 1
make[3]: Leaving directory `/usr/src/redhat/BUILD/php-4.2.2/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/php-4.2.2/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/php-4.2.2/ext'
make: *** [all-recursive] Error 1


[php4.2.3]
<snip>
Making all in gd
make[2]: Entering directory `/usr/src/redhat/BUILD/php-4.2.3/ext/gd'
make[3]: Entering directory `/usr/src/redhat/BUILD/php-4.2.3/ext/gd'
/bin/sh /usr/src/redhat/BUILD/php-4.2.3/libtool --silent --mode=compile
gcc
-I. -I/usr/src/redhat/BUILD/php-4.2.3/ext/gd
-I/usr/src/redhat/BUILD/php-4.2.3/main -I/usr/src/redhat/BUILD/php-4.2.3
-I/usr/include/apache -I/usr/src/redhat/BUILD/php-4.2.3/Zend
-I/usr/include/freetype2/freetype -I/usr/src/redhat/BUILD/gd-2.0.4
-I/usr/include/mysql -I/usr/local/include -I/usr/include/pgsql
-I/usr/src/redhat/BUILD/php-4.2.3/ext/xml/expat
-I/usr/src/redhat/BUILD/php-4.2.3/ext/xmlrpc/libxmlrpc  -DLINUX=22 -DEAPI
-DEAPI_MM -DEAPI_MM_CORE_PATH=/var/run/httpd.mm
-I/usr/src/redhat/BUILD/php-4.2.3/TSRM -g -O2 -prefer-pic  -c gd.c
In file included from gd.c:83:
gd_ctx.c: In function `_php_image_output_ctx':
gd_ctx.c:70: structure has no member named `free'
gd_ctx.c:98: structure has no member named `free'
gd.c: In function `_php_image_type':
gd.c:1014: structure has no member named `free'
gd.c:1017: structure has no member named `free'
gd.c: In function `_php_image_create_from':
gd.c:1209: structure has no member named `free'
make[3]: *** [gd.lo] Error 1
make[3]: Leaving directory `/usr/src/redhat/BUILD/php-4.2.3/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/php-4.2.3/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/php-4.2.3/ext'
make: *** [all-recursive] Error 1


-- 
Edit bug report at http://bugs.php.net/?id=20250&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20250&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20250&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20250&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20250&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20250&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20250&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20250&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20250&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20250&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20250&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20250&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20250&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20250&r=isapi

Reply via email to