Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 677260

Summary: sci-geosciences/viking USE=mapnik - configure: error: mapnik/map.hpp is needed but not found - you will need to install package 'libmapnik-dev' or similar. The feature can be disabled with --disable-mapnik
Product: Gentoo Linux Reporter: Vincent-Xavier JUMEL <endymion+gentoo>
Component: Current packagesAssignee: Hans de Graaff <graaff>
Status: RESOLVED OBSOLETE    
Severity: normal CC: Dan.Johansson, kripton, pete_dawgg, sci-geosciences, tb
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
build.log
build.log
emerge --info

Description Vincent-Xavier JUMEL 2019-02-04 18:15:55 UTC
Though sci-geosciences/mapnik-3.0.18 is installed, viking ./configure complains about missing mapnik hpp headers.
Comment 1 Vincent-Xavier JUMEL 2019-02-04 18:17:09 UTC
Created attachment 563726 [details]
emerge --info
Comment 2 Vincent-Xavier JUMEL 2019-02-04 18:17:45 UTC
Created attachment 563728 [details]
build.log
Comment 3 dawgg 2019-02-24 11:10:27 UTC
exact same error here with sci-geosciences/mapnik-3.0.18 installed as dep

checking mapnik/map.hpp usability... no
checking mapnik/map.hpp presence... no
checking for mapnik/map.hpp... no
configure: error: mapnik/map.hpp is needed but not found - you will need to install package 'libmapnik-dev' or similar. The feature can be disabled with --disable-mapnik

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/sci-geosciences/viking-1.7/work/viking-1.7/config.log
 * ERROR: sci-geosciences/viking-1.7::gentoo failed (configure phase):
Comment 4 dawgg 2019-02-24 11:13:05 UTC
Created attachment 566318 [details]
build.log

build.log
sci-geosciences/viking-1.7:0/0::gentoo
Comment 5 dawgg 2019-02-24 11:14:29 UTC
Created attachment 566320 [details]
emerge --info

emerge --info
Comment 6 dawgg 2019-02-26 11:18:35 UTC
the reason for this error is in some misplaced/misreferenced files belonging to  sci-geosciences/mapnik-3.0.18.
it seems configure expects files in /usr/include/mapnik/util/mapbox/ but the mapnik-installation from portage puts the files into /usr/include/mapnik/mapbox/.
I found out by running the configure-script from the source manually and checking config.log; the errormsg emitted by ./configure is misleading.

i could compile it manually and with portage by putting full paths into
/usr/include/mapnik/util/variant.hpp and
/usr/include/mapnik/util/mapbox/variant.hpp (dir mapbox/ copied into dir util/)
which is certainly not the right way but might give some hints fixing this.
Comment 7 milev.philip 2020-05-07 06:26:02 UTC
I ran into the exact same error, when tried to build viking. I think the issue is how mapnik is deploying their includes. I added https://github.com/mapnik/mapnik/issues/4141
Comment 8 Hans de Graaff gentoo-dev Security 2021-03-12 09:30:20 UTC
mapnik is no longer packaged in gentoo and viking 1.8 consequently no longer has support for it.