[mapserver-users] 5.6.5 not compiling, some weird linker error
Stephen Woodbridge
woodbri at swoodbridge.com
Thu Aug 19 16:50:17 PDT 2010
Hi Gregor,
Jump on my server gis.imaptools.com (it is Debian).
I just downloaded 5.6.5 and built it with no problem.
woodbri at gis:~/work/software/mapserver-5.6.5$ ./mapserv -v
MapServer version 5.6.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
SUPPORTS=WFS_SERVER SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS
INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
woodbri at gis:~/work/software/mapserver-5.6.5$ cat ../doit-mapserver-svn
./configure \
--enable-runpath \
--enable-ignore-missing-data \
--with-httpd=/usr/sbin/apache2 \
--with-proj=/usr \
--with-agg \
--with-gd \
--with-freetype \
--with-postgis \
--without-tiff \
--with-xml2-config=/usr/bin/xml2-config \
--with-wmsclient \
--with-fribidi-config=/usr/local/lib/pkgconfig/fribidi.pc \
--with-gdal \
--with-wfs \
--with-ogr \
--with-experimental-png \
Let me know if you need to help look at your system.
-Steve
Gregor at HostGIS wrote:
> Hey guys. Still no luck on this one, thought maybe I'd ask again.
>
> The compile gets as far as linking, then bombs. The error seems to be
> related to AGG, and if I give --with-agg=no the compiles finished
> successfully. Though, of course we do want AGG!
>
> The system does not have AGG installed at present; 5.6 would be using
> its own bundled version.
>
> g++ -O2 -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCAT -DNEED_STRRSTR
> -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL
> -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_MYGIS -DUSE_POSTGIS
> -DPOSTGIS_HAS_SERVER_VERSION -DUSE_GDAL -DUSE_OGR -DUSE_GEOS
> -DGEOS_HAS_SIMPLIFY -DUSE_THREAD -DUSE_PROJ -DUSE_EPPL -DUSE_AGG
> -DUSE_PDF -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP
> -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR
> -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB -I/usr/include
> -I/usr/include/freetype2 -I/usr/include -I/usr/include
> -I/usr/include -I/usr/include/mysql -I/usr/include
> -I/usr/include/libxml2 shp2img.o -L. -lmapserver -L/usr/lib -lgd
> -ljpeg -L/usr/lib64 -Wl,--rpath -Wl,/usr/lib64 -lfreetype -lz -lpng -lz
> -lXpm -lX11 -L/usr/lib -lpdf -ljpeg -L/usr/lib64 -Wl,--rpath
> -Wl,/usr/lib64 -lfreetype -lz -lpng -lz -lXpm -lX11 -lproj -ljpeg -lpng
> -L/usr/lib -lgdal -L/usr/lib -lgeos_c -L/usr/lib -lexpat -L/usr/lib
> -lxerces-c -lpthread -L/usr/lib -lNCSEcw -lNCSCnet -lNCSUtil -L/usr
> -L/usr/lib -lnetcdf -lpq -L/usr/lib -lpq -lz -L/usr -L/usr/lib -pthread
> -lm -lrt -ldl -L/usr/lib64 -lcurl -lidn -lssl -lcrypto -ldl -lssl
> -lcrypto -ldl -lz -L/usr/lib -lpq -lpgport -lssl -lcrypto -lz
> -lreadline -ltermcap -lcrypt -ldl -lm -L/usr/lib/mysql -lmysqlclient
> -lz -lcrypt -lnsl -lm -L/usr/lib64 -lssl -lcrypto -lmysqlclient
> -L/usr/lib64 -lcurl -lidn -lssl -lcrypto -ldl -lssl -lcrypto -ldl -lz
> -L/usr/lib -lgeos_c -lpthread -lc -lz -lxml2 -lz -lm -lm -lstdc++ -o
> shp2img
>
> `.gnu.linkonce.t._ZN9mapserver18rasterizer_sl_clipINS_12ras_conv_intEE7line_toINS_19rasterizer_cells_aaINS_7cell_aaEEEEEvRT_ii'
> referenced in section `.rodata' of
> ./libmapserver.a(agg_font_freetype.o): defined in discarded section
> `.gnu.linkonce.t._ZN9mapserver18rasterizer_sl_clipINS_12ras_conv_intEE7line_toINS_19rasterizer_cells_aaINS_7cell_aaEEEEEvRT_ii'
> of ./libmapserver.a(agg_font_freetype.o)
>
> collect2: ld returned 1 exit status
> make: *** [shp2img] Error 1
>
>
> Any ideas as to what this means? I can't find any of it in Google.
>
More information about the MapServer-users
mailing list