Bug#830136: libgcrypt20-dev: fails to static link libgcrypt20 due to missing -lgpg-error

vvavrychuk vvavrychuk at gmail.com
Wed Jul 6 11:26:41 UTC 2016


Package: libgcrypt20-dev
Version: 1.6.3-2+deb8u1
Severity: normal

Dear Maintainer,

I have found this when tried to static build qemu. Note that new version of qemu
has workaround for this

https://github.com/qemu/qemu/commit/91bfcdb01d4869aa8f4cb67007827de63b8c2217#diff-e2d5a00791bce9a01f99bc6fd613a39dR2314

To reproduce this compile file

    #include <stdio.h>
    #include <gcrypt.h>
    int main(void)
    {
        if (!gcry_check_version (GCRYPT_VERSION)) {
            printf("libgcrypt version mismatch\n");
            exit(1);
        }
        return 0;
    }

With command

    gcc main.c -static -g $(libgcrypt-config --cflags) $(libgcrypt-config --libs)

Then observe error https://gist.github.com/vvavrychuk/fabe8f8a8033e791f233d02f7946a979


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

Kernel: Linux 4.2.0-41-generic (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect

Versions of packages libgcrypt20-dev depends on:
ii  libc6-dev [libc-dev]  2.19-18+deb8u4
ii  libgcrypt20           1.6.3-2+deb8u1
ii  libgpg-error-dev      1.17-3

libgcrypt20-dev recommends no packages.

Versions of packages libgcrypt20-dev suggests:
pn  libgcrypt20-doc  <none>

-- no debconf information



More information about the Pkg-gnutls-maint mailing list