emerging sci-geosciences/mapserver-4.10.0 fails with the following message: configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/local. Make sure GD 2.0.16 or higher is compiled before calling configure. You may also get this error if you didn't specify the appropriate location for one of GD's dependencies (freetype, libpng, libjpeg or libiconv). !!! Please attach the following file when filing a report to bugs.gentoo.org: !!! /var/tmp/portage/sci-geosciences/mapserver-4.10.0/work/mapserver-4.10.0/config.log !!! ERROR: sci-geosciences/mapserver-4.10.0 failed. Call stack: ebuild.sh, line 1614: Called dyn_compile ebuild.sh, line 971: Called qa_call 'src_compile' environment, line 4864: Called src_compile mapserver-4.10.0.ebuild, line 143: Called econf '--with-gdal' '--with-perl' '--with-python' '--without-ruby' '--without-tcl' '--without-proj' '--without-postgis' '--without-tiff' '--with-pdf' '--with-ming' '--with-java' '--with-httpd=/usr/sbin/apache2' '--with-freetype' '--with-geos=/usr/bin/geos-config' '--with-php=/usr/lib/php5/include/php' '--with-mapscript' ebuild.sh, line 577: Called die !!! econf failed !!! If you need support, post the topmost build error, and the call stack if relevant. !!! A complete build log is located at '/var/tmp/portage/sci-geosciences/mapserver-4.10.0/temp/build.log'. See attached config.log... Reproducible: Always Steps to Reproduce: 1. emerge -av mapserver Actual Results: Error message as described above. Expected Results: A successful emerge.
Created attachment 113061 [details] config.log as mentioned in the error message
Created attachment 113062 [details] build.log as mentioned in the error message
Created attachment 113063 [details] emerge --info output
<snip> conftest.c:(.text+0x23): undefined reference to `gdFontCacheSetup' </snip> Try to re-emerge gd (with USE=fontconfig maybe if just re-emerging it with your current flags doesn't help); if it still doesn't work then, post emerge -pv media-libs/gd output here.
emerge still fails. output of emerge -pv media-libs/gd: slate_vm mapserver # emerge -pv media-libs/gd These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] media-libs/gd-2.0.34 USE="fontconfig -jpeg -png -truetype -xpm" 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB (I enabled fontconfig use flag with "euse -E fontconfig" and reemerged gd, trying to emerge mapserver afterwards fails with the same error message as before) Thanks for your efforts, Ole.
Hmm, maybe it needs USE=truetype, lets let someone else dig into this... :)
Enabling truetype (as you suggested) and jpeg and recompiling everything with # euse -E truetype -E jpeg # emerge -v media-libs/gd # emerge -v sci-geosciences/mapserver finally did the trick. Thanks for your suggestions. Ole.
*** Bug 188776 has been marked as a duplicate of this bug. ***
Why exactly did you resolve this? Reopen.
Mapserver builds and runs fine here: [ebuild U ] media-libs/gd-2.0.35 [2.0.34] USE="jpeg png truetype -fontconfig -xpm" so it looks like it's probably truetype that it needs in this case.
Solved in 4.10.3 version and also in older ones... thx nerdboy