PHP 4.0 Bug #7003 Updated: configure not setting -L for extras (like png, tiff, etc.)
| From: | Bug Database | Date: | Thu, 05 Oct 2000 04:49:50 +0000 |
| Subject: | PHP 4.0 Bug #7003 Updated: configure not setting -L for extras (like png, tiff, etc.) | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-34236@lists.php.net to get a copy of this message | ||
ID: 7003
Updated by: sr
Reported By: swenson@heronetwork.com
Status: Feedback
Bug Type: Compile Problem
Assigned To:
Comments:
Hmm, the bug which was fixed should only occur if you don't say --with-gd at all (gd is (still)
enabled by default), so maybe it's another one.
Can you test the latest snapshot (only download and copy the configure line from your Makefile and
try that, you don't need to apply any OpenBSD patches (or even compile the thing ;-) ) )? 4.0.3
should be released very soon, so maybe it is possible to fix this bug (if it isn't already
fixed) before the release.
Thank you.
Previous Comments:
---------------------------------------------------------------------------
[2000-10-05 00:33:15] swenson@heronetwork.com
You are correct. I was only using '--with-gd'. After changing the OpenBSD's
/usr/ports/www/php4/Makefile to also use '--with-gd=${PREFIX}' the conifiguration then
correctly found all the libraries for png & tiff.
I have not tried the latest CVS archive for the OpenBSD install since the patch files etc are pretty
specific to the version in the ftp controls. In this case the php-4.0.2.tar.gz archive.
---------------------------------------------------------------------------
[2000-10-05 00:02:59] sr@php.net
Did you use --with-gd(=...)?
There was a problem in the configure script if you used the "default" gd configure, i.e.
didn't say --with-gd.
Please try the latest CVS (or snapshot available from http://snaps.php.net/ ) and give us feedback, if the bug still
exists.
---------------------------------------------------------------------------
[2000-10-04 01:15:11] swenson@heronetwork.com
After unpacking the distribution running ./configure with any of these options:
--with-png-dir[=DIR]
--with-tiff-dir[=DIR]
--with-mm[=DIR]
The configure script is failing to find libgd, libpng, etc. After examining the configure script and
the config.log I found that for these options:
--with-ds-dir[=DIR]
--with-jpeg-dir[=DIR]
The $LIBS variable is getting properly set to "-L[DIR] -l<option>". But, for the
above options (and a few more I think) the $LIBS variable is only getting set to
"-l<option>". So when configure attempts to confirm the option is present it
'ld' can not find the library and the option is not activated.
The easiest work around is to copy the apropriate libs into /usr/lib temporarily for the compile.
Another work around is to edit the configure script and find all the places '[=DIR]' is
not getting included and adding the '-L' option to the $LIBS variable.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7003