[mapserver-users] Build 5.6.5 with AGG, weird error
Gregor at HostGIS
gregor at hostgis.com
Mon Aug 16 19:36:36 PDT 2010
Hey guys. Long time, no chat. :)
I'm trying to build 5.6.5 on Slackware/Slamd64. I have AGG installed (as
best one can since it doesn't do "make install", copied libagg.a and the
include files). If I do not use --with-agg=no, MapServer's build process
tries to use AGG and fails miserably:
g++ -fPIC -D_FILE_OFFSET_BITS=64 -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
/usr/lib64/gcc/x86_64-slackware-linux/3.4.6/../../../../x86_64-slackware-linux/bin/ld:
skipping incompatible /usr/lib/libjpeg.so when searching for -ljpeg
/usr/lib64/gcc/x86_64-slackware-linux/3.4.6/../../../../x86_64-slackware-linux/bin/ld:
skipping incompatible /usr/lib/libjpeg.so when searching for -ljpeg
/usr/lib64/gcc/x86_64-slackware-linux/3.4.6/../../../../x86_64-slackware-linux/bin/ld:
skipping incompatible /usr/lib/libjpeg.so when searching for -ljpeg
`.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
It's some sort of linker error, but I'm baffled as to what it is. I
compiled libagg.a with -fPIC but that didn't make a difference.
Any ideas?
--
HostGIS, Open Source solutions for the global GIS community
Greg Allensworth - SysAdmin, Programmer, GIS Person, Security
Network+ Server+ A+ Security+ Linux+
PHP PostgreSQL MySQL DHTML/JavaScript/AJAX
"No one cares if you can back up — only if you can recover."
More information about the MapServer-users
mailing list