Your message dated Tue, 16 Jul 2013 18:26:58 +0200
with message-id <[email protected]>
and subject line Re: Bug#717073: The libpq-dev package misses some dependencies
has caused the Debian Bug report #717073,
regarding The libpq-dev package misses some dependencies
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
717073: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=717073
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libpq-dev
Version: 9.1.9-0wheezy1
Severity: important

                        Dear reader,

I have just installed libpq-dev on a fresh wheezy install (amd64), and
building against it fails as follows:

$ cc -shared -o pgsql.so pgsql.o   `pkg-config --cflags libSystem` -L
`pg_config --libdir` -Wl,-rpath,`pg_config --libdir` `pg_config --libs`
-lpq
/usr/bin/ld: cannot find -lxslt
/usr/bin/ld: cannot find -lpam
/usr/bin/ld: cannot find -ledit
collect2: error: ld returned 1 exit status
*** Error code 1

Installing the following packages solved the issue:
* libedit-dev
* libpam0g-dev
* libxslt1-dev

FTR the output of `pg_config --libs` is as follows:
-lpgport -lxslt -lxml2 -lpam -lssl -lcrypto -lkrb5 -lcom_err
-lgssapi_krb5 -lz -ledit -lcrypt -ldl -lm
(so it could be more dependencies are required)

I am flagging this bug as "important" since building against libpq is
the main purpose of this package, and simply doesn't work by default.

The following system information doesn't apply for this bug report.

Best,
-- Pierre Pronchery

-- System Information:
Debian Release: 6.0.7
  APT prefers oldstable-updates
  APT policy: (500, 'oldstable-updates'), (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-028stab095.1 (SMP w/1 CPU core)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

--- End Message ---
--- Begin Message ---
> > The real issue might as well be that the output of `pg_config --libs` is
> > wrong: I have just been able to link a program to libpq without libxml2,
> > libxslt or libedit and it runs fine.
> 
> Nope, the real issue is that pg_config is not pkg-config :)
> 
> pg_config --help says
>   --libs                show LIBS value used when PostgreSQL was built
> 
> So it has nothing in common with pkg-config --libs pq (if that would 
> exist) which will tell you which libs are needed to link with libpq.

Nod. pg_config --libs and --cflags should not really be used to link
against libpq. (I agree that it is confusing.)

9.3 will have pkg-config support:

$ pkg-config --libs --cflags libpq
-I/usr/include/postgresql  -lpq

Christoph
-- 
[email protected] | http://www.df7cb.de/

Attachment: signature.asc
Description: Digital signature


--- End Message ---
_______________________________________________
Pkg-postgresql-public mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-postgresql-public

Reply via email to