[mapserver-users] Z_BEST_COMPRESSION undeclared Error on MapServer 5.6.5 make.

Passmore, James H. jpass at bgs.ac.uk
Mon Jan 17 12:07:17 EST 2011


I'm trying to compile MapServer 5.6.5 on Ubuntu 10.10, the ultimate aim is to add a patch to support the INSPIRE language requirement (otherwise I'd use one of the existing binaries).

I can run configure ( ./configure --with-ogr --with-gdal --with-wfsclient --with-wmsclient --with-proj --with-wcs --with-postgis --with-geos --with-sos --with-experimental-png --with-fribidi-config --with-threads --enable-debug --with-wfs ) and this completes with no errors.

ZLIB is found:

configure: checking where Zlib is installed...
checking for zlibVersion in -lz... yes
        using libz from system libs (-DUSE_ZLIB).

and I have reported:

MapServer is now configured for 

 -------------- Compiler Info ------------- 
  C compiler:                gcc -g  -fPIC -Wall  
  C++ compiler:              g++ -g  -fPIC -Wall  
  Debug:                     -g 
  Generic NINT:              

 -------------- Renderer Settings --------- 
  OpenGL support:            
  zlib support:              -DUSE_ZLIB
  png support:               
  palette rgba png support:  -DUSE_RGBA_PNG
  jpeg support:              
  iconv support:             -DUSE_ICONV
  AGG support:               -DUSE_AGG
  Cairo (SVG,PDF) support:   
  Ming(flash) support:       
  PDFLib support:            

 -------------- Support Libraries --------- 
  Proj.4 support:            -DUSE_PROJ
  Libxml2 support:           -DUSE_LIBXML2
  FriBidi support:           -DUSE_FRIBIDI
  Curl support:              -DUSE_CURL
  FastCGI support:           
  Threading support:         -DUSE_THREAD
  GEOS support:              -DUSE_GEOS -DGEOS_HAS_SIMPLIFY

 -------------- Data Format Drivers ------- 
  native tiff support:       
  PostGIS support:           -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION
  EPPL7 support:             -DUSE_EPPL
  ArcSDE support:            
  OGR support:               -DUSE_OGR
  GDAL support:              -DUSE_GDAL
  Oracle Spatial support:    

 -------------- OGC Services -------------- 
  WMS Server:                -DUSE_WMS_SVR
  WMS Client:                -DUSE_WMS_LYR
  WFS Server:                -DUSE_WFS_SVR
  WFS Client:                -DUSE_WMS_LYR
  WCS Server:                -DUSE_WCS_SVR
  SOS Server:                -DUSE_SOS_SVR

 -------------- MapScript ----------------- 
  PHP MapScript:             no


However when I run make I get the following error:

local/include    -I/usr/include/libxml2 -I/usr/local/include  maprgbapng.c -o maprgbapng.o
maprgbapng.c: In function ‘ms_png_write_image_init’:
maprgbapng.c:146: error: ‘Z_BEST_COMPRESSION’ undeclared (first use in this function)
maprgbapng.c:146: error: (Each undeclared identifier is reported only once
maprgbapng.c:146: error: for each function it appears in.)
make: *** [maprgbapng.o] Error 1


Can anyone tell me where I might be going wrong?

thanks

James Passmore
GIS and WWW Specialist
Information Systems and Infrastructure
British Geological Survey







-- 
This message (and any attachments) is for the recipient only NERC
is subject to the Freedom of Information Act 2000 and the contents
of this email and any reply you make may be disclosed by NERC unless
it is exempt from release under the Act. Any material supplied to
NERC may be stored in an electronic records management system.


More information about the mapserver-users mailing list