Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 05 Oct 2018 12:48:26 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 231979] security/gnutls: broken dependency on libdl.so from libgnutls.so
Message-ID:  <bug-231979-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231979

            Bug ID: 231979
           Summary: security/gnutls: broken dependency on libdl.so from
                    libgnutls.so
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: tijl@FreeBSD.org
          Reporter: dan-freebsd@berrange.com
             Flags: maintainer-feedback?(tijl@FreeBSD.org)
          Assignee: tijl@FreeBSD.org

My FreeBSD 11 guest gets nightly port updates and the new gnutls update pul=
led
in today appears seriously broken, in that libgnutls.so gained an ELF linker
dependency on libdl.so but the later does not exist.

IIUC there is no libdl.so needed for FreeBSD hosts, so the dep looks bogus

Note ld reports "not found" against libdl

$ ldd /usr/local/lib/libgnutls.so=20=20=20=20=20=20=20=20=20=20
/usr/local/lib/libgnutls.so:
        libz.so.6 =3D> /lib/libz.so.6 (0x801375000)
        libp11-kit.so.0 =3D> /usr/local/lib/libp11-kit.so.0 (0x80158e000)
        libunistring.so.2 =3D> /usr/local/lib/libunistring.so.2 (0x8018af00=
0)
        libdl.so.1 =3D> not found (0)
        libtasn1.so.6 =3D> /usr/local/lib/libtasn1.so.6 (0x801c60000)
        libnettle.so.6 =3D> /usr/local/lib/libnettle.so.6 (0x801e74000)
        libhogweed.so.4 =3D> /usr/local/lib/libhogweed.so.4 (0x8020ac000)
        libgmp.so.10 =3D> /usr/local/lib/libgmp.so.10 (0x8022e1000)
        libintl.so.8 =3D> /usr/local/lib/libintl.so.8 (0x802561000)
        libidn2.so.0 =3D> /usr/local/lib/libidn2.so.0 (0x80276c000)
        libc.so.7 =3D> /lib/libc.so.7 (0x800824000)
        libffi.so.6 =3D> /usr/local/lib/libffi.so.6 (0x80298a000)
        libthr.so.3 =3D> /lib/libthr.so.3 (0x802b91000)

This breaks ability to build against gnutls

$ cat demo.c
#include <gnutls/gnutls.h>
int main(int argc, char **argv)
{ gnutls_global_init();}

$ clang -I /usr/local/include -o demo -L/usr/local/lib -lgnutls demo.c
/usr/bin/ld: warning: libdl.so.1, needed by /usr/local/lib/libgnutls.so, not
found (try using -rpath or -rpath-link)

The breaks apps using gnutls

$ vim
Shared object "libdl.so.1" not found, required by "vim"

$ certtool=20
Shared object "libdl.so.1" not found, required by "certtool"


Here is the installed port info:

$ pkg info gnutls
gnutls-3.5.19
Name           : gnutls
Version        : 3.5.19
Installed on   : Fri Oct  5 00:04:41 2018 UTC
Origin         : security/gnutls
Architecture   : FreeBSD:11:amd64
Prefix         : /usr/local
Categories     : security net
Licenses       : GPLv3, LGPL21
Maintainer     : tijl@FreeBSD.org
WWW            : http://www.gnutls.org/
Comment        : GNU Transport Layer Security library
Options        :
        DANE           : off
        DOCS           : on
        EXAMPLES       : on
        IDN            : on
        NLS            : on
        P11KIT         : on
        TPM            : on
        ZLIB           : on
Shared Libs required:
        libunistring.so.2
        libintl.so.8
        libgmp.so.10
        libp11-kit.so.0
        libidn2.so.0
        libhogweed.so.4
        libnettle.so.6
        libtasn1.so.6
Shared Libs provided:
        libgnutlsxx.so.28
        libgnutls.so.30
Annotations    :
        FreeBSD_version: 1102000
        cpe            : cpe:2.3:a:gnu:gnutls:3.5.19:::::freebsd11:x64
        repo_type      : binary
        repository     : FreeBSD
Flat size      : 6.94MiB



As a note, the FreeBSD 10 build of gnutls 3.5.19 is working normally and
doesn't have this libdl.so dependancy. Only the FreeBSD 11 build appears
affected.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-231979-7788>