I am bumping this post up. I was never able to compile rev 7683 - I am working with revision 7059, which I was able to compile. I am trying to compile revision 7789 now, and I am having the same problem. This is what I get:<div>
<br></div><div><div>...</div><div>  "_lwgeom_calculate_gbox_geodetic", referenced from:</div><div>      _compute_geography_stats in geography_estimate.o</div><div>      _geography_gist_selectivity in geography_estimate.o</div>
<div>      _geography_area in geography_measurement.o</div><div>  "_gserialized_get_type", referenced from:</div><div>      _geography_bestsrid in geography_measurement.o</div><div>      _geography_covers in geography_measurement.o</div>
<div>      _geography_perimeter in geography_measurement.o</div><div>  "_lwgeom_calculate_gbox_cartesian", referenced from:</div><div>      _geography_bestsrid in geography_measurement.o</div><div>  "_lwgeom_covers_lwgeom_sphere", referenced from:</div>
<div>      _geography_covers in geography_measurement.o</div><div>  "_gserialized_get_gbox_p", referenced from:</div><div>      _geography_point_outside in geography_measurement.o</div><div>  "_gbox_pt_outside", referenced from:</div>
<div>      _geography_point_outside in geography_measurement.o</div><div>  "_lwgeom_area_sphere", referenced from:</div><div>      _geography_area in geography_measurement.o</div><div>  "_lwgeom_area_spheroid", referenced from:</div>
<div>      _geography_area in geography_measurement.o</div><div>  "_gserialized_datum_get_gbox_p", referenced from:</div><div>      _compute_geometry_stats in geometry_gist_selectivity.o</div><div>      _geometry_gist_sel_2d in geometry_gist_selectivity.o</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//ccgj6uq8.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><br></div><div>Is anyone else using Macports? Are there any tricks I could try to get this to compile? I would like to use ST_SummaryStats for some raster analysis I need to do.</div>
<div><br></div><div>Thanks,</div><div>JP</div>
<br><br><div class="gmail_quote">On Mon, Aug 1, 2011 at 2:14 PM, JP Glutting <span dir="ltr"><<a href="mailto:jpglutting@gmail.com">jpglutting@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
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" target="_blank">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>







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