[mapserver-users] Compile problems

Tom Myny tom@internetgids.be
Tue, 1 Oct 2002 16:27:18 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0045_01C26967.68EBD870
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

When i try to compile mapserver1.6.1 with command rule:

./configure --with-php=3D../php-4.2.3

 i got:

cc1: warning: changing search order for system directory "/usr/include"
cc1: warning:   as it has already been specified as a non-system =
directory
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 maplayer.o mapresample.o mapwms.o mapwmslayer.o =
maporaclespatial.o mapgml.o mapprojhack.o mapthread.o epplib.o  mappdf.o
ranlib libmap.a
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL     -DUSE_JPEG =
-DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT =
-DGD_HAS_GDIMAGEGIFPTR -DUSE_PDF       -I/usr/include              =
shp2img.c -o shp2img.o
cc1: warning: changing search order for system directory "/usr/include"
cc1: warning:   as it has already been specified as a non-system =
directory
gcc -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL     -DUSE_JPEG =
-DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT =
-DGD_HAS_GDIMAGEGIFPTR -DUSE_PDF       -I/usr/include              =
shp2img.o  -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz =
-lpdf -ljpeg -lfreetype -lpng -lz  -ljpeg          -lm   -o shp2img
./libmap.a(mapogr.o)(.eh_frame+0x11): undefined reference to =
`__gxx_personality_v0'
collect2: ld returned 1 exit status

When i configure mapserver1.6.1 with command rule:

./configure --with-proj=3D/usr --with-wmsclient --with-libwww =
--with-gdal --enable-runpath --with-php=3D../php-4.2.3 --with-gd

i got:

cd mapscript/php3; make; cd ../..
make[1]: Entering directory `/usr/src/mapserver-3.6.1/mapscript/php3'
cc  cc -I. -I.. -fpic -O2  -Wall -DCOMPILE_DL=3D1 -DPHP4 -DUSE_WMS_LYR =
-DUSE_WMS  -DUSE_GDAL     -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_EPPL  =
-DUSE_PDF  -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP =
-DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_JPEG  =
-I/usr/src/mapserver-3.6.1 -I/usr/include -I/usr/include/w3c-libwww =
-DHAVE_CONFIG_H  -I/usr/include    -I/usr/include   -I/usr/include   =
-I/usr/src/mapserver-3.6.1/../php-4.2.3 =
-I/usr/src/mapserver-3.6.1/../php-4.2.3/dl =
-I/usr/src/mapserver-3.6.1/../php-4.2.3/main =
-I/usr/src/mapserver-3.6.1/../php-4.2.3/Zend =
-I/usr/src/mapserver-3.6.1/../php-4.2.3/include =
-I/usr/src/mapserver-3.6.1/../php-4.2.3/TSRM  -c -o php_mapscript_util.o =
php_mapscript_util.c
cc: cannot specify -o with -c or -S and multiple compilations
make[1]: *** [php_mapscript_util.o] Error 1
make[1]: Leaving directory `/usr/src/mapserver-3.6.1/mapscript/php3'

Please help :)
------=_NextPart_000_0045_01C26967.68EBD870
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 5.50.4915.500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>When i try to compile mapserver1.6.1 =
with command=20
rule:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>./configure =
--with-php=3D../php-4.2.3</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;i got:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>cc1: warning: changing search order for =
system=20
directory "/usr/include"<BR>cc1: warning:&nbsp;&nbsp; as it has already =
been=20
specified as a non-system directory<BR>ar rc libmap.a maptemplate.o =
mapbits.o=20
maphash.o mapshape.o mapxbase.o mapparser.o maplexer.o maptree.o =
mapsearch.o=20
mapstring.o mapsymbol.o mapfile.o maplegend.o maputil.o mapscale.o =
mapquery.o=20
maplabel.o maperror.o mapprimitive.o mapproject.o mapraster.o mapsde.o =
mapogr.o=20
mappostgis.o maplayer.o mapresample.o mapwms.o mapwmslayer.o =
maporaclespatial.o=20
mapgml.o mapprojhack.o mapthread.o epplib.o&nbsp; mappdf.o<BR>ranlib=20
libmap.a<BR>gcc -c -O2&nbsp; -Wall -DIGNORE_MISSING_DATA&nbsp;=20
-DUSE_EPPL&nbsp;&nbsp;&nbsp;&nbsp; -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG=20
-DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR=20
-DUSE_PDF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
-I/usr/include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;=20
shp2img.c -o shp2img.o<BR>cc1: warning: changing search order for system =

directory "/usr/include"<BR>cc1: warning:&nbsp;&nbsp; as it has already =
been=20
specified as a non-system directory<BR>gcc -O2&nbsp; -Wall=20
-DIGNORE_MISSING_DATA&nbsp; -DUSE_EPPL&nbsp;&nbsp;&nbsp;&nbsp; =
-DUSE_JPEG=20
-DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT=20
-DGD_HAS_GDIMAGEGIFPTR -DUSE_PDF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
-I/usr/include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;=20
shp2img.o&nbsp; -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng =
-lz -lpdf=20
-ljpeg -lfreetype -lpng -lz&nbsp;=20
-ljpeg&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
-lm&nbsp;&nbsp; -o=20
shp2img<BR>./libmap.a(mapogr.o)(.eh_frame+0x11): undefined reference to=20
`__gxx_personality_v0'<BR>collect2: ld returned 1 exit =
status<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>When i configure mapserver1.6.1 with =
command=20
rule:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>./configure --with-proj=3D/usr =
--with-wmsclient=20
--with-libwww --with-gdal --enable-runpath --with-php=3D../php-4.2.3=20
--with-gd<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>i got:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>cd mapscript/php3; make; cd =
../..<BR>make[1]:=20
Entering directory `/usr/src/mapserver-3.6.1/mapscript/php3'<BR>cc&nbsp; =
cc -I.=20
-I.. -fpic -O2&nbsp; -Wall -DCOMPILE_DL=3D1 -DPHP4 -DUSE_WMS_LYR =
-DUSE_WMS&nbsp;=20
-DUSE_GDAL&nbsp;&nbsp;&nbsp;&nbsp; -DUSE_PROJ -DUSE_PROJ_API_H =
-DUSE_EPPL&nbsp;=20
-DUSE_PDF&nbsp; -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP=20
-DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_JPEG&nbsp; =
-I/usr/src/mapserver-3.6.1=20
-I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H&nbsp;=20
-I/usr/include&nbsp;&nbsp;&nbsp; -I/usr/include&nbsp;&nbsp;=20
-I/usr/include&nbsp;&nbsp; -I/usr/src/mapserver-3.6.1/../php-4.2.3=20
-I/usr/src/mapserver-3.6.1/../php-4.2.3/dl=20
-I/usr/src/mapserver-3.6.1/../php-4.2.3/main=20
-I/usr/src/mapserver-3.6.1/../php-4.2.3/Zend=20
-I/usr/src/mapserver-3.6.1/../php-4.2.3/include=20
-I/usr/src/mapserver-3.6.1/../php-4.2.3/TSRM&nbsp; -c -o =
php_mapscript_util.o=20
php_mapscript_util.c<BR>cc: cannot specify -o with -c or -S and multiple =

compilations<BR>make[1]: *** [php_mapscript_util.o] Error 1<BR>make[1]: =
Leaving=20
directory `/usr/src/mapserver-3.6.1/mapscript/php3'<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Please help =
:)</DIV></FONT></BODY></HTML>

------=_NextPart_000_0045_01C26967.68EBD870--