Re: [mapserver-users] Build 5.6.5 with AGG, weird error

2010-08-17 Thread Gregor at HostGIS

Hey Stephen, nice to hear from you. :)


You should not need to download, build and install agg anymore.


Sounds good. I have uninstalled it; that is, deleted libagg.a and the 
include files.


But that doesn't solve the build issue. I still get that linking error:

`.gnu.linkonce.t._ZN9mapserver18rasterizer_sl_clipINS_12ras_conv_intEE7line_toINS_19rasterizer_cells_aaINS_7cell_aaEvRT_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_aaEvRT_ii' 
of ./libmapserver.a(agg_font_freetype.o)

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

--
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.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Build 5.6.5 with AGG, weird error

2010-08-17 Thread Stephen Woodbridge

Gregor at HostGIS wrote:

Hey Stephen, nice to hear from you. :)


You should not need to download, build and install agg anymore.


Sounds good. I have uninstalled it; that is, deleted libagg.a and the 
include files.


But that doesn't solve the build issue. I still get that linking error:

`.gnu.linkonce.t._ZN9mapserver18rasterizer_sl_clipINS_12ras_conv_intEE7line_toINS_19rasterizer_cells_aaINS_7cell_aaEvRT_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_aaEvRT_ii' 
of ./libmapserver.a(agg_font_freetype.o)

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



Hi Gregor,

In your mapserver build dir do:

make clean
./configure 
make

also check to see if you have an errand mapserver.a somewhere

locate mapserver.a

and remove them.

-Steve
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Build 5.6.5 with AGG, weird error

2010-08-17 Thread Gregor at HostGIS

In your mapserver build dir do:
make clean
./configure 
make


Yeah, I know to do make clean before trying again. It hasn't helped.



also check to see if you have an errand mapserver.a somewhere
locate mapserver.a and remove them.


Good thinking, in case one somehow got placed somewhere. But no, the 
only one on the system is the one I just compiled.


--
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.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Build 5.6.5 with AGG, weird error

2010-08-16 Thread Gregor at HostGIS

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_aaEvRT_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_aaEvRT_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.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Build 5.6.5 with AGG, weird error

2010-08-16 Thread Stephen Woodbridge

Hi Gregor,

You should not need to download, build and install agg anymore. The 
source code that we use from agg has been port into the mapserver 
source. So when you configure use:


--with-agg

to build with the embeded agg or leave it off to not build with it.

my configure command looks like:

./configure \
  --enable-runpath \
  --enable-ignore-missing-data \
  --with-proj=/usr \
  --with-agg \
  --with-gd= \
  --with-freetype=/usr \
  --with-postgis \
  --without-tiff \
  --with-wmsclient \
  --with-fribidi-config=/usr/local/lib/pkgconfig/fribidi.pc \
  --with-httpd=/usr/sbin/apache2 \
  --with-gdal \
  --with-ogr

-Steve W
 http://imaptools.com/

Gregor at HostGIS wrote:

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_aaEvRT_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_aaEvRT_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?



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users