Hello All,
<div><br></div><div>I'm trying to build PostGIS based on MacPorts dependencies (GEOS and PostgreSQL 9.0) on OS X 10.7 (Lion) with the new XCode. Macports puts everything into /opt/local.</div><div><br></div><div>I amsetting the following environmental variables:<br>

<br>export CPPFLAGS=-I/opt/local/include<br>export LDFLAGS=-L/opt/local/lib<br>export CPATH=/opt/local/include<br>export LIBRARY_PATH=/opt/local/lib<br><br>configuring with:<br><br>./configure --with-projdir=/opt/local --with-raster<br>

<br>and compiling. I keep getting the following error:</div><div><br></div><div><div>ld: symbol(s) not found for architecture i386</div><div>collect2: ld returned 1 exit status</div><div>lipo: can't open input file: /var/folders/k0/lzz_jzld03d8yg881mnbh7_h0000gp/T//ccWpI3E5.out (No such file or directory)</div>
<div>make[1]: *** [<a href="http://postgis-2.0.so">postgis-2.0.so</a>] Error 1</div><div>make: *** [all] Error 1</div></div><div><br></div><div>I tried configuring using Wiliam Kyngsbury's options:</div><div><br></div>
<div><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<title></title>
<meta name="Generator" content="Cocoa HTML Writer">
<meta name="CocoaVersion" content="1138">
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Arial; color: #333233}
</style>


<p class="p1">export CFLAGS="-Os -arch i386 -arch x86_64"</p>
<p class="p1">export PG_CPPFLAGS="-arch i386 -arch x86_64"</p>
<p class="p1">export SHLIB_LINK="-arch i386 -arch x86_64"</p>
<p class="p1">export LDFLAGS="-arch i386 -arch x86_64"</p><p class="p1"><br></p><p class="p1">but that doesn't seem to help. Any hints? What should I try to get more information on the problem?</p><p class="p1">
<br></p><p class="p1">Thanks,</p><p class="p1">JP</p></div><div><br></div>