artemp/mapnik — Issue #291: make build fails due to -lagg not being found
Author: artemp
Created: 2011-10-11 16:09:27+00:00
State: open
Labels: Autotools

Just tried to build with the default autotools setup with trunk r1072 with debian lenny.

I did not install an external agg so I assume that the default configure used the internal agg but libtool tried to link against an external agg?

I get:

{{{
/bin/sh ../libtool --tag=CXX --mode=link g++ -I../include -I/usr/include/libpng12 -I/usr/include/freetype2 -I/home/dane/map-trunk/agg/include -pthread -I/usr/include -D_REENTRANT -I/usr/include/cairomm-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/pixman-1 -O3 -o libmapnik.la -rpath /usr/local/lib libmapnik_la-agg_renderer.lo libmapnik_la-arrow.lo libmapnik_la-cairo_renderer.lo libmapnik_la-color.lo libmapnik_la-datasource_cache.lo libmapnik_la-distance.lo libmapnik_la-envelope.lo libmapnik_la-filter_factory.lo libmapnik_la-font_engine_freetype.lo libmapnik_la-font_set.lo libmapnik_la-graphics.lo libmapnik_la-image_reader.lo libmapnik_la-image_util.lo libmapnik_la-layer.lo libmapnik_la-line_pattern_symbolizer.lo libmapnik_la-load_map.lo libmapnik_la-map.lo libmapnik_la-memory.lo libmapnik_la-memory_datasource.lo libmapnik_la-params.lo libmapnik_la-placement_finder.lo libmapnik_la-plugin.lo libmapnik_la-png_reader.lo libmapnik_la-point_symbolizer.lo libmapnik_la-polygon_pattern_symbolizer.lo libmapnik_la-projection.lo libmapnik_la-proj_transform.lo libmapnik_la-save_map.lo libmapnik_la-scale_denominator.lo libmapnik_la-shield_symbolizer.lo libmapnik_la-stroke.lo libmapnik_la-symbolizer.lo libmapnik_la-text_symbolizer.lo libmapnik_la-tiff_reader.lo libmapnik_la-unicode.lo libmapnik_la-wkb.lo -lpng12 -lfreetype -lz -L/home/dane/map-trunk/agg/src -lagg -L/usr/lib -lboost_thread -lboost_regex -lboost_filesystem -lboost_iostreams-gcc42-1_35 -ljpeg -ltiff -lproj -lltdl -lcairomm-1.0 -lcairo
g++ -shared -nostdlib /usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib/crti.o /usr/lib/gcc/i486-linux-gnu/4.3.2/crtbeginS.o .libs/libmapnik_la-agg_renderer.o .libs/libmapnik_la-arrow.o .libs/libmapnik_la-cairo_renderer.o .libs/libmapnik_la-color.o .libs/libmapnik_la-datasource_cache.o .libs/libmapnik_la-distance.o .libs/libmapnik_la-envelope.o .libs/libmapnik_la-filter_factory.o .libs/libmapnik_la-font_engine_freetype.o .libs/libmapnik_la-font_set.o .libs/libmapnik_la-graphics.o .libs/libmapnik_la-image_reader.o .libs/libmapnik_la-image_util.o .libs/libmapnik_la-layer.o .libs/libmapnik_la-line_pattern_symbolizer.o .libs/libmapnik_la-load_map.o .libs/libmapnik_la-map.o .libs/libmapnik_la-memory.o .libs/libmapnik_la-memory_datasource.o .libs/libmapnik_la-params.o .libs/libmapnik_la-placement_finder.o .libs/libmapnik_la-plugin.o .libs/libmapnik_la-png_reader.o .libs/libmapnik_la-point_symbolizer.o .libs/libmapnik_la-polygon_pattern_symbolizer.o .libs/libmapnik_la-projection.o .libs/libmapnik_la-proj_transform.o .libs/libmapnik_la-save_map.o .libs/libmapnik_la-scale_denominator.o .libs/libmapnik_la-shield_symbolizer.o .libs/libmapnik_la-stroke.o .libs/libmapnik_la-symbolizer.o .libs/libmapnik_la-text_symbolizer.o .libs/libmapnik_la-tiff_reader.o .libs/libmapnik_la-unicode.o .libs/libmapnik_la-wkb.o -lpng12 /usr/lib/libfreetype.so -lz -L/home/dane/map-trunk/agg/src -lagg -L/usr/lib -lboost_thread -lboost_regex -lboost_filesystem -lboost_iostreams-gcc42-1_35 /usr/lib/libjpeg.so /usr/lib/libtiff.so /usr/lib/libproj.so /usr/lib/libltdl.so /usr/lib/libcairomm-1.0.so /usr/lib/libcairo.so -L/usr/lib/gcc/i486-linux-gnu/4.3.2 -L/usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/i486-linux-gnu/4.3.2/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i486-linux-gnu/4.3.2/crtendS.o /usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../lib/crtn.o -pthread -Wl,-soname -Wl,libmapnik.so.0 -o .libs/libmapnik.so.0.0.0
/usr/bin/ld: cannot find -lagg
collect2: ld returned 1 exit status
make[2]: *** [libmapnik.la] Error 1
make[2]: Leaving directory `/home/dane/map-trunk/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dane/map-trunk'
make: *** [all] Error 2
}}}