Click to See Complete Forum and Search --> : gd 1.8.3 + PHP 4.0.6 compilation problem


Anon
07-22-2001, 04:45 PM
Hi,

while trying to compile PHP with gd support, i get an error the error :

internal_functions.c:54: `phpext_gd_ptr' undeclared here (not in a function)
internal_functions.c:54: initializer element is not constant
internal_functions.c:54: (near initialization for `php_builtin_extensions[8]')
make[2]: *** [internal_functions.lo] Error 1
make[2]: Quitte le répertoire `/usr/local/src/php-4.0.6/main'
make[1]: *** [install-recursive] Error 1
make[1]: Quitte le répertoire `/usr/local/src/php-4.0.6/main'
make: *** [install-recursive] Error 1

My compilation options are :

./configure --libdir=/usr/local --with-apxs --with-mysql --with-xml --enable-zli
b --with-zlib=/usr/local --with-gd=/usr/local --enable-gd-native-tt --with-png-d
ir=/usr/local --with-jpeg-dir=/usr/local --with-swf --with-ttf --enable-magic-qu
otes --enable-ftp --with-gettext --with-freetype-dir=/usr/local

Didn't find where the problem was ! !

Thanks

Anon
07-23-2001, 02:08 AM
I have some problem tu configure Apache , Php4 and Mysql:
Mu navigator refuse to open the php file , it open me my source with dta TXT and i dont undrerstand how can i do ??,
please some body help me...

Anon
07-24-2001, 11:17 AM
here is my configure, GD worked fine. i installed gd 2.0.1 and latest freetype2.

./configure \
--prefix=/usr/local/php \
--with-mysql=/usr/local/mysql \
--enable-bcmath \
--enable-ftp \
--with-gd \
--enable-gd-native-tt \
--with-freetype-dir \
--with-png-dir \
--with-jpeg-dir \
--with-dom=/usr/local \
--with-zlib-dir \
--enable-trans-sid \
--with-mcrypt=/usr/local \
--with-mhash=/usr \
--with-apxs=/usr/local/apache/bin/apxs \
--with-java=/usr/java/jdk1.3.1 \
--with-sablot