Help! mod_php4 upgrade breaks GD!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



A customer needed curl support, so I reconfigured and upgraded from an
older version of mod_php4 to the latest (4.3.10) and all hell broke loose.
I installed from FreeBSD ports, using what I thought were a combination of
the ports default and my old settings.  Ports had --disable-all, which
broke all kinds of functions, but I fixed that, but it still appears that
alot of gd functions are still undefined.

My last config options were:

'./configure' '--enable-versioning' '--enable-memory-limit'
'--with-layout=PHP' '--with-regex=php' '--with-apxs=/usr/local/sbin/apxs'
'--prefix=/usr/local' 'i386-portbld-freebsd4.9' '--with-curl'
'--with-mysql=/usr/local' '--with-pcre' '--with-gd=/usr/local/'

It configures, builds and installs ok, but I have the gd problems I
described.  I also tried to use the built-in gd support by switching to
just "--with-gd", but then it won't build.

Configure then fails with:

checking for GD support... yes
checking for the location of libjpeg... no
checking for the location of libpng... no
checking for the location of libXpm... no
checking for FreeType 1.x support... no
checking for FreeType 2... no
checking for T1lib support... no
checking whether to enable truetype string function in GD... no
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for fabsf... (cached) yes
checking for floorf... (cached) yes
If configure fails try --with-jpeg-dir=<DIR>
configure: error: PNG support requires ZLIB. Use --with-zlib-dir=<DIR>

No clue why it couldn't find libjpeg, but I then tried adding:
--with-zlib-dir=/usr/include (AND) --with-jpeg-dir=/usr/local/include/
(the header files are there)

the configure script then runs through fine, but when I try to run make, I
get:

eg -lcurl -lz -lm -lcurl -lssl -lcrypto -lz -lcrypt -lcrypt  -o
sapi/cli/php
ext/gd/gd.lo: In function `zif_imagecreatefromstring':
/usr/ports/www/mod_php4/work/php-4.3.10/ext/gd/gd.c:1328: undefined
reference to `gdImageCreateFromJpegCtx'
ext/gd/gd.lo: In function `zif_imagecreatefromjpeg':
/usr/ports/www/mod_php4/work/php-4.3.10/ext/gd/gd.c:1507: undefined
reference to `gdImageCreateFromJpegCtx'
/usr/ports/www/mod_php4/work/php-4.3.10/ext/gd/gd.c:1507: undefined
reference to `gdImageCreateFromJpeg'
ext/gd/gd.lo: In function `zif_imagejpeg':
/usr/ports/www/mod_php4/work/php-4.3.10/ext/gd/gd.c:1762: undefined
reference to `gdImageJpegCtx'
ext/gd/gd.lo: In function `zif_imagecolorat':
/usr/ports/www/mod_php4/work/php-4.3.10/ext/gd/gd.c:1891: undefined
reference to `gdImageBoundsSafe'
ext/gd/gd.lo: In function `_php_image_convert':
/usr/ports/www/mod_php4/work/php-4.3.10/ext/gd/gd.c:3759: undefined
reference to `gdImageCreateFromJpeg'
*** Error code 1

Stop in /usr/ports/www/mod_php4/work/php-4.3.10.

These are all the functions that are breaking.  Any help greatly
appreciated!


James Smallacombe		      PlantageNet, Inc. CEO and Janitor
up@xxxx							    http://3.am
=========================================================================

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux