Fwd: Bug#260350: postgresql-dev: libpq3-config output is woeful - Mailing list pgsql-bugs

From Martin Pitt
Subject Fwd: Bug#260350: postgresql-dev: libpq3-config output is woeful
Date
Msg-id 20040830112608.GA28692@box79162.elkhouse.de
Whole thread Raw
Responses Re: Fwd: Bug#260350: postgresql-dev: libpq3-config output is woeful
List pgsql-bugs
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

pgsql-bugs by date:

Previous
From: Fabien COELHO
Date:
Subject: Re: BUG #1236: still in use tablespaces can be removed
Next
From: Peter Eisentraut
Date:
Subject: Re: Fwd: Bug#260350: postgresql-dev: libpq3-config output is woeful