mapnik/node-mapnik — Issue #88: Package install fails (v0.6.5)
Author: ChrisTower
Created: 2012-03-01 21:50:57+00:00
State: open

Failed on fresh install of node and mapnik 2.0.0 on Ubuntu 11.10.

$ npm install mapnik
npm http GET https://registry.npmjs.org/mapnik
npm http 304 https://registry.npmjs.org/mapnik

> mapnik@0.6.5 install /opt/ol/prealpha/node/node_modules/mapnik
> node-waf -v configure build

Setting srcdir to : /opt/ol/prealpha/node/node_modules/mapnik
Setting blddir to : /opt/ol/prealpha/node/node_modules/mapnik/build
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : not found
Checking for node prefix : ok /usr/local
Checking for program mapnik-config : /usr/local/bin/mapnik-config
Sweet, found cairo library, will attempt to compile with cairo support for pdf/svg output
'configure' finished successfully (0.077s)
Waf: Entering directory `/opt/ol/prealpha/node/node_modules/mapnik/build'
[ 1/18] cxx: src/node_mapnik.cpp -> build/Release/src/node_mapnik_1.o
13:27:08 runner system command -> ['/usr/bin/g++', '-g', '-O3', '-D_FILE_OFFSET_BITS=64', '-D_LARGEFILE_SOURCE', '-fPIC', '-DPIC', '-I/usr/local/include', '-I/usr/local/include', '-I/usr/include', '-I/usr/include/freetype2', '-I/usr/include/libxml2', '-I/usr/include/gdal', '-I/usr/include/postgresql', '-DHAVE_JPEG', '-DBOOST_REGEX_HAS_ICU', '-ansi', '-Wall', '-pthread', '-ftemplate-depth-300', '-DLINUX', '-DBOOST_SPIRIT_THREADSAFE', '-DMAPNIK_THREADSAFE', '-O3', '-finline-functions', '-Wno-inline', '-Wno-parentheses', '-Wno-char-subscripts', '-DNDEBUG', '-DHAVE_CAIRO', '-DHAVE_LIBXML2', '-I/usr/include/cairo', '-I/usr/include/glib-2.0', '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include', '-I/usr/include/pixman-1', '-I/usr/include/libpng12', '-I/usr/include/cairomm-1.0', '-I/usr/lib/cairomm-1.0/include', '-I/usr/include/sigc++-2.0', '-I/usr/lib/sigc++-2.0/include', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64', '-D_GNU_SOURCE', '-I/usr/local/include/node', '../src/node_mapnik.cpp', '-c', '-o', 'Release/src/node_mapnik_1.o']
[ 2/18] cxx: src/mapnik_map.cpp -> build/Release/src/mapnik_map_1.o
13:27:08 runner system command -> ['/usr/bin/g++', '-g', '-O3', '-D_FILE_OFFSET_BITS=64', '-D_LARGEFILE_SOURCE', '-fPIC', '-DPIC', '-I/usr/local/include', '-I/usr/local/include', '-I/usr/include', '-I/usr/include/freetype2', '-I/usr/include/libxml2', '-I/usr/include/gdal', '-I/usr/include/postgresql', '-DHAVE_JPEG', '-DBOOST_REGEX_HAS_ICU', '-ansi', '-Wall', '-pthread', '-ftemplate-depth-300', '-DLINUX', '-DBOOST_SPIRIT_THREADSAFE', '-DMAPNIK_THREADSAFE', '-O3', '-finline-functions', '-Wno-inline', '-Wno-parentheses', '-Wno-char-subscripts', '-DNDEBUG', '-DHAVE_CAIRO', '-DHAVE_LIBXML2', '-I/usr/include/cairo', '-I/usr/include/glib-2.0', '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include', '-I/usr/include/pixman-1', '-I/usr/include/libpng12', '-I/usr/include/cairomm-1.0', '-I/usr/lib/cairomm-1.0/include', '-I/usr/include/sigc++-2.0', '-I/usr/lib/sigc++-2.0/include', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64', '-D_GNU_SOURCE', '-I/usr/local/include/node', '../src/mapnik_map.cpp', '-c', '-o', 'Release/src/mapnik_map_1.o']
[ 3/18] cxx: src/mapnik_color.cpp -> build/Release/src/mapnik_color_1.o
13:27:08 runner system command -> ['/usr/bin/g++', '-g', '-O3', '-D_FILE_OFFSET_BITS=64', '-D_LARGEFILE_SOURCE', '-fPIC', '-DPIC', '-I/usr/local/include', '-I/usr/local/include', '-I/usr/include', '-I/usr/include/freetype2', '-I/usr/include/libxml2', '-I/usr/include/gdal', '-I/usr/include/postgresql', '-DHAVE_JPEG', '-DBOOST_REGEX_HAS_ICU', '-ansi', '-Wall', '-pthread', '-ftemplate-depth-300', '-DLINUX', '-DBOOST_SPIRIT_THREADSAFE', '-DMAPNIK_THREADSAFE', '-O3', '-finline-functions', '-Wno-inline', '-Wno-parentheses', '-Wno-char-subscripts', '-DNDEBUG', '-DHAVE_CAIRO', '-DHAVE_LIBXML2', '-I/usr/include/cairo', '-I/usr/include/glib-2.0', '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include', '-I/usr/include/pixman-1', '-I/usr/include/libpng12', '-I/usr/include/cairomm-1.0', '-I/usr/lib/cairomm-1.0/include', '-I/usr/include/sigc++-2.0', '-I/usr/lib/sigc++-2.0/include', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64', '-D_GNU_SOURCE', '-I/usr/local/include/node', '../src/mapnik_color.cpp', '-c', '-o', 'Release/src/mapnik_color_1.o']
[ 4/18] cxx: src/mapnik_geometry.cpp -> build/Release/src/mapnik_geometry_1.o
13:27:08 runner system command -> ['/usr/bin/g++', '-g', '-O3', '-D_FILE_OFFSET_BITS=64', '-D_LARGEFILE_SOURCE', '-fPIC', '-DPIC', '-I/usr/local/include', '-I/usr/local/include', '-I/usr/include', '-I/usr/include/freetype2', '-I/usr/include/libxml2', '-I/usr/include/gdal', '-I/usr/include/postgresql', '-DHAVE_JPEG', '-DBOOST_REGEX_HAS_ICU', '-ansi', '-Wall', '-pthread', '-ftemplate-depth-300', '-DLINUX', '-DBOOST_SPIRIT_THREADSAFE', '-DMAPNIK_THREADSAFE', '-O3', '-finline-functions', '-Wno-inline', '-Wno-parentheses', '-Wno-char-subscripts', '-DNDEBUG', '-DHAVE_CAIRO', '-DHAVE_LIBXML2', '-I/usr/include/cairo', '-I/usr/include/glib-2.0', '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include', '-I/usr/include/pixman-1', '-I/usr/include/libpng12', '-I/usr/include/cairomm-1.0', '-I/usr/lib/cairomm-1.0/include', '-I/usr/include/sigc++-2.0', '-I/usr/lib/sigc++-2.0/include', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64', '-D_GNU_SOURCE', '-I/usr/local/include/node', '../src/mapnik_geometry.cpp', '-c', '-o', 'Release/src/mapnik_geometry_1.o']
In file included from ../src/mapnik_map.cpp:23:0:
/usr/local/include/mapnik/filter_factory.hpp:1:2: warning: #warning "filter_factory.hpp" is now called "expression.hpp" [-Wcpp]
[ 5/18] cxx: src/mapnik_feature.cpp -> build/Release/src/mapnik_feature_1.o
13:27:13 runner system command -> ['/usr/bin/g++', '-g', '-O3', '-D_FILE_OFFSET_BITS=64', '-D_LARGEFILE_SOURCE', '-fPIC', '-DPIC', '-I/usr/local/include', '-I/usr/local/include', '-I/usr/include', '-I/usr/include/freetype2', '-I/usr/include/libxml2', '-I/usr/include/gdal', '-I/usr/include/postgresql', '-DHAVE_JPEG', '-DBOOST_REGEX_HAS_ICU', '-ansi', '-Wall', '-pthread', '-ftemplate-depth-300', '-DLINUX', '-DBOOST_SPIRIT_THREADSAFE', '-DMAPNIK_THREADSAFE', '-O3', '-finline-functions', '-Wno-inline', '-Wno-parentheses', '-Wno-char-subscripts', '-DNDEBUG', '-DHAVE_CAIRO', '-DHAVE_LIBXML2', '-I/usr/include/cairo', '-I/usr/include/glib-2.0', '-I/usr/lib/x86_64-linux-gnu/glib-2.0/include', '-I/usr/include/pixman-1', '-I/usr/include/libpng12', '-I/usr/include/cairomm-1.0', '-I/usr/lib/cairomm-1.0/include', '-I/usr/include/sigc++-2.0', '-I/usr/lib/sigc++-2.0/include', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64', '-D_GNU_SOURCE', '-I/usr/local/include/node', '../src/mapnik_feature.cpp', '-c', '-o', 'Release/src/mapnik_feature_1.o']
In file included from ../src/mapnik_expression.hpp:10:0,
from ../src/node_mapnik.cpp:27:
/usr/local/include/mapnik/filter_factory.hpp:1:2: warning: #warning "filter_factory.hpp" is now called "expression.hpp" [-Wcpp]
../src/mapnik_feature.cpp: In constructor ‘Feature::Feature(int)’:
../src/mapnik_feature.cpp:39:43: error: no matching function for call to ‘mapnik::feature_factory::create(int&)’
../src/mapnik_feature.cpp:39:43: note: candidate is:
/usr/local/include/mapnik/feature_factory.hpp:37:39: note: static boost::shared_ptr mapnik::feature_factory::create(const context_ptr&, int)
/usr/local/include/mapnik/feature_factory.hpp:37:39: note: candidate expects 2 arguments, 1 provided
../src/mapnik_feature.cpp: In static member function ‘static v8::Handle Feature::attributes(const v8::Arguments&)’:
../src/mapnik_feature.cpp:113:68: error: ‘class mapnik::feature_impl’ has no member named ‘props’
../src/mapnik_feature.cpp: In static member function ‘static v8::Handle Feature::addAttributes(const v8::Arguments&)’:
../src/mapnik_feature.cpp:198:63: error: no matching function for call to ‘put(mapnik::feature_impl&, char*, icu_44::UnicodeString&)’
../src/mapnik_feature.cpp:198:63: note: candidates are:
/usr/include/boost/property_map/property_map.hpp:176:15: note: template void put(T*, std::ptrdiff_t, const V&)
/usr/include/boost/property_map/property_map.hpp:245:8: note: template void boost::put(const boost::writable_property_map_archetype&, const typename boost::writable_property_map_archetype::key_type&, const typename boost::writable_property_map_archetype::value_type&)
/usr/include/boost/property_map/property_map.hpp:359:3: note: template void boost::put(const boost::put_get_helper&, K, const V&)
../src/mapnik_feature.cpp:204:70: error: no matching function for call to ‘put(mapnik::feature_impl&, char*, int&)’
../src/mapnik_feature.cpp:204:70: note: candidates are:
/usr/include/boost/property_map/property_map.hpp:176:15: note: template void put(T*, std::ptrdiff_t, const V&)
/usr/include/boost/property_map/property_map.hpp:245:8: note: template void boost::put(const boost::writable_property_map_archetype&, const typename boost::writable_property_map_archetype::key_type&, const typename boost::writable_property_map_archetype::value_type&)
/usr/include/boost/property_map/property_map.hpp:359:3: note: template void boost::put(const boost::put_get_helper&, K, const V&)
../src/mapnik_feature.cpp:207:70: error: no matching function for call to ‘put(mapnik::feature_impl&, char*, double&)’
../src/mapnik_feature.cpp:207:70: note: candidates are:
/usr/include/boost/property_map/property_map.hpp:176:15: note: template void put(T*, std::ptrdiff_t, const V&)
/usr/include/boost/property_map/property_map.hpp:245:8: note: template void boost::put(const boost::writable_property_map_archetype&, const typename boost::writable_property_map_archetype::key_type&, const typename boost::writable_property_map_archetype::value_type&)
/usr/include/boost/property_map/property_map.hpp:359:3: note: template void boost::put(const boost::put_get_helper&, K, const V&)
In file included from ../src/mapnik_map.cpp:44:0:
../src/ds_emitter.hpp: In function ‘void node_mapnik::datasource_features(v8::Local, mapnik::datasource_ptr, unsigned int, unsigned int)’:
../src/ds_emitter.hpp:181:77: error: ‘class mapnik::feature_impl’ has no member named ‘props’
/usr/local/include/mapnik/grid/grid.hpp: In static member function ‘static void Map::EIO_RenderGrid(uv_work_t*)’:
/usr/local/include/mapnik/grid/grid.hpp:70:17: error: ‘std::string mapnik::hit_grid::id_name_’ is private
../src/mapnik_map.cpp:1214:46: error: within this context
/usr/local/include/mapnik/grid/grid.hpp: In static member function ‘static v8::Handle Map::renderLayerSync(const v8::Arguments&)’:
/usr/local/include/mapnik/grid/grid.hpp:70:17: error: ‘std::string mapnik::hit_grid::id_name_’ is private
../src/mapnik_map.cpp:1611:37: error: within this context
/usr/local/include/mapnik/grid/grid.hpp: In static member function ‘static void Map::EIO_RenderGrid2(uv_work_t*)’:
/usr/local/include/mapnik/grid/grid.hpp:70:17: error: ‘std::string mapnik::hit_grid::id_name_’ is private
../src/mapnik_map.cpp:2003:42: error: within this context
In file included from ../src/mapnik_map.cpp:42:0:
../src/js_grid_utils.hpp: In function ‘void node_mapnik::write_features(const T&, v8::Local&, const std::vector&) [with T = mapnik::hit_grid, typename T::lookup_type = std::basic_string]’:
../src/mapnik_map.cpp:2070:65: instantiated from here
../src/js_grid_utils.hpp:137:70: error: invalid initialization of reference of type ‘const std::map, mapnik::value>&’ from expression of type ‘const boost::shared_ptr’
Waf: Leaving directory `/opt/ol/prealpha/node/node_modules/mapnik/build'
Build failed:
-> task failed (err #1):
{task: cxx mapnik_feature.cpp -> mapnik_feature_1.o}
-> task failed (err #1):
{task: cxx mapnik_map.cpp -> mapnik_map_1.o}
npm ERR! error installing mapnik@0.6.5

npm ERR! mapnik@0.6.5 install: `node-waf -v configure build`
npm ERR! `sh "-c" "node-waf -v configure build"` failed with 1
npm ERR!
npm ERR! Failed at the mapnik@0.6.5 install script.
npm ERR! This is most likely a problem with the mapnik package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-waf -v configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls mapnik
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Linux 3.0.0-16-generic
npm ERR! command "node" "/usr/local/bin/npm" "install" "mapnik"
npm ERR! cwd /opt/ol/prealpha/node
npm ERR! node -v v0.6.11
npm ERR! npm -v 1.1.1
npm ERR! code ELIFECYCLE
npm ERR! message mapnik@0.6.5 install: `node-waf -v configure build`
npm ERR! message `sh "-c" "node-waf -v configure build"` failed with 1
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /opt/ol/prealpha/node/npm-debug.log
npm not ok