Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old November 23rd, 2005, 02:22 AM
Joe Lester
Guest
 
Posts: n/a
Default Undefined symbols: _poll

I'm just moved my Postgres client project from Mac 10.2.8 to 10.3.5.
It's an Objective-C program that links to libpq.a (the header file is
libpq-fe.h). However, when I try to compile now I get the following
linking error:

ld: Undefined symbols: _poll

Does this sound familiar to anyone? My guess is that _poll is
referenced somewhere in libpq.a. Anyone have any ideas on how to get
the linking happening on Mac OS 10.3.5?

Thanks!

Joe



---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

  #2  
Old November 23rd, 2005, 02:22 AM
Tom Lane
Guest
 
Posts: n/a
Default Re: Undefined symbols: _poll

Joe Lester <joe_lester@sweetwater.com> writes:[color=blue]
> I'm just moved my Postgres client project from Mac 10.2.8 to 10.3.5.
> It's an Objective-C program that links to libpq.a (the header file is
> libpq-fe.h). However, when I try to compile now I get the following
> linking error:[/color]
[color=blue]
> ld: Undefined symbols: _poll[/color]

poll() is a system function that seems to be in
/usr/lib/libSystem.B.dylib on my 10.3.5 machine.
Couldn't say why this isn't included automatically
in your program --- we certainly aren't doing anything
to explicitly link it into the standard PG programs
that use libpq.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

  #3  
Old November 23rd, 2005, 02:22 AM
David Helgason
Guest
 
Posts: n/a
Default Re: Undefined symbols: _poll

On 30. sep 2004, at 21:35, Joe Lester wrote:[color=blue]
> I'm just moved my Postgres client project from Mac 10.2.8 to 10.3.5.
> It's an Objective-C program that links to libpq.a (the header file is
> libpq-fe.h). However, when I try to compile now I get the following
> linking error:
>
> ld: Undefined symbols: _poll
>
> Does this sound familiar to anyone? My guess is that _poll is
> referenced somewhere in libpq.a. Anyone have any ideas on how to get
> the linking happening on Mac OS 10.3.5?[/color]

We had the same problem. In our case the trick was to compile libpq on
OS X 10.3. The poll function was added in 10.3 (it's based on the
select function, but at least it exists).

Reading the description of your problem it sounds different.

d.
--
David Helgason,
Business Development et al.,
Over the Edge I/S (http://otee.dk)
Direct line +45 2620 0663
Main line +45 3264 5049


---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles