5.0+AGG compile on SLackware

Gregor Mosheh gregor at HOSTGIS.COM
Tue Sep 18 04:29:49 EDT 2007


My mistake (again) thinking that I had solved it. Silly me; I pasted in 
the wrong set of instructions and of course it built just fine without 
the AGG support.

To reiterate:
Slackware 11.0 or 64-bit (aka Slamd64)

These environment variables:
export CPPFLAGS="-D_FILE_OFFSET_BITS=64"
export CXXFLAGS="-fPIC -D_FILE_OFFSET_BITS=64"
export CFLAGS="-fPIC -D_FILE_OFFSET_BITS=64"


AGG 2.5 built from source according to instructions in 
http://trac.osgeo.org/mapserver/ticket/2215

Mapserver 5.0.0 downloaded just now
Mapserver's configure is:

./configure --with-threads --with-geos --with-proj \
             --with-pdf=/usr --with-gd=/usr --with-ogr --with-gdal \
             --without-tiff --with-postgis --with-ming --with-mygis \
             --with-wms --with-wmsclient \
             --with-wfs --with-wfsclient --with-wcs --with-sos \
             --with-agg=/tmp/agg-2.5 --with-freetype

It gets as far as the first linking, which is shp2img, then:

`.gnu.linkonce.t._ZN3agg18rasterizer_sl_clipINS_12ras_conv_intEE7line_toINS_19rasterizer_cells_aaINS_7cell_aaEEEEEvRT_ii' 
referenced in section `.rodata' of 
/tmp/agg-2.5/src/libaggfontfreetype.a(agg_font_freetype.o): defined in 
discarded section 
`.gnu.linkonce.t._ZN3agg18rasterizer_sl_clipINS_12ras_conv_intEE7line_toINS_19rasterizer_cells_aaINS_7cell_aaEEEEEvRT_ii' 
of /tmp/agg-2.5/src/libaggfontfreetype.a(agg_font_freetype.o)

collect2: ld returned 1 exit status
make: *** [shp2img] Error 1


What in heck is this "discarded section" stuff?

-- 
Gregor Mosheh / Greg Allensworth
System Administrator, HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
  only if you can restore." - AMANDA



More information about the mapserver-users mailing list