Hi, again!<br><br>Thanks for your clues, but that didn't help. <br>I still have the same error.<br>I've exported and double checked theese variables.<br>I've rebuilt GEOS and PROJ with this flags.<br><br>My arch is:<br>
uname -m<br>x86_64<br><br>I still get the same <br> "ld: symbol(s) not found for architecture i386"<br>error.<br><br>But it fires up in a different place now:<br><br> "_lwline_free", referenced from:<br>
      _LWGEOM_addpoint in lwgeom_functions_basic.o<br>      _LWGEOM_envelope in lwgeom_functions_basic.o<br>      _LWGEOM_line_from_mpoint in lwgeom_functions_basic.o<br>      _BOX2DFLOAT4_to_LWGEOM in lwgeom_box2dfloat4.o<br>
ld: symbol(s) not found for architecture i386<br>collect2: ld returned 1 exit status<br>lipo: can't open input file: /var/tmp//cccyfTRP.out (No such file or directory)<br>make[1]: *** [<a href="http://postgis-2.0.so">postgis-2.0.so</a>] Error 1<br>
make: *** [all] Error 1<br><br>Is there still a library built for a different arch?<br>How to check that out? <br><br><br><div class="gmail_quote">2011/7/18 William Kyngesburye <span dir="ltr"><<a href="mailto:woklist@kyngchaos.com">woklist@kyngchaos.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">It looks like the different parts of postgis compilation (ie most of it comes from the Postgres make system) don't have the same information about what architectures to compile for.<br>

<br>
I always specify these before configuring postgis:<br>
<br>
export CFLAGS="-Os -arch i386 -arch x86_64"<br>
export PG_CPPFLAGS="-arch i386 -arch x86_64"<br>
export SHLIB_LINK="-arch i386 -arch x86_64"<br>
export LDFLAGS="-arch i386 -arch x86_64"<br>
<br>
Note that you need to know which architectures GEOS, PROJ and Postgres are compiled for.  Use as many -arch flags in each of the above exports as is common to these.  It may be i386 and x86_64, but it could also be only x86_64.  If i386 is the only common arch, you should recompile to get at least x86_64.<br>

<div><div></div><div class="h5"><br>
On Jul 17, 2011, at 11:42 AM, Gis Mage wrote:<br>
<br>
> Hi list!<br>
> I'm trying to build postgis from source on a snow leopard machine.<br>
> So I download the 1.5.3 source, configure like this:<br>
><br>
> sudo ./configure --prefix=/opt/postgis --with-pgconfig=/opt/pgsql/bin/pg_config --mandir=/opt/pgsql/man --with-geosconfig=/opt/geos/bin/geos-config --with-projdir=/opt/proj<br>
><br>
> and get a successful result:<br>
><br>
>  PostGIS is now configured for x86_64-apple-darwin10.7.0<br>
><br>
>  -------------- Compiler Info -------------<br>
>   C compiler:           gcc -g -O2<br>
>   C++ compiler:         g++ -g -O2<br>
><br>
>  -------------- Dependencies --------------<br>
>   GEOS config:          /opt/geos/bin/geos-config<br>
>   GEOS version:         3.3.0<br>
>   PostgreSQL config:    /opt/pgsql/bin/pg_config<br>
>   PostgreSQL version:   PostgreSQL 9.1beta3<br>
>   PROJ4 version:        47<br>
>   Libxml2 config:       /usr/bin/xml2-config<br>
>   Libxml2 version:      2.7.3<br>
>   PostGIS debug level:  0<br>
><br>
>  -------- Documentation Generation --------<br>
>   xsltproc:             /usr/bin/xsltproc<br>
>   xsl style sheets:<br>
>   dblatex:<br>
>   convert:<br>
><br>
> Then I do<br>
> sudo make<br>
> And get an error:<br>
><br>
>   "_lwline_free", referenced from:<br>
>       _askml2_inspected_buf in lwgeom_kml.o<br>
>       _askml2_inspected_size in lwgeom_kml.o<br>
> ld: symbol(s) not found for architecture i386<br>
> collect2: ld returned 1 exit status<br>
> lipo: can't open input file: /var/tmp//ccsIJfa2.out (No such file or directory)<br>
> make[1]: *** [<a href="http://postgis-1.5.so" target="_blank">postgis-1.5.so</a>] Error 1<br>
> make: *** [postgis] Error 2<br>
><br>
> So I've checked my /var/tmp dir and I really don't have ccsIJfa2.out file.<br>
> What am I doing wrong here?<br>
><br>
</div></div>> _______________________________________________<br>
> postgis-users mailing list<br>
> <a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
> <a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
<br>
-----<br>
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com><br>
<a href="http://www.kyngchaos.com/" target="_blank">http://www.kyngchaos.com/</a><br>
<br>
"Oh, look, I seem to have fallen down a deep, dark hole.  Now what does that remind me of?  Ah, yes - life."<br>
<br>
- Marvin<br>
<br>
<br>
</blockquote></div><br>