From: <gps...@li...> - 2012-05-19 09:09:17
|
Bugs item #3447576, was opened at 2011-12-01 16:27 Message generated for change (Comment added) made by hbowman You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=770280&aid=3447576&group_id=148048 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Mapnik >Group: gpsdrive-2.11 Status: Open Resolution: None >Priority: 8 Private: No Submitted By: Nobody/Anonymous (nobody) >Assigned to: Nobody/Anonymous (nobody) Summary: gpsdrive-2.10pre4 fails to compile with mapnik-2.0.0 Initial Comment: Debian and Ubuntu have upgraded the Mapnik library packages to 2.0.0. This causes a build failure in the gpsdrive package, because the APIs of the new 2.0.0 version of Mapnik are backward-incompatible to the old 0.7.1 version of Mapnik (see https://github.com/mapnik/mapnik/wiki/Mapnik2). The relevant segment of the buildlog from my machine is below. You can find the Debian bug report at: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=646446 And the full buildlog from the Ubuntu build machines at: https://launchpadlibrarian.net/85807318/buildlog_ubuntu-precise-i386.gpsdrive_2.10%7Epre4-6.dfsg-5ubuntu3_FAILEDTOBUILD.txt.gz ---------- unit_test.c:695:5: warning: format not a string literal and no format arguments [-Wformat-security] if x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -DLOCALEDIR=\"/usr/share/locale\" -DDATADIR=\"/usr/share\" -DLIBDIR=\"/usr/lib\" -DFRIENDSSERVERVERSION=\"2\" -DMAPNIK -I/usr/include/ -I/usr/local/include -I/opt/boost_1_35/include/boost-1_35 -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I. -L/usr/local/lib -I. -I. -I.. -pthread -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DDBUS_API_SUBJECT_TO_CHANGE=1 -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -MT mapnik.o -MD -MP -MF ".deps/mapnik.Tpo" -c -o mapnik.o mapnik.cpp; \ then mv -f ".deps/mapnik.Tpo" ".deps/mapnik.Po"; else rm -f ".deps/mapnik.Tpo"; exit 1; fi mapnik.cpp:33:15: error: 'mapnik::Image32' has not been declared mapnik.cpp:35:15: error: 'mapnik::Layer' has not been declared mapnik.cpp:36:15: error: 'mapnik::Envelope' has not been declared mapnik.cpp: In function 'void mapnik::render_mapnik()': mapnik.cpp:346:5: error: 'Envelope' was not declared in this scope mapnik.cpp:346:14: error: expected primary-expression before 'double' mapnik.cpp:346:14: error: expected ';' before 'double' mapnik.cpp:351:23: error: 'class mapnik::Map' has no member named 'zoomToBox' mapnik.cpp:351:33: error: 'box' was not declared in this scope mapnik.cpp:353:5: error: 'Image32' was not declared in this scope mapnik.cpp:353:13: error: expected ';' before 'buf' mapnik.cpp:354:33: error: type/value mismatch at argument 1 in template parameter list for 'template<class T> class mapnik::agg_renderer' mapnik.cpp:354:33: error: expected a type, got 'Image32' mapnik.cpp:354:38: error: invalid type in declaration before '(' token mapnik.cpp:354:57: error: 'buf' was not declared in this scope mapnik.cpp:354:60: error: expression list treated as compound expression in initializer [-fpermissive] mapnik.cpp:355:9: error: request for member 'apply' in 'ren', which is of non-class type 'int' mapnik.cpp:357:53: error: 'class mapnik::Map' has no member named 'getCurrentExtent' mapnik.cpp:367:5: error: 'Envelope' is not a member of 'mapnik' mapnik.cpp:367:22: error: expected primary-expression before 'double' mapnik.cpp:367:22: error: expected ';' before 'double' mapnik.cpp:368:26: error: 'ext' was not declared in this scope make[4]: *** [mapnik.o] Error 1 make[4]: Leaving directory `/tmp/buildd/gpsdrive-2.10~pre4-6.dfsg/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/tmp/buildd/gpsdrive-2.10~pre4-6.dfsg/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/tmp/buildd/gpsdrive-2.10~pre4-6.dfsg' make[1]: *** [all] Error 2 make[1]: Leaving directory `/tmp/buildd/gpsdrive-2.10~pre4-6.dfsg' make: *** [build-arch-stamp] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2 ---------- ---------------------------------------------------------------------- >Comment By: Hamish B (hbowman) Date: 2012-05-19 02:09 Message: the cmake library search needs to change too. See https://sourceforge.net/tracker/index.php?func=detail&aid=3447411&group_id=148048&atid=770280 which I'm closing as a duplicate of this one. see also from that ticket: https://github.com/mapnik/mapnik/wiki/Mapnik2 sed -i -e 's+^ mapnik$+ mapnik2+' cmake/Modules/FindMapnik.cmake Hamish ---------------------------------------------------------------------- Comment By: Hamish B (hbowman) Date: 2011-12-01 20:21 Message: right, this is a known issue awaiting an interested developer. Hamish ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=770280&aid=3447576&group_id=148048 |