That was the problem.  I thought specifying the GEOS install directly would overcome that.<div><br></div><div>Thanks for the help.</div><div><br></div><div>Jerl<br><br><div class="gmail_quote">On Wed, Aug 17, 2011 at 1:00 PM, Even Rouault <span dir="ltr">&lt;<a href="mailto:even.rouault@mines-paris.org">even.rouault@mines-paris.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Le mercredi 17 août 2011 18:19:20, Jerl Simpson a écrit :<br>
<div class="im">&gt; Hi:<br>
&gt;<br>
&gt; I&#39;m having a strange issue when compiling GDAL with GEOS support.<br>
&gt;<br>
&gt; I wonder if someone can help.<br>
&gt;<br>
&gt; When I enable GEOS support using &quot;--with-geos=/usr/local/bin/geos-config&quot; I<br>
&gt; get the following errors:<br>
&gt;<br>
&gt; gdal/.libs/libgdal.so: undefined reference to `GEOSWKBWriter_create&#39;<br>
&gt; gdal/.libs/libgdal.so: undefined reference to `GEOSSimplify&#39;<br>
&gt; gdal/.libs/libgdal.so: undefined reference to `GEOSWKBWriter_write&#39;<br>
&gt; gdal/.libs/libgdal.so: undefined reference to<br>
&gt; `GEOSWKBWriter_setOutputDimension&#39;<br>
&gt; gdal/.libs/libgdal.so: undefined reference to `GEOSUnionCascaded&#39;<br>
&gt; gdal/.libs/libgdal.so: undefined reference to `GEOSFree&#39;<br>
&gt; gdal/.libs/libgdal.so: undefined reference to `GEOSWKBWriter_destroy&#39;<br>
&gt; gdal/.libs/libgdal.so: undefined reference to<br>
&gt; `GEOSGeom_getCoordinateDimension&#39;<br>
<br>
</div>Hum, what is interesting here is that all those symbols are conditionnaly used<br>
when GEOS &gt;= 3.1 is detected. So my guess is that GDAL builds against the<br>
include files of the newer GEOS version you specify, but at the linking stage,<br>
there&#39;s an older libgeos that must be somewhere in the linking path, probably<br>
in /usr/lib that gets linked before the one you would liked too. So you might<br>
want to uninstall your older geos version, or to alter the linking order of<br>
the LIBS variable in GDALmake.opt and/or remove the mentions to -L/usr/lib<br>
that might be found in it<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>This communication is privileged and may contain confidential information.  It&#39;s intended only for the use of the person or entity named above. If you are not the intended recipient, do not distribute or copy this communication. If you have received this communication in error, please notify the sender immediately and return the original to the email address above. © Copyright 2011 Weather Trends International, Inc.<br>

</div>