From: | Bob Henkel <bob(dot)henkel(at)gmail(dot)com> |
---|---|
To: | Jan Otto <asche(at)me(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Getting iPhone Simulator App to compile with libpq on Snow Leopard |
Date: | 2009-11-09 15:33:36 |
Message-ID: | fedea56b0911090733k2b2138b3kb83198252beff531@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Thanks Jan that was the issue. The SDK that my app was using for the
simulator build was was 10.5 while the my compile of libpq was using
10.6. Once I forced libpq to compile with 10.5 all my problems went
away. Thanks for your help I appreciate it.
On Mon, Nov 9, 2009 at 8:40 AM, Jan Otto <asche(at)me(dot)com> wrote:
> hi bob,
>
>> Undefined symbols:
>> "_fopen$UNIX2003", referenced from:
>> _parseServiceInfo in libpq.i386(fe-connect.o)
>> _PasswordFromFile in libpq.i386(fe-connect.o)
>> ld: symbol(s) not found
>> collect2: ld returned 1 exit status
>>
>> Any help would be greatly appreciated.
>
> hm, fopen is a standard c (libSystem) function. make shure you
> have linked your library (libpq) against the same versions of
> standard libraries as you try with your iphone-app.
>
> check your linker options, specially -isysroot.
>
> you can check later to which libSystem your lib or app was built
> with: otool -L <LibOrApp>
>
> regards, jan otto
>
From | Date | Subject | |
---|---|---|---|
Next Message | Adrian Klaver | 2009-11-09 15:37:27 | Re: I can't seem to put the right combination of magic into the pg_hba and pg_ident files. |
Previous Message | Albe Laurenz | 2009-11-09 15:32:04 | Re: PostgreSQL 8.3.8 on AIX5.3 : compilation failed |