[Mapserver-users] MapServ Compile Error after GDAL 1.2 install

Andrew Rich devel at itdownunder.com.au
Fri Jun 4 06:29:37 PDT 2004


This is a multi-part message in MIME format.

------=_NextPart_000_000F_01C44A8B.CDEAE750
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hi All
 
Initially I had MapServer working ok but I received a image from Tyler
that required a projection.
 
To enable projections I install GDAL 1.2.0 and PROJ 4.4.8 .
 
I used the following configure line
 
./configure --with-gd=/usr/src/gd-2.0.22 --with-proj=/usr/src/proj-4.4.8
--with-gdal=/usr/src/gdal-1.2.0/apps/gdal-config --with-wms
 
Then make:
 
[root at tanami mapserver-4.2.0]# make
gcc -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ
-DUSE_PROJ_API_H -DUSE_WMS_SVR        -DUSE_GD_PNG -DUSE_GD_JPEG
-DUSE_GD_WBMP -DUSE_GD_FT    -DUSE_GDAL     -I/usr/src/gd-2.0.22
-I/usr/src/proj-4.4.8/src       -I/usr/src/gdal-1.2.0/port
-I/usr/src/gdal-1.2.0/gcore -I/usr/src/gdal-1.2.0/alg
-I/usr/src/gdal-1.2.0/ogr -I/usr/src/gdal-1.2.0/ogr/ogrsf_frmts
mapserv.o cgiutil.o   -L. -lmap -L/usr/src/gd-2.0.22/.libs -lgd -ljpeg
-lfreetype -lpng -lz    -ljpeg -lfreetype -lpng -lz
-L/usr/src/proj-4.4.8/src/.libs -lproj -ljpeg
/usr/src/gdal-1.2.0/libgdal.la        -lm  -o mapserv
/usr/src/gdal-1.2.0/libgdal.la: file not recognized: File format not
recognized
collect2: ld returned 1 exit status
make: *** [mapserv] Error 1
 
Is this GDAL-1.2 too new and should I downgrade or is it something else.
 
Regards
Andrew Rich

------=_NextPart_000_000F_01C44A8B.CDEAE750
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 10">
<meta name=3DOriginator content=3D"Microsoft Word 10">
<link rel=3DFile-List href=3D"cid:filelist.xml at 01C44A8B.CD2F1160">
<o:SmartTagType =
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
 name=3D"City"/>
<o:SmartTagType =
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
 name=3D"place"/>
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]--><!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0cm;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;
	text-underline:single;}
span.EmailStyle17
	{mso-style-type:personal;
	mso-style-noshow:yes;
	mso-ansi-font-size:10.0pt;
	mso-bidi-font-size:10.0pt;
	font-family:Arial;
	mso-ascii-font-family:Arial;
	mso-hansi-font-family:Arial;
	mso-bidi-font-family:Arial;
	color:windowtext;}
span.EmailStyle18
	{mso-style-type:personal-reply;
	mso-style-noshow:yes;
	mso-ansi-font-size:10.0pt;
	mso-bidi-font-size:10.0pt;
	font-family:Arial;
	mso-ascii-font-family:Arial;
	mso-hansi-font-family:Arial;
	mso-bidi-font-family:Arial;
	color:navy;}
@page Section1
	{size:612.0pt 792.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;
	mso-header-margin:35.4pt;
	mso-footer-margin:35.4pt;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */=20
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
	mso-para-margin:0cm;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple =
style=3D'tab-interval:36.0pt'>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Hi All<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Initially I had MapServer working ok but I received a =
image
from </span></font><st1:City><st1:place><font size=3D2 =
face=3DArial><span
  =
style=3D'font-size:10.0pt;font-family:Arial'>Tyler</span></font></st1:pla=
ce></st1:City><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'> that
required a projection.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>To enable projections I install GDAL 1.2.0 and PROJ =
4.4.8 .<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I used the following configure =
line<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>./configure --with-gd=3D/usr/src/gd-2.0.22
--with-proj=3D/usr/src/proj-4.4.8
--with-gdal=3D/usr/src/gdal-1.2.0/apps/gdal-config =
--with-wms<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Then make:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>[root at tanami mapserver-4.2.0]# =
make<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>gcc -O2<span style=3D'mso-spacerun:yes'>  =
</span>-Wall
-DIGNORE_MISSING_DATA<span style=3D'mso-spacerun:yes'>  =
</span>-DUSE_EPPL
-DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS_SVR<span
style=3D'mso-spacerun:yes'>       
</span>-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT<span
style=3D'mso-spacerun:yes'>    </span>-DUSE_GDAL<span
style=3D'mso-spacerun:yes'>    
</span>-I/usr/src/gd-2.0.22<span style=3D'mso-spacerun:yes'> 
</span>-I/usr/src/proj-4.4.8/src<span
style=3D'mso-spacerun:yes'>     </span><span
style=3D'mso-spacerun:yes'>  </span>-I/usr/src/gdal-1.2.0/port
-I/usr/src/gdal-1.2.0/gcore -I/usr/src/gdal-1.2.0/alg =
-I/usr/src/gdal-1.2.0/ogr
-I/usr/src/gdal-1.2.0/ogr/ogrsf_frmts<span
style=3D'mso-spacerun:yes'>      =
</span>mapserv.o
cgiutil.o<span style=3D'mso-spacerun:yes'>   </span>-L. -lmap
-L/usr/src/gd-2.0.22/.libs -lgd -ljpeg -lfreetype -lpng -lz<span
style=3D'mso-spacerun:yes'>    </span>-ljpeg -lfreetype =
-lpng
-lz<span style=3D'mso-spacerun:yes'>  
</span>-L/usr/src/proj-4.4.8/src/.libs -lproj -ljpeg<span
style=3D'mso-spacerun:yes'>  =
</span>/usr/src/gdal-1.2.0/libgdal.la<span
style=3D'mso-spacerun:yes'>       
</span>-lm<span style=3D'mso-spacerun:yes'>  </span>-o =
mapserv<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>/usr/src/gdal-1.2.0/libgdal.la: file not recognized: =
File
format not recognized<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>collect2: ld returned 1 exit =
status<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>make: *** [mapserv] Error =
1<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Is this GDAL-1.2 too new and should I downgrade or is =
it
something else.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Regards<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Andrew Rich<o:p></o:p></span></font></p>

</div>

</body>

</html>

------=_NextPart_000_000F_01C44A8B.CDEAE750--




More information about the MapServer-users mailing list