[postgis-users] OSX Server (Lion) linking failures on i386 architecture

William Kyngesburye woklist at kyngchaos.com
Wed Sep 14 09:57:29 PDT 2011


2 thoughts:

• See my postgis build instructions.

http://www.kyngchaos.com/macosx/build/postgis

The Snow Leopard instructions should work for Lion.

• I have ready-made packages for Postgres and PostGIS.

On Sep 14, 2011, at 11:16 AM, Jerry Carter wrote:

> 
> I'm trying to compile PostGIS 1.5.3 and getting tripped up with 32 vs. 64 bit.  Following the normal process,
> 
> 	cd postgis-1.5.3
> 	./configure
> 	make
> 
> compilation proceeds but the link fails.
> 
> 	ld: warning: ignoring file ../liblwgeom/liblwgeom.a, file was built for archive which is not the architecture being linked (i386)
> 
> On the linking step, I noticed that the architecture flags specify both 32 and 64 bit, i.e. "-arch x86_64 -arch i386", but can't figure out how to disable 32 bit.  I've already rebuilt Proj.4 4.7.0 and GEOS 3.2.2 as hybrid 32+64 bit libraries.
> 
> Any suggestions to either disable 32-bit entirely for PostGIS or to get the makefiles to build liblwgeom as a hybrid?  Thanks much.
> 
> -=- Jerry
> 
> P.S. I am using GCC version 'i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1' which is shipped with Xcode 4.2.
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

Theory of the Universe

There is a theory which states that if ever anyone discovers exactly what the universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarrely inexplicable.  There is another theory which states that this has already happened.

-Hitchhiker's Guide to the Galaxy 2nd season intro





More information about the postgis-users mailing list