Re: Mac OS 10.4/10.5 compile issues

From: Israel Brewster <israel(at)frontierflying(dot)com>
To: Benjamin Reed <rangerrick(at)gmail(dot)com>
Cc: pgsql-ports(at)postgresql(dot)org
Subject: Re: Mac OS 10.4/10.5 compile issues
Date: 2008-02-06 20:50:34
Message-ID: 93F96743-D96B-470C-BC68-FD239F450BCA@frontierflying.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports

On Feb 6, 2008, at 11:02 AM, Benjamin Reed wrote:

> On Feb 6, 2008 2:36 PM, Israel Brewster <israel(at)frontierflying(dot)com>
> wrote:
>
>> dyld: lazy symbol binding failed: Symbol not found: _fcntl$UNIX2003
>> Referenced from: /Volumes/MIS/AssetTracker/AssetTracker.app/
>> Contents/MacOS/../Frameworks/libpq.5.dylib
>> Expected in: /usr/lib/libSystem.B.dylib
>
> This means you linked against the 10.5 version of libSystem.
>
>> library that apparently exists on 10.5, but not 10.4. I figured
>> that a
>> static build of libpq should fix this problem, so I did a make
>
> There's no such thing as a fully-static build on OSX (well, not
> without doing some hackery when linking). You end up with a static
> libpq, but libSystem is dynamic-only.
>
> The way to fix this is to add "-isysroot
> /Developer/SDKs/MacOSX10.4u.sdk" to your flags, to get the 10.4 SDK.

Thanks for the info, that looks like exactly what I was looking for.
Unfortunately, when I try CFLAGS="-O -g -arch i386 -arch ppc -
isysroot /Developer/SDKs/MacOSX10.4u.sdk" ./configure, configure fails
with a "C compiler cannot create executables" error. Is this a
problem with my dev tools install or something? It should be clean, as
I haven't messed with it, but this seems odd.

-----------------------------------------------
Israel Brewster
Computer Support Technician
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
-----------------------------------------------
>
>
> --
> Benjamin Reed a.k.a. Ranger Rick
> Fink, KDE, and Mac OS X development
> http://www.racoonfink.com/

In response to

Responses

Browse pgsql-ports by date

  From Date Subject
Next Message Benjamin Reed 2008-02-06 21:42:23 Re: Mac OS 10.4/10.5 compile issues
Previous Message Benjamin Reed 2008-02-06 20:02:46 Re: Mac OS 10.4/10.5 compile issues