loupicciano at comcast
Feb 23, 2010, 8:07 AM
Post #5 of 5
Paul, before getting your last email, tried a modification of my PATH env variable in this environment:
Re: dbmail 2.2.15 - want to compile against diferent PostgreSQL libraries
[In reply to]
# export PATH=/usr/local/postgres/8.5-alpha2/bin:$PATH
Pls note the following output from ./configure script:
checking for pg_config... /usr/local/postgres/8.5-alpha2/bin/pg_config
checking PostgreSQL headers... -I/usr/local/postgres/8.5-alpha2/include
checking PostgreSQL libraries... -L/usr/local/postgres/8.5-alpha2/lib -lpq
PGSQL: -L/usr/local/postgres/8.5-alpha2/lib -lpq
Looked pretty good, right? configs and compiles quite nicely.
However, built libs seem to still be linked to wrong PostgreSQL libs (further, this seems to uncover the add'l problem of linking to the wrong SSL and crytp libs - that's next!):
# ldd /usr/local/lib/dbmail/libpgsql.so
libpq.so.4 => /usr/lib/libpq.so.4
libssl.so.0.9.7 => /usr/sfw/lib/libssl.so.0.9.7
libcrypto.so.0.9.7 => /usr/sfw/lib/libcrypto.so.0.9.7
libssl_extra.so.0.9.7 => /usr/sfw/lib/libssl_extra.so.0.9.7
libcrypto_extra.so.0.9.7 => /usr/sfw/lib/libcrypto_extra.so.0.9.7
Yes, the pg_config of the target PostgreSQL does emit all the right paths... However, how do I 'point' to it correctly (other than copying it directly into /usr/bin, where configure is looking for it)? Next, I'll try your suggestion about editing acinclude.m4 and re-running autoreconf -i
More testing to follow. Lou
----- Original Message -----
From: "Paul J Stevens" <paul [at] nfg>
To: "DBMail mailinglist" <dbmail [at] dbmail>
Sent: Tuesday, February 23, 2010 10:15:05 AM GMT -05:00 US/Canada Eastern
Subject: Re: [Dbmail] dbmail 2.2.15 - want to compile against diferent PostgreSQL libraries
Lou Picciano wrote:
> Paul -
> Thanks for getting back. By 'tweaking the path', presumably you are
> suggesting I tweak the PATH variable itself - which I haven't yet tried.
> Will do so and report back. I have not been able to pass any path
> option to the --with-pgsql directive. Should I be able to? If so, to
> what exactly should it point?
As I said, configure simply runs pg_config to find the include files and
libs. No arguments or options. You'll have to edit acinclude.m4 and
re-run autoreconf -i
> I believe, in one of my earlier tests, that I simply moved the pg_config
> for our desired link target into the path .configure searches; this also
> did not work.
Does the pg_config of the target postgres installation return the
correct values for pg_config --includedir and pg_config --libs?
> Yes, we do maintain several PostgreSQL environments; some production,
> others related to our testing of PostgreSQL 8.5-alpha releases.
Paul Stevens paul at nfg.nl
NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31
DBmail mailing list
DBmail [at] dbmail