Fwd: Bug#260350: postgresql-dev: libpq3-config output is woeful

Started by Martin Pittover 21 years ago3 messagesbugs
Jump to latest
#1Martin Pitt
martin@piware.de

Hi PostgreSQL developers!

Some time ago we got the following bug report. Since libpq3-config is
a simple shell script that echo's the required libraries, invoking it
with --cflags does not make much sense. However, -lpq should be added
and the relative library path should be replaced by an absolute
_destination_ path (of the system installation, not in the build
tree).

Thanks a lot in advance and have a nice day!

Martin
----- Forwarded message from Matthew Hawkins <matthew@intology.com.au> -----

Subject: Bug#260350: postgresql-dev: libpq3-config output is woeful
Reply-To: Matthew Hawkins <matthew@intology.com.au>, 260350@bugs.debian.org
From: Matthew Hawkins <matthew@intology.com.au>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Date: Tue, 20 Jul 2004 15:00:14 +1000
X-Spam-Status: No, hits=-4.9 required=4.0 tests=BAYES_00 autolearn=ham
version=2.63

Package: postgresql-dev
Version: 7.4.3-3
Severity: normal

libpq3-config --libs gives:

-L../../../src/port -lssl -lcrypto -lkrb5 -lcrypt -lresolv -lnsl -lpthread

libpq3-config --cflags gives:

-L../../../src/port -lssl -lcrypto -lkrb5 -lcrypt -lresolv -lnsl -lpthread

Note both contain a relative path, the cflags output gives the same as
the libs output, and neither contains -lpq meaning applications will
still fail to link anyway.

Also, static linking appears to not work (unresolved symbols in the
kerberos stuff, even though the app I'm compiling doesn't even need
kerberos - is this related to bug 178214 ?)

-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (990, 'unstable'), (800, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.7-ck5
Locale: LANG=en_AU, LC_CTYPE=en_AU

Versions of packages postgresql-dev depends on:
ii libpq3 7.4.3-3 Shared library libpq.so.3 for Post
ii libssl-dev 0.9.7d-4 SSL development libraries, header

-- no debconf information

----- End forwarded message -----

--
Martin Pitt Debian GNU/Linux Developer
martin@piware.de mpitt@debian.org
http://www.piware.de http://www.debian.org

#2Peter Eisentraut
peter_e@gmx.net
In reply to: Martin Pitt (#1)
Re: Fwd: Bug#260350: postgresql-dev: libpq3-config output is woeful

Am Montag, 30. August 2004 13:26 schrieb Martin Pitt:

Some time ago we got the following bug report. Since libpq3-config is
a simple shell script that echo's the required libraries, invoking it
with --cflags does not make much sense. However, -lpq should be added
and the relative library path should be replaced by an absolute
_destination_ path (of the system installation, not in the build
tree).

PostgreSQL does not provide any libpq3-config program.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

#3Martin Pitt
martin@piware.de
In reply to: Peter Eisentraut (#2)
Re: Fwd: Bug#260350: postgresql-dev: libpq3-config output is woeful

Hi!

On 2004-08-30 14:39 +0200, Peter Eisentraut wrote:

PostgreSQL does not provide any libpq3-config program.

Whoops, sorry! It's a Debian patch I forgot about.

Thanks,

Martin

--
Martin Pitt Debian GNU/Linux Developer
martin@piware.de mpitt@debian.org
http://www.piware.de http://www.debian.org