Re: Mac OS X 10.6 - libpq.dylib vs. libpq.a and PQisthreadsafe()

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: David McKeone <david(at)artsman(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Mac OS X 10.6 - libpq.dylib vs. libpq.a and PQisthreadsafe()
Date: 2011-10-17 15:23:19
Message-ID: 14108.1318864999@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

David McKeone <david(at)artsman(dot)com> writes:
> I've been getting acquainted with the C interface for libpq and have run into an issue with trying to link to the dynamic libpq while still getting thread safety. I have tried the following by compiling the 9.1 source with the --enable-thread-safety flag and I've tried the libpq libraries provided in the EnterpriseDB build of 9.1. All of this is on Mac OS X 10.6.8 with XCode 4.0.2.

Hm, is there a libpq dylib in /usr/lib? If so, maybe it's capturing the
reference? "otool -L main" would be informative about which dylib is
actually getting called, I think. If it's not what you expected, the
lack of a -L switch in your link command is probably the reason.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Steve Crawford 2011-10-17 15:25:42 Re: 9.1 got really fast ;)
Previous Message Mark Keisler 2011-10-17 15:20:02 Re: Trying to use binary replication - from tutorial