[Mapserver-users] MapServer compile issue

Tom.Kralidis at CCRS.NRCan.gc.ca Tom.Kralidis at CCRS.NRCan.gc.ca
Mon Apr 21 13:47:37 EDT 2003


Thanks.

The configure command you gave resulted in error for the libwww stuff, when
doing a make:

...

gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ
-DUSE_PROJ_API_H -DUSE_WM
S -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG
-DUSE_GD_JPEG -DUSE_GD_
WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR    -DUSE_GDAL
-I/usr/local/include  -I/usr/lo
cal//include        -I/usr/local/include  -I/usr/local/include
-I/usr/local/include/w3c-
libwww -DHAVE_CONFIG_H  mapwmslayer.c -o mapwmslayer.o
mapwmslayer.c:132: WWWLib.h: Input/output error
mapwmslayer.c:133: WWWHTTP.h: Input/output error
mapwmslayer.c:134: WWWInit.h: Input/output error
make: *** [mapwmslayer.o] Error 1


..but this one worked:

$ ./configure --with-proj=/usr/local/ --with-gdal=/usr/local
/bin/gdal-config --with-ogc
--with-wmsclient=/usr/local/src/w3c-libwww-5.4.0/


$ ./mapserv
MapServer version 3.6.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
SUPPORTS=PROJ SUPP
ORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=TIFF INPUT=EPPL7
INPUT=JPEG INPUT
=GDAL INPUT=SHAPEFILE

Thanks!

..Tom

> -----Original Message-----
> From: Daniel Morissette [mailto:morissette at dmsolutions.ca]
> Sent: Monday, April 21, 2003 1:31 PM
> To: Tom.Kralidis at ccrs.nrcan.gc.ca
> Cc: mapserver-users at lists.gis.umn.edu
> Subject: Re: [Mapserver-users] MapServer compile issue
> 
> 
> 'asStyleLabel' comes from the OGR library, so I suspect a problem
> related to GDAL/OGR.  Looking at your configure command, I 
> see that you
> point configure to the OGR source but since you are building with
> gdal-config this is not necessary and could be the origin of your
> problems.  I would suggest using instead:
>   --with-gdal=/usr/local/bin/gdal-config --with-ogr  
> 
> ... 
> 
> Oh wait... I checked the ldd output that you sent in another message,
> and it reports:
>   libgdal.1.1.so => /usr/lib/libgdal.1.1.so (0x4018b000)
> 
> It seems that you have duplicate versions of the gdal 
> library: one copy
> under /usr/local and one under /usr ... this is not good.
> 
> OK, here is what you should do:
> 
> 1- Make sure you have one and only one copy of every support library
> installed on your system.  Ideally support libs that you 
> build should be
> installed under /usr/local/lib and /usr/local/include
> 
> 2- Make sure /usr/local/bin is in your executable path, and that
> /usr/local/lib is in your runtime library path
> 
> 3- Point configure to the location where the libs are 
> installed instead
> of to their source, your configure command should become 
> something like:
> 
> $ ./configure --with-proj=/usr/local/ \
>       --with-gdal=/usr/local/bin/gdal-config --with-ogr  \
>       --with-wmsclient \
>       --libdir=/usr/local/lib --includedir=/usr/local/include
> 
> (I don't know what --libdir and --includedir do or if they 
> will have any
> real impact on your build)
> 
> I hope that helps,
> 
> Daniel
> 
> 
> Tom.Kralidis at ccrs.nrcan.gc.ca wrote:
> > 
> > Hi,
> > 
> > In trying to build a distribution of MapServer (3.6.5), I 
> run into the
> > following errors.  Here is my trail of the build:
> > 
> > (latest png, zlib, jpeg, freetype2, gd2.0.12, proj, libwww).
> > 
> > $ ./configure --with-proj=/usr/local/src/proj-4.4.7/
> > --with-gdal=/usr/local/bin/gdal-config --wi
> > th-ogr=/usr/local/src/gdal-1.1.8/ogr/
> > --with-wmsclient=/usr/local/src/w3c-libwww-5.4.0/ 
> --libdir=/usr/local/lib
> > --includedir=/usr/local/include
> > 
> > ...
> > 
> > $ make
> > 
> > ...
> > 
> > $ ./mapserv
> > ./mapserv: error in loading shared libraries: ./mapserv: 
> undefined symbol:
> > asStyleLabel
> > 
> > I added the /usr/local/include and /usr/local/lib to the 
> configure command
> > because I was getting not found library type errors 
> (looking for include /
> > libs in /usr/, instead of /usr/local).
> > 
> > I an trying to compile on RedHat Linux (6.2).
> > 
> > Any idea what's going on here?
> > 
> > Thanks
> > 
> > ..Tom
> > 
> > =================================
> > Tom Kralidis
> > Systems Scientist
> > Canada Centre for Remote Sensing
> > Tel: (613) 947-1828
> > http://www.cgdi.ca/
> > =================================
> 



More information about the mapserver-users mailing list