i want to build php with gd on my macos x.
first i installed all libraries (zlib, pnglib and jpeg) and then installed gd. after this i wanted to compile php for gd.
"./configure" was ok but then with "make" the following error came:
/Users/firewall/Desktop/php-4.0.5/main/.libs
Making all in ext
Making all in gd
/bin/sh /Users/firewall/Desktop/php-4.0.5/libtool --silent --mode=compile cc -I. -I/Users/firewall/Desktop/php-4.0.5/ext/gd -I/Users/firewall/Desktop/php-4.0.5/main -I/Users/firewall/Desktop/php-4.0.5 -I/usr/include/httpd -I/Users/firewall/Desktop/php-4.0.5/Zend -I/usr/local/include -I/Users/firewall/Desktop/php-4.0.5/ext/mysql/libmysql -I/Users/firewall/Desktop/php-4.0.5/ext/xml/expat/xmltok -I/Users/firewall/Desktop/php-4.0.5/ext/xml/expat/xmlparse -I/Users/firewall/Desktop/php-4.0.5/TSRM -traditional-cpp -DDARWIN -DUSE_HSREGEX -DUSE_EXPAT -DHARD_SERVER_LIMIT=1024 -DEAPI -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -g -O2 -c gd.c
gd.c:91: conflicting types for `gdIOCtx'
/usr/local/include/gd_io.h:18: previous declaration of `gdIOCtx'
make[3]: *** [gd.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
do you have any idea what the problem is?
thanks
jomo
first i installed all libraries (zlib, pnglib and jpeg) and then installed gd. after this i wanted to compile php for gd.
"./configure" was ok but then with "make" the following error came:
/Users/firewall/Desktop/php-4.0.5/main/.libs
Making all in ext
Making all in gd
/bin/sh /Users/firewall/Desktop/php-4.0.5/libtool --silent --mode=compile cc -I. -I/Users/firewall/Desktop/php-4.0.5/ext/gd -I/Users/firewall/Desktop/php-4.0.5/main -I/Users/firewall/Desktop/php-4.0.5 -I/usr/include/httpd -I/Users/firewall/Desktop/php-4.0.5/Zend -I/usr/local/include -I/Users/firewall/Desktop/php-4.0.5/ext/mysql/libmysql -I/Users/firewall/Desktop/php-4.0.5/ext/xml/expat/xmltok -I/Users/firewall/Desktop/php-4.0.5/ext/xml/expat/xmlparse -I/Users/firewall/Desktop/php-4.0.5/TSRM -traditional-cpp -DDARWIN -DUSE_HSREGEX -DUSE_EXPAT -DHARD_SERVER_LIMIT=1024 -DEAPI -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -g -O2 -c gd.c
gd.c:91: conflicting types for `gdIOCtx'
/usr/local/include/gd_io.h:18: previous declaration of `gdIOCtx'
make[3]: *** [gd.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
do you have any idea what the problem is?
thanks
jomo