pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedURGENT: Undefined Symbols Using XCode 2.5 on Mac OS X 10.5
7+ messages / 3 participants
[nested] [flat]
* URGENT: Undefined Symbols Using XCode 2.5 on Mac OS X 10.5
@ 2007-12-23 03:41 Keary Suska <hierophant@pcisys.net>
0 siblings, 1 reply; 7+ messages in thread
From: Keary Suska @ 2007-12-23 03:41 UTC (permalink / raw)
To: pgsql-interfaces
I ha a perfectly functioning libpq before I upgraded my computer but for
some reason I am now getting undefined symbol errors in libpq.a:
AirBase:0: /Users/aksuska/Projects/FFSEmploy/AirBase
Project/AirBase/libpq.a(fe-secure.o) reference to undefined
_pthread_sigmask$UNIX2003
AirBase:0: _close$UNIX2003
AirBase:0: _fcntl$UNIX2003
AirBase:0: _fputs$UNIX2003
AirBase:0: _poll$UNIX2003
AirBase:0: _SSL_CTX_set_client_cert_cb
AirBase:0: _pthread_sigmask$UNIX2003
AirBase:0: _sigwait$UNIX2003
AirBase:0: /Users/aksuska/Projects/FFSEmploy/AirBase
Project/AirBase/libpq.a(fe-connect.o) reference to undefined _close$UNIX2003
AirBase:0: /Users/aksuska/Projects/FFSEmploy/AirBase
Project/AirBase/libpq.a(fe-connect.o) reference to undefined _fcntl$UNIX2003
AirBase:0: /Users/aksuska/Projects/FFSEmploy/AirBase
Project/AirBase/libpq.a(fe-connect.o) reference to undefined _fputs$UNIX2003
AirBase:0: /Users/aksuska/Projects/FFSEmploy/AirBase
Project/AirBase/libpq.a(noblock.o) reference to undefined _fcntl$UNIX2003
AirBase:0: /Users/aksuska/Projects/FFSEmploy/AirBase
Project/AirBase/libpq.a(fe-protocol3.o) reference to undefined
_close$UNIX2003
AirBase:0: /Users/aksuska/Projects/FFSEmploy/AirBase
Project/AirBase/libpq.a(fe-misc.o) reference to undefined _close$UNIX2003
AirBase:0: /Users/aksuska/Projects/FFSEmploy/AirBase
Project/AirBase/libpq.a(fe-misc.o) reference to undefined _poll$UNIX2003
AirBase:0: /Users/aksuska/Projects/FFSEmploy/AirBase
Project/AirBase/libpq.a(fe-secure.o) reference to undefined
_SSL_CTX_set_client_cert_cb
AirBase:0:
/Developer/Xcode2.5/usr/bin/../libexec/gcc/i686-apple-darwin8/4.0.1/ld:
Undefined symbols:
AirBase:0: /Users/aksuska/Projects/FFSEmploy/AirBase
Project/AirBase/libpq.a(fe-secure.o) reference to undefined
_sigwait$UNIX2003
Some googling around seem to imply that the problem is due to my project
linking against the 10.4u SDK, while libpq is linked against 10.5.
I tried to recompile libpq against the 10.4u, but configure seems to insist
on using 10.5 regardless.
Please help--I have a mission-critical project that is now dead in the
water--at least unless I decide to use a different DB back-end...
Best,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: URGENT: Undefined Symbols Using XCode 2.5 on Mac OS X 10.5
@ 2007-12-23 13:16 Jeroen T. Vermeulen <jtv@xs4all.nl>
0 siblings, 1 reply; 7+ messages in thread
From: Jeroen T. Vermeulen @ 2007-12-23 13:16 UTC (permalink / raw)
To: Keary Suska <hierophant@pcisys.net>; +Cc: pgsql-interfaces
On Sun, December 23, 2007 10:41, Keary Suska wrote:
> I ha a perfectly functioning libpq before I upgraded my computer but for
> some reason I am now getting undefined symbol errors in libpq.a:
>
> AirBase:0: /Users/aksuska/Projects/FFSEmploy/AirBase
> Project/AirBase/libpq.a(fe-secure.o) reference to undefined
> _pthread_sigmask$UNIX2003
> AirBase:0: _close$UNIX2003
> AirBase:0: _fcntl$UNIX2003
[...]
This sounds more like a generic linking problem specific to your system
than a problem with postgres as such. Your best bet may be to ask on
platform-specific forums.
That said, can't you build postgres from source and use the libpq you get?
Jeroen
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: URGENT: Undefined Symbols Using XCode 2.5 on Mac OS X 10.5
@ 2007-12-23 15:03 Neil Tiffin <neilt@neiltiffin.com>
parent: Keary Suska <hierophant@pcisys.net>
0 siblings, 1 reply; 7+ messages in thread
From: Neil Tiffin @ 2007-12-23 15:03 UTC (permalink / raw)
To: Keary Suska <hierophant@pcisys.net>; +Cc: pgsql-interfaces
Upgrade to Xcode 3.0, the default in 10.5 (its on the install disk as
a separate install). I have successfully compiled postgresql on 10.5
with no problem (using fink).
Neil
On Dec 22, 2007, at 9:41 PM, Keary Suska wrote:
> I ha a perfectly functioning libpq before I upgraded my computer but
> for
> some reason I am now getting undefined symbol errors in libpq.a:
>
> AirBase:0: /Users/aksuska/Projects/FFSEmploy/AirBase
> Project/AirBase/libpq.a(fe-secure.o) reference to undefined
> _pthread_sigmask$UNIX2003
> AirBase:0: _close$UNIX2003
> AirBase:0: _fcntl$UNIX2003
> AirBase:0: _fputs$UNIX2003
> AirBase:0: _poll$UNIX2003
> AirBase:0: _SSL_CTX_set_client_cert_cb
> AirBase:0: _pthread_sigmask$UNIX2003
> AirBase:0: _sigwait$UNIX2003
> AirBase:0: /Users/aksuska/Projects/FFSEmploy/AirBase
> Project/AirBase/libpq.a(fe-connect.o) reference to undefined _close
> $UNIX2003
> AirBase:0: /Users/aksuska/Projects/FFSEmploy/AirBase
> Project/AirBase/libpq.a(fe-connect.o) reference to undefined _fcntl
> $UNIX2003
> AirBase:0: /Users/aksuska/Projects/FFSEmploy/AirBase
> Project/AirBase/libpq.a(fe-connect.o) reference to undefined _fputs
> $UNIX2003
> AirBase:0: /Users/aksuska/Projects/FFSEmploy/AirBase
> Project/AirBase/libpq.a(noblock.o) reference to undefined _fcntl
> $UNIX2003
> AirBase:0: /Users/aksuska/Projects/FFSEmploy/AirBase
> Project/AirBase/libpq.a(fe-protocol3.o) reference to undefined
> _close$UNIX2003
> AirBase:0: /Users/aksuska/Projects/FFSEmploy/AirBase
> Project/AirBase/libpq.a(fe-misc.o) reference to undefined _close
> $UNIX2003
> AirBase:0: /Users/aksuska/Projects/FFSEmploy/AirBase
> Project/AirBase/libpq.a(fe-misc.o) reference to undefined _poll
> $UNIX2003
> AirBase:0: /Users/aksuska/Projects/FFSEmploy/AirBase
> Project/AirBase/libpq.a(fe-secure.o) reference to undefined
> _SSL_CTX_set_client_cert_cb
> AirBase:0:
> /Developer/Xcode2.5/usr/bin/../libexec/gcc/i686-apple-darwin8/4.0.1/
> ld:
> Undefined symbols:
> AirBase:0: /Users/aksuska/Projects/FFSEmploy/AirBase
> Project/AirBase/libpq.a(fe-secure.o) reference to undefined
> _sigwait$UNIX2003
>
> Some googling around seem to imply that the problem is due to my
> project
> linking against the 10.4u SDK, while libpq is linked against 10.5.
>
> I tried to recompile libpq against the 10.4u, but configure seems to
> insist
> on using 10.5 regardless.
>
> Please help--I have a mission-critical project that is now dead in the
> water--at least unless I decide to use a different DB back-end...
>
> Best,
>
> Keary Suska
> Esoteritech, Inc.
> "Demystifying technology for your home or business"
>
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: URGENT: Undefined Symbols Using XCode 2.5 on Mac OS X 10.5
@ 2007-12-24 18:35 Keary Suska <hierophant@pcisys.net>
parent: Jeroen T. Vermeulen <jtv@xs4all.nl>
0 siblings, 1 reply; 7+ messages in thread
From: Keary Suska @ 2007-12-24 18:35 UTC (permalink / raw)
To: pgsql-interfaces
on 12/23/07 6:16 AM, jtv@xs4all.nl purportedly said:
>> I ha a perfectly functioning libpq before I upgraded my computer but for
>> some reason I am now getting undefined symbol errors in libpq.a:
>>
>> AirBase:0: /Users/aksuska/Projects/FFSEmploy/AirBase
>> Project/AirBase/libpq.a(fe-secure.o) reference to undefined
>> _pthread_sigmask$UNIX2003
>> AirBase:0: _close$UNIX2003
>> AirBase:0: _fcntl$UNIX2003
> [...]
>
> This sounds more like a generic linking problem specific to your system
> than a problem with postgres as such. Your best bet may be to ask on
> platform-specific forums.
>
> That said, can't you build postgres from source and use the libpq you get?
Originally I was using a MacPorts install, but I compiled from source and
used that lipq.a, but without any difference in result.
Best,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: URGENT: Undefined Symbols Using XCode 2.5 on Mac OS X 10.5
@ 2007-12-24 18:38 Keary Suska <hierophant@pcisys.net>
parent: Neil Tiffin <neilt@neiltiffin.com>
0 siblings, 0 replies; 7+ messages in thread
From: Keary Suska @ 2007-12-24 18:38 UTC (permalink / raw)
To: pgsql-interfaces
on 12/23/07 8:03 AM, neilt@neiltiffin.com purportedly said:
> Upgrade to Xcode 3.0, the default in 10.5 (its on the install disk as
> a separate install). I have successfully compiled postgresql on 10.5
> with no problem (using fink).
I can compile postgresql without a problem. The issue is when I use libpq in
my app. For grins, I compiled my app under XCode 3 and it actually doubled
or tripled the number of undefined symbols I get. Go figure.
Best,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: URGENT: Undefined Symbols Using XCode 2.5 on Mac OS X 10.5
@ 2007-12-24 23:16 Neil Tiffin <neilt@neiltiffin.com>
parent: Keary Suska <hierophant@pcisys.net>
0 siblings, 1 reply; 7+ messages in thread
From: Neil Tiffin @ 2007-12-24 23:16 UTC (permalink / raw)
To: Keary Suska <hierophant@pcisys.net>; +Cc: pgsql-interfaces
On Dec 24, 2007, at 12:35 PM, Keary Suska wrote:
> on 12/23/07 6:16 AM, jtv@xs4all.nl purportedly said:
>
>>> I ha a perfectly functioning libpq before I upgraded my computer
>>> but for
>>> some reason I am now getting undefined symbol errors in libpq.a:
>>>
>>> AirBase:0: /Users/aksuska/Projects/FFSEmploy/AirBase
>>> Project/AirBase/libpq.a(fe-secure.o) reference to undefined
>>> _pthread_sigmask$UNIX2003
>>> AirBase:0: _close$UNIX2003
>>> AirBase:0: _fcntl$UNIX2003
>> [...]
>>
>> This sounds more like a generic linking problem specific to your
>> system
>> than a problem with postgres as such. Your best bet may be to ask on
>> platform-specific forums.
>>
>> That said, can't you build postgres from source and use the libpq
>> you get?
>
> Originally I was using a MacPorts install, but I compiled from
> source and
> used that lipq.a, but without any difference in result.
>
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.
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: URGENT: Undefined Symbols Using XCode 2.5 on Mac OS X 10.5
@ 2007-12-26 17:32 Keary Suska <hierophant@pcisys.net>
parent: Neil Tiffin <neilt@neiltiffin.com>
0 siblings, 0 replies; 7+ messages in thread
From: Keary Suska @ 2007-12-26 17:32 UTC (permalink / raw)
To: pgsql-interfaces
on 12/24/07 4:16 PM, neilt@neiltiffin.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"
^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2007-12-26 17:32 UTC | newest]
Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-12-23 03:41 URGENT: Undefined Symbols Using XCode 2.5 on Mac OS X 10.5 Keary Suska <hierophant@pcisys.net>
2007-12-23 15:03 ` Neil Tiffin <neilt@neiltiffin.com>
2007-12-24 18:38 ` Keary Suska <hierophant@pcisys.net>
2007-12-23 13:16 Re: URGENT: Undefined Symbols Using XCode 2.5 on Mac OS X 10.5 Jeroen T. Vermeulen <jtv@xs4all.nl>
2007-12-24 18:35 ` Keary Suska <hierophant@pcisys.net>
2007-12-24 23:16 ` Neil Tiffin <neilt@neiltiffin.com>
2007-12-26 17:32 ` Keary Suska <hierophant@pcisys.net>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox