[Mapserver-users] mapserver compile error
Aaron D. Hunt
hunt at zedxinc.com
Thu Jun 26 07:14:47 PDT 2003
This is a multi-part message in MIME format.
------=_NextPart_000_0084_01C33BCB.C55640F0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I am trying to compile mapserver on a new server with the following =
config. When I compile, I get the error below. Any Ideas.
./configure --without-tiff --with-proj=3D/home/mapserver/proj-4.4.7 =
--with-gdal=3D/home/mapserver/gdal-1.1.8/bin/gdal-config =
--with-ogr=3D/home/mapserver/gdal-1.1.8 --with-jpeg --with-wmsclient =
--with-freetype=3D/home/mapserver/freetype-2.1.4 =
--with-gd=3D/home/mapserver/gd-2.0.15
-DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL =
-I/home/mapserver/gd-2.0.15 -I/home/mapserver/proj-4.4.7//src =
-I/home/mapserver/gdal-1.1.8/ogr/ogrsf_frmts =
-I/home/mapserver/gdal-1.1.8/ogr =
-I/home/mapserver/gdal-1.1.8/ogr/../port =
-I/home/mapserver/gdal-1.1.8/include -I/home/mapserver/gdal-1.1.8/alg =
-I/usr/local/include tile4ms.c -o tile4ms.o
ar rc libmap.a maptemplate.o mapbits.o maphash.o mapshape.o mapxbase.o =
mapparser.o maplexer.o maptree.o mapsearch.o mapstring.o mapsymbol.o =
mapfile.o maplegend.o maputil.o mapscale.o mapquery.o maplabel.o =
maperror.o mapprimitive.o mapproject.o mapraster.o mapsde.o mapogr.o =
mappostgis.o mapmygis.o maplayer.o mapresample.o mapwms.o mapwmslayer.o =
maporaclespatial.o mapgml.o mapprojhack.o mapthread.o mapdraw.o mapgd.o =
mapoutput.o mapgdal.o mapswf.o mapimagemap.o mapows.o mapwfs.o =
mapwfslayer.o mapcontext.o maphttp.o mapdrawgdal.o mappdf.o mapjoin.o =
mapgraticule.o mapcopy.o epplib.o
ranlib libmap.a
gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ =
-DUSE_PROJ_API_H -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_JPEG =
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR =
-DUSE_GDAL -I/home/mapserver/gd-2.0.15 =
-I/home/mapserver/proj-4.4.7//src =
-I/home/mapserver/gdal-1.1.8/ogr/ogrsf_frmts =
-I/home/mapserver/gdal-1.1.8/ogr =
-I/home/mapserver/gdal-1.1.8/ogr/../port =
-I/home/mapserver/gdal-1.1.8/include -I/home/mapserver/gdal-1.1.8/alg =
-I/usr/local/include sortshp.o -L. -lmap =
-L/home/mapserver/gd-2.0.15/.libs -lgd -ljpeg -lfreetype -lpng -lz =
-ljpeg -lfreetype -lpng -lz -L/home/mapserver/proj-4.4.7//lib -lproj =
-ljpeg -L/home/mapserver/gdal-1.1.8/lib -lgdal.1.1 -L/usr/local/lib =
-lcurl -lz -lssl -lcrypto -ldl -lz -lm =
/home/mapserver/gdal-1.1.8/ogr/ogrsf_frmts/ogrsf_frmts.a =
/home/mapserver/gdal-1.1.8/ogr/ogr.a =
/home/mapserver/gdal-1.1.8/ogr/../port/cpl.a -o sortshp
./libmap.a(mapgdal.o): In function `msGDALCleanup':
mapgdal.o(.text+0x41): undefined reference to `GDALDestroyDriverManager'
./libmap.a(mapgdal.o): In function `msSaveImageGDAL':
mapgdal.o(.text+0x4ef): undefined reference to =
`GDALSetRasterColorInterpretation'
mapgdal.o(.text+0x50c): undefined reference to =
`GDALSetRasterColorInterpretation'
mapgdal.o(.text+0x53b): undefined reference to =
`GDALSetRasterColorInterpretation'
mapgdal.o(.text+0x558): undefined reference to =
`GDALSetRasterColorInterpretation'
mapgdal.o(.text+0x575): undefined reference to =
`GDALSetRasterColorInterpretation'
./libmap.a(mapgdal.o)(.text+0x592): more undefined references to =
`GDALSetRasterColorInterpretation' follow
collect2: ld returned 1 exit status
make: *** [sortshp] Error 1
make: *** Waiting for unfinished jobs....
Aaron D. Hunt
Technical Manager
ZedX Inc.
Voice: 814-357-8490
Fax: 814-357-8499
------=_NextPart_000_0084_01C33BCB.C55640F0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I am trying to compile mapserver on a =
new server=20
with the following config. When I compile, I get the error below. =
Any=20
Ideas.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>./configure --without-tiff=20
--with-proj=3D/home/mapserver/proj-4.4.7=20
--with-gdal=3D/home/mapserver/gdal-1.1.8/bin/gdal-config=20
--with-ogr=3D/home/mapserver/gdal-1.1.8 --with-jpeg --with-wmsclient=20
--with-freetype=3D/home/mapserver/freetype-2.1.4=20
--with-gd=3D/home/mapserver/gd-2.0.15<BR></DIV></FONT>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>-DUSE_GD_WBMP -DUSE_GD_FT =
-DUSE_OGR=20
-DUSE_GDAL -I/home/mapserver/gd-2.0.15 =20
-I/home/mapserver/proj-4.4.7//src =20
-I/home/mapserver/gdal-1.1.8/ogr/ogrsf_frmts =
-I/home/mapserver/gdal-1.1.8/ogr=20
-I/home/mapserver/gdal-1.1.8/ogr/../port =
-I/home/mapserver/gdal-1.1.8/include=20
-I/home/mapserver/gdal-1.1.8/alg =
-I/usr/local/include =20
tile4ms.c -o tile4ms.o<BR>ar rc libmap.a maptemplate.o mapbits.o =
maphash.o=20
mapshape.o mapxbase.o mapparser.o maplexer.o maptree.o mapsearch.o =
mapstring.o=20
mapsymbol.o mapfile.o maplegend.o maputil.o mapscale.o mapquery.o =
maplabel.o=20
maperror.o mapprimitive.o mapproject.o mapraster.o mapsde.o mapogr.o=20
mappostgis.o mapmygis.o maplayer.o mapresample.o mapwms.o mapwmslayer.o=20
maporaclespatial.o mapgml.o mapprojhack.o mapthread.o mapdraw.o mapgd.o=20
mapoutput.o mapgdal.o mapswf.o mapimagemap.o mapows.o mapwfs.o =
mapwfslayer.o=20
mapcontext.o maphttp.o mapdrawgdal.o mappdf.o mapjoin.o mapgraticule.o =
mapcopy.o=20
epplib.o<BR>ranlib libmap.a<BR>gcc -O2 -Wall =
-DIGNORE_MISSING_DATA =20
-DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS_SVR=20
-DUSE_WMS_LYR -DUSE_JPEG -DUSE_GD_PNG=20
-DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR=20
-DUSE_GDAL -I/home/mapserver/gd-2.0.15 =20
-I/home/mapserver/proj-4.4.7//src =20
-I/home/mapserver/gdal-1.1.8/ogr/ogrsf_frmts =
-I/home/mapserver/gdal-1.1.8/ogr=20
-I/home/mapserver/gdal-1.1.8/ogr/../port =
-I/home/mapserver/gdal-1.1.8/include=20
-I/home/mapserver/gdal-1.1.8/alg =
-I/usr/local/include =20
sortshp.o -L. -lmap -L/home/mapserver/gd-2.0.15/.libs -lgd -ljpeg=20
-lfreetype -lpng -lz -ljpeg -lfreetype -lpng -lz =20
-L/home/mapserver/proj-4.4.7//lib -lproj -ljpeg =20
-L/home/mapserver/gdal-1.1.8/lib -lgdal.1.1 =
-L/usr/local/lib=20
-lcurl -lz -lssl -lcrypto -ldl -lz -lm =20
/home/mapserver/gdal-1.1.8/ogr/ogrsf_frmts/ogrsf_frmts.a=20
/home/mapserver/gdal-1.1.8/ogr/ogr.a=20
/home/mapserver/gdal-1.1.8/ogr/../port/cpl.a -o=20
sortshp<BR>./libmap.a(mapgdal.o): In function=20
`msGDALCleanup':<BR>mapgdal.o(.text+0x41): undefined reference to=20
`GDALDestroyDriverManager'<BR>./libmap.a(mapgdal.o): In function=20
`msSaveImageGDAL':<BR>mapgdal.o(.text+0x4ef): undefined reference to=20
`GDALSetRasterColorInterpretation'<BR>mapgdal.o(.text+0x50c): undefined=20
reference to =
`GDALSetRasterColorInterpretation'<BR>mapgdal.o(.text+0x53b):=20
undefined reference to=20
`GDALSetRasterColorInterpretation'<BR>mapgdal.o(.text+0x558): undefined=20
reference to =
`GDALSetRasterColorInterpretation'<BR>mapgdal.o(.text+0x575):=20
undefined reference to=20
`GDALSetRasterColorInterpretation'<BR>./libmap.a(mapgdal.o)(.text+0x592):=
more=20
undefined references to `GDALSetRasterColorInterpretation' =
follow<BR>collect2:=20
ld returned 1 exit status<BR>make: *** [sortshp] Error 1<BR>make: *** =
Waiting=20
for unfinished jobs....<BR></DIV></FONT>
<DIV><FONT face=3DArial size=3D2>Aaron D. Hunt<BR>Technical =
Manager<BR>ZedX=20
Inc.<BR>Voice: 814-357-8490<BR>Fax: =20
814-357-8499</FONT></DIV></BODY></HTML>
------=_NextPart_000_0084_01C33BCB.C55640F0--
More information about the MapServer-users
mailing list