artemp/mapnik — Issue #95: Build fails with libtool 2.2.4
Author: artemp
Created: 2011-10-11 15:56:27+00:00
State: open
Labels: Core_Library

I'm trying to build mapnik 0.5.1 on Arch Linux x86_64 with libtool 2.2.4 but the build fails.

Command to build

{{{
python scons/scons.py PREFIX=/usr BOOST_LIBS=/usr/lib \
FRIBIDI_LIBS=/usr/lib PNG_LIBS=/usr/lib JPEG_LIBS=/usr/lib \
TIFF_LIBS=/usr/lib PGSQL_LIBS=/usr/lib PROJ_LIBS=/usr/lib \
GDAL_LIBS=/usr/lib XMLPARSER=libxml2
}}}

Failure message

{{{
g++ -o src/datasource_cache.os -c -DHAVE_LIBXML2 -ansi -Wall -pthread -ftemplate-depth-100 -DLINUX -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -O2 -finline-functions -Wno-inline -DNDEBUG -fPIC -Iagg/include -Itinyxml -Iinclude -I. -I/usr/include -I/usr/local/include -I/usr/include/freetype2 -I/usr/include/libxml2 src/datasource_cache.cpp
In file included from include/mapnik/graphics.hpp:28,
from include/mapnik/raster.hpp:27,
from include/mapnik/feature.hpp:30,
from include/mapnik/datasource.hpp:31,
from include/mapnik/datasource_cache.hpp:32,
from src/datasource_cache.cpp:25:
include/mapnik/color.hpp: In constructor 'mapnik::Color::Color(int, int, int, int)':
include/mapnik/color.hpp:46: warning: suggest parentheses around arithmetic in operand of |
include/mapnik/color.hpp: In member function 'void mapnik::Color::set_alpha(unsigned int)':
include/mapnik/color.hpp:91: warning: suggest parentheses around arithmetic in operand of |
In file included from src/datasource_cache.cpp:34:
/usr/include/ltdl.h: At global scope:
/usr/include/ltdl.h:50: error: conflicting declaration 'typedef struct lt__handle* lt_dlhandle'
include/mapnik/plugin.hpp:32: error: 'lt_dlhandle' has a previous declaration as 'typedef struct lt_dlhandle_struct* lt_dlhandle'
scons: *** [src/datasource_cache.os] Error 1
scons: building terminated because of errors.
}}}