Bug#632891: missing -lgpg-error in gnutls.pc:Libs.private
Marcin Owsiany
porridge at debian.org
Wed Jul 6 19:38:32 UTC 2011
Package: libgnutls-dev
Version: 2.10.5-2
Severity: normal
It is not possible to staticly link the following sample program while
depending on the information provided by pkg-config, because the pkg-config
file for gnutls only lists -lgcrypt, but not its static dependencies.
root at beczulka:/tmp# cat a.c
#include <gnutls/gnutls.h>
int main(int argc, char **argv)
{
gnutls_session_t session;
gnutls_handshake(session);
}
root at beczulka:/tmp# make a LDFLAGS=-static LDLIBS="`pkg-config --static --libs gnutls` " CFLAGS="`pkg-config --cflags gnutls`" 2>&1|grep 'undefined reference'|cut -d: -f 2-|sort|uniq -c|sort -n
1 undefined reference to `gpg_strsource'
1 (.text+0x1382): more undefined references to `gpg_err_code_from_errno' follow
1 (.text+0x2825): more undefined references to `gpg_err_code_from_errno' follow
1 (.text+0xeb1): more undefined references to `gpg_err_code_from_syserror' follow
9 undefined reference to `gpg_err_code_from_syserror'
11 undefined reference to `gpg_strerror'
21 undefined reference to `gpg_err_code_from_errno'
Now, in current sid the static libgpg-error library is missing (Bug#632889),
but that's probably a different story.
More information about the Pkg-gnutls-maint
mailing list