mapnik-org/mapnik — Issue #229: compile failure with cairomm-1.8.0
Author: artemp
Created: 2011-10-11 07:43:53+00:00
State: open
Labels: Core_Library

Compiling the SVN code with cairomm-1.8.0 results in an error in the ordering of setjmp.h vs png.h. We saw a similar issue before
which was fixed in r642
http://lists.berlios.de/pipermail/mapnik-devel/2008-January/000456.html
{{{
g++ -o src/image_util.os -c -DHAVE_LIBXML2 -DHAVE_CAIRO -DHAVE_PYCAIRO -ansi -Wall -pthread -ftemplate-depth-100 -DLINUX -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -O2 -finline-functions -Wno-inline -DNDEBUG -fPIC -Iinclude -I. -I/usr/include/agg2 -I/usr/include -I/usr/local/include -I/usr/include -I/usr/include/postgresql -I/usr/include/gdal -I/usr/include/freetype2 -I/usr/include/libxml2 -I/usr/include/cairomm-1.0 -I/usr/include/cairo -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -I/usr/include/pycairo src/image_util.cpp
In file included from /usr/include/png.h:469,
from include/mapnik/png_io.hpp:28,
from src/image_util.cpp:27:
/usr/include/pngconf.h:345: error: expected constructor, destructor, or type conversion before ‘.’ token
/usr/include/pngconf.h:346: error: ‘__dont__’ does not name a type
scons: *** [src/image_util.os] Error 1
scons: building terminated because of errors.
}}}