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

William Kyngesburye woklist at kyngchaos.com
Wed Sep 14 12:12:14 PDT 2011


Just point --pgconfig to the Lion postgres.

I know Postgres compiles with the Lion llvm.

Now that I think about it more, you should leave out the MACOSX_DEPLOYMENT_TARGET export.  I just tried Postgis (with my Postgres) and it compiles.

The Postgis makefiles themselves don't need those env exports, it's the Postgres makefile fragments that it includes that do.

On Sep 14, 2011, at 12:50 PM, Jerry Carter wrote:

> This does not work.  There are at least two major variables which have changed in that time.  First, the GCC version has changed.  Second, PostgreSQL is now shipped with Lion Server and may have a different pgxs.mk environment for compilation.
> 
> It looks like environment settings defined before running './configure' are picked up everywhere except for the GNUmakefile postgis target.  Still digging on that.
> 
> -=- Jerry
> 
> 
> On Sep 14, 2011, at 12:57 PM, William Kyngesburye wrote:
> 
>> 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
>> 
>> 
> 
> _______________________________________________
> 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/

Earth: "Mostly harmless"

- revised entry in the HitchHiker's Guide to the Galaxy


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

All generalizations are dangerous, even this one.





More information about the postgis-users mailing list