Re: PHP 4.0 Bug #4569 Updated: configure fails to
| From: | Stanislav Malyshev | Date: | Wed, 02 Aug 2000 08:55:15 +0000 |
| Subject: | Re: PHP 4.0 Bug #4569 Updated: configure fails to | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-27398@lists.php.net to get a copy of this message | ||
>> AC_CHECK_LIB(gd, gdImageString16, [ AC_DEFINE(HAVE_LIBGD13,1,[]) ])
>> AC_CHECK_LIB(gd, gdImagePaletteCopy, [ AC_DEFINE(HAVE_LIBGD15,1,[]) ])
>> AC_CHECK_LIB(gd, gdImageColorClosestHWB, [
>> AC_DEFINE(HAVE_COLORCLOSESTHWB,1,[ ]) ])
>> AC_CHECK_LIB(z,compress, LIBS="$LIBS -lz",,)
This check fails because it tries to link gd there and dies. I don't know
why it needs to put -lgd into libz check, but it does:
configure:13716: checking for compress in -lz
configure:13735: gcc -o conftest -g -O2 conftest.c -lz -lgd -lresolv
-lm -ldl -lcrypt -lnsl -lresolv 1>&5
/usr/lib/libgd.so: undefined reference to `uncompress'
/usr/lib/libgd.so: undefined reference to `png_set_dither'
[skip]
collect2: ld returned 1 exit status
configure: failed program was:
#line 13724 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char compress();
int main() {
compress()
; return 0; }
>> AC_CHECK_LIB(png,png_info_init, LIBS="$LIBS -lpng",,)
Ditto here. Both these test fail, so configure assumes no PNG.
>> This clearly shows that it adds -lz and -lpng to LIBS before checking for
>> the PNG support. So although there may indeed be a problem somewhere,
>> your analysis of it is incorrect.
Well, I'm very far from being autoconf guru, that's why I cry for somebody
more knowledgeable to look at it.
--
Stanislav Malyshev stas@zend.com
+972-3-6139665 ext.106