Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 170556 - sci-geosciences/mapserver-4.10.0 needs media-libs/gd w/ USE=truetype
Summary: sci-geosciences/mapserver-4.10.0 needs media-libs/gd w/ USE=truetype
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Sci-geo Project
URL:
Whiteboard:
Keywords:
: 188776 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-03-12 11:48 UTC by Ole Trenner
Modified: 2007-09-06 02:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
config.log as mentioned in the error message (config.log,71.99 KB, text/plain)
2007-03-12 11:50 UTC, Ole Trenner
Details
build.log as mentioned in the error message (build.log,5.04 KB, text/plain)
2007-03-12 11:51 UTC, Ole Trenner
Details
emerge --info output (emerge-info.txt,3.92 KB, text/plain)
2007-03-12 11:52 UTC, Ole Trenner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ole Trenner 2007-03-12 11:48:42 UTC
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.
Comment 1 Ole Trenner 2007-03-12 11:50:32 UTC
Created attachment 113061 [details]
config.log as mentioned in the error message
Comment 2 Ole Trenner 2007-03-12 11:51:09 UTC
Created attachment 113062 [details]
build.log as mentioned in the error message
Comment 3 Ole Trenner 2007-03-12 11:52:12 UTC
Created attachment 113063 [details]
emerge --info output
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-03-12 12:49:52 UTC
<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.
Comment 5 Ole Trenner 2007-03-12 14:39:53 UTC
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.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-03-12 15:23:06 UTC
Hmm, maybe it needs USE=truetype, lets let someone else dig into this... :)
Comment 7 Ole Trenner 2007-03-12 16:13:17 UTC
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.
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-08-18 21:25:28 UTC
*** Bug 188776 has been marked as a duplicate of this bug. ***
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2007-08-18 21:26:35 UTC
Why exactly did you resolve this? Reopen.
Comment 10 Steve Arnold archtester gentoo-dev 2007-09-01 02:02:44 UTC
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.
Comment 11 FENOY Gérald (RETIRED) gentoo-dev 2007-09-06 02:57:16 UTC
Solved in 4.10.3 version and also in older ones... thx nerdboy