Re: apr integration

From: Bob Rossi <bob_rossi(at)cox(dot)net>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: apr integration
Date: 2008-05-20 00:04:34
Message-ID: 20080520000434.GE19723@brasko.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Tue, May 20, 2008 at 12:01:32AM +0200, Peter Eisentraut wrote:
> Am Montag, 19. Mai 2008 schrieb Bob Rossi:
> > Apr allows the use of the wonderful postgresql db. It has an autotools
> > test that checks to see if it can link against -lpq. However, checking
> > against just -lpq is not always enough. On linux, sometimes you need
> > '-lpq -lcrypt'. On windows, sometimes you need '-lpq -lSecur32 -lws_32'.
>
> I don't know about Windows, but on Linux -lpq should always be enough (unless
> you are linking statically). Everything else would seem to be a bug.

Yup, linking statically.

> > So, my question is, how does one figure out the required libraries? I
> > suggested pg_config --libs on the apr mailing list, and someone had this
> > to say:
> > This returns libraries that were used to build PostgreSQL, not the ones
> > that are required to link to -lpq. So, I'm just worried that it is
> > inaccurate.
> >
> > Could you please comment on this?
>
> I suppose you got the above information from Tollef Fog Heen, after I
> discussed the issue with him in the Debian BTS. I agree, however, the the
> purpose of the pg_config options may be confusing or badly documented.

No, well maybe. I got this information from an apr developer. I just
forwarded his concern here, to see if his concern made sense.

Bob Rossi

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2008-05-20 00:30:46 Re: apr integration
Previous Message Peter Eisentraut 2008-05-19 22:01:32 Re: apr integration