Curt Zirzow wrote:
* Thus wrote Martin Visser:

PHP5, with GD on Linux (Slackware 10.0)


./configure goes just fine, but when I try 'make', there's an error.

this is how I configured it:
./configure --prefix=/usr/local/php5 --with-zlib --with-pear=/usr/share/pear --with-mysql=/usr/local/mysql --includedir=/usr/include --without-sqlite --disable-cgi --with-apxs2=/usr/local/apache2/bin/apxs --with-freetype-dir=/usr/include/freetype2 --enable-gd-native-tt --with-jpeg-dir=/usr/local/lib --with-png-dir=/usr/local/lib --with-xpm-dir=/usr/local/lib --with-gd=/usr/local/include


...

this is the error I get when I 'make' the configuration:
+++++ (everything above this contains no errors)
ext/gd/gd.lo(.text+0x1be8): In function `zif_imagecolormatch':
/usr/local/php5/ext/gd/gd.c:902: undefined reference to `gdImageColorMatch'


This is usually due to header and library mismatch from my
exprirence.


...

I tried to compile PHP with only --with-gd (without --with-jpeg-dir etc) and than I get an error:
Fatal error: Call to undefined function imagecreatefromjpeg()



does anyone know how to solve this problem?


did you try it with: configure --with-gd or
configure --with-gd=/usr/...



You can leave in the --with-jpeg-dir directives, it simply sounds like you have mulitple versions (gd1 and gd2) on your system and things are getting confused when it gets compiled.



Curt

I can't find any other gd libraries besides gd2, but how can I be certain about that?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to