From: | Keary Suska <hierophant(at)pcisys(dot)net> |
---|---|
To: | Postgres-Interfaces <pgsql-interfaces(at)postgresql(dot)org> |
Subject: | Re: URGENT: Undefined Symbols Using XCode 2.5 on Mac OS X 10.5 |
Date: | 2007-12-26 17:32:22 |
Message-ID: | C397DE36.1B49B%hierophant@pcisys.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
on 12/24/07 4:16 PM, neilt(at)neiltiffin(dot)com purportedly said:
> To find out if the symbol is in the library use the following command "nm -A
> libpq.a | grep close". Of course you will need to the in the same dir as
> libpq or use an absolute reference. I get the following:
>
> Macintosh:lib$ nm -A libpq.a | grep close
> libpq.a:fe-auth.o: U _krb5_cc_close
> libpq.a:fe-connect.o: U _close
> libpq.a:fe-connect.o: 000004dc t _closePGconn
> libpq.a:fe-connect.o: U _fclose
> libpq.a:fe-connect.o: U _pqsecure_close
> libpq.a:fe-misc.o: U _close
> libpq.a:fe-misc.o: U _pqsecure_close
> libpq.a:fe-print.o: U _pclose
> libpq.a:fe-lobj.o: U _close
> libpq.a:fe-lobj.o: 000009fa T _lo_close
> libpq.a:fe-protocol3.o: U _close
> libpq.a:fe-protocol3.o: U _pqsecure_close
> libpq.a:fe-secure.o: 000000a1 t _close_SSL
> libpq.a:fe-secure.o: U _fclose
> libpq.a:fe-secure.o: 000000f6 T _pqsecure_close
>
> Now here you will see there is no "_close" related to "fe-secure.o". Should
> you be using "_close_SSL" or "_fclose"? For my projects using xCode I link
> against libpq.dylib. Not sure if this makes any difference.
I figured out to use -isysroot and the CC variable to force compiling
against the Mac OS X 104u. The compile doesn't complete successfully, but it
does (apparently) build a fully functional libpq that I can use sans any
linker errors. This will work for now.
Thanks for your help,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
From | Date | Subject | |
---|---|---|---|
Next Message | Jeff Davis | 2008-01-03 22:40:47 | new ruby-pg release: support for ruby 1.9 |
Previous Message | Neil Tiffin | 2007-12-24 23:16:57 | Re: URGENT: Undefined Symbols Using XCode 2.5 on Mac OS X 10.5 |