Ticket #1474 (closed defect: wontfix)
configure reports it can't find gd.h or libgd.a/so
|Reported by:||haleden@…||Owned by:||mapserverbugs|
Description (last modified by dmorissette) (diff)
./configure --with-fastcgi=/usr/local --with-jpeg=/usr --with-png=/usr --with-freetype=/usr/local --with-xpm=/usr/X11R6 --with-gd=/usr/local --with-httpd=/local/web/apache/bin/httpd --with- gdal=/usr/local/bin/gdal-config --with-wms --with-wfs --with-proj=/usr/local --with-ogr=/usr/ local/bin/gdal-config --with-php=/usr/local/include/php -with-curl-config=/usr/bin/curl-config -- with-ming=/usr --with-mygis=/usr/bin/mysql_config
with all needed libraries/includes installed (even did a nm on /usr/local/liib/libgd.a/so to make sure gdFontCacheSetup was there, and it was.
looked into the config.log and saw that it was failing trying to compile the test case and noticed that the -LGD_LIBDIR was AFTER the -lgd on the test.
looked in configure and found that if i changed line # 5576 from:
LIBS="-lgd $GD_XTRA_LIBS -L$GD_LIBDIR $LIBS"
LIBS="-L$GD_LIBDIR -lgd $GD_XTRA_LIBS $LIBS"
that i could run configure (and subsequently make) successfully
(actually, i think i had the same problem with 4.4, but forgot to report it--shame on me)