|
Posted by Andy Hassall on 10/19/05 01:34
On Tue, 18 Oct 2005 14:27:39 -0700, B Squared <null@null.com> wrote:
>I recently installed PHP 5.0.4 on my Fedora system. I compiled in the GD
> option. (--with-gd). Then I tested the ImageTypes() function. It
>seems .png and .gif (IMG_PNG and IMG_GIF) are supported, but jpeg
>(IMG_JPEG) is not. Is this expected? How do I get .jpeg support?
You may have to specifically use --with-jpeg-dir in configure - I've got
"--with-jpeg-dir=/usr" in the configure line I used for building PHP, which
implies at some point I added it on because JPEG support wasn't working.
>-- segway --
>
>Out of curiousity, I checked the php-config file in my ../php/bin dir
>and here is the libs that are listed:
>
>libs="-lcrypt -lcrypt -lmysqlclient -lpng -lz -lz -lresolv -lm -ldl
>-lnsl -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -lxml2 -lz
>-lm -lcrypt "
>
>-lz is listed 6 times, -lcrypt 4 times, -lm 3 times, etc.
>
>Is this really how it should be? I'm guessing listing the libs so many
>times doesn't do any harm, but what's the point?
It's probably just output automatically by the build system, with each
extension adding on all the libraries they depend on, and more than one
requires libz, libcrypto, etc. Presumably the build system doesn't bother
eliminating duplicates, because the linker will anyway.
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
[Back to original message]
|