Re: postgresql and Mac OS X

From: Shane Ambler <pgsql(at)Sheeky(dot)Biz>
To: Tom Allison <tom(at)tacocat(dot)net>
Cc: francisco(at)npgsql(dot)org, pgsql <pgsql-general(at)postgresql(dot)org>
Subject: Re: postgresql and Mac OS X
Date: 2008-11-05 16:39:21
Message-ID: 4911CC39.40902@Sheeky.Biz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Allison wrote:

> It confirms what I'm working through.
>
> crt1.o located at /Developer/SDKs/MacOSX10.5.sdk/usr/lib/crt1.o
> crt1.10.5.0 at /Developer/SDKs/MacOSX10.5.sdk/usr/lib/crt1.10.5.o
>
> So I'm trying to find how to get these directories included in the
> compilation. I thought --with-libs and/or --with-includes would have
> helped. But it didn't.
>
> This is what I ran (I'm running this from a script so I can repeat it)
>
>
> --------------------------------------
> cd /Users/tom/src/postgresql-8.3.4
>
> export PATH=$PATH:/Developer/usr/bin/
>
> ./configure \
> --with-libs=/Developer/SDKs/MacOSX10.5.sdk/usr/lib/ \
> --with-includes=/Developer/SDKs/MacOSX10.5.sdk/usr/lib/
>
>
>
> But I'm on the same error...
>

crt1.o is located in usr/lib of the SDK's as far back as 10.1
a clean 10.3 has it at /usr/lib
but a clean 10.5 doesn't
- that's clean as in without dev tools
10.4 with dev tools has a copy at /usr/lib

As others have suggested ensure that the full dev tools are installed
into /usr/bin and so on. And leave the /Developer/usr... stuff for
Apples binaries to use as they have been made to.

If you want to use the SDK's to build a binary for a system version
other than the one you are building on then what you are looking for is
SDKROOT (use export or setenv - not as a configure option)

From Xcode tips (under Build Locations - SDK Path)-
The location of the SDK being used during the build. The product will
built against the headers and libraries located inside the indicated
SDK. This path will be prepended to all search paths, and will be passed
through the environment to the compiler and linker. Normally, this path
is set at the project level via the "Cross-Develop Using Target SDK"
popup in the General tab of the project inspector. [SDKROOT]

NOTE - This is an Apple GCC extension - I don't think it has made it
into the general GCC release.

--

Shane Ambler
pgSQL (at) Sheeky (dot) Biz

Get Sheeky @ http://Sheeky.Biz

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2008-11-05 16:45:02 Re: xlog viewer
Previous Message Rafal Pietrak 2008-11-05 16:20:20 Re: INSERT .... RETURNING