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

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

From
Martin Pitt
Date:
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=3D-4.9 required=3D4.0 tests=3DBAYES_00 autolearn=3D=
ham=20
    version=3D2.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=3Den_AU, LC_CTYPE=3Den_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, hea=
der=20

-- no debconf information



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

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

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

From
Peter Eisentraut
Date:
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/

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

From
Martin Pitt
Date:
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

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