[Bug 1772747] [NEW] Package is missing several dependencies

Adam Novak 1772747 at bugs.launchpad.net
Tue May 22 21:00:32 UTC 2018


Public bug reported:

libcurl4-gnutls-dev provides my /usr/bin/curl-config and the static
library (symlink) /usr/lib/x86_64-linux-gnu/libcurl.a -> libcurl-
gnutls.a. I am trying to link statically against that static library.

The right way to do this seems to be to run "curl-config --static-libs"
and forward the result along to my linker. But doing that causes the
linker to complain about several missing libraries.

The flags I get are:

-Wl,-Bstatic -lcurl -Wl,-Bdynamic -Wl,-Bsymbolic-functions -Wl,-z,relro
-Wl,-z,now -Wl,--as-needed -lnghttp2 -lidn2 -lrtmp -lpsl -lnettle
-lgnutls -llber -lldap -llber -lz

And the (unique) missing libraries are:

/usr/bin/x86_64-linux-gnu-ld: cannot find -lnghttp2
/usr/bin/x86_64-linux-gnu-ld: cannot find -lidn2
/usr/bin/x86_64-linux-gnu-ld: cannot find -lrtmp
/usr/bin/x86_64-linux-gnu-ld: cannot find -lpsl
/usr/bin/x86_64-linux-gnu-ld: cannot find -lnettle
/usr/bin/x86_64-linux-gnu-ld: cannot find -lgnutls
/usr/bin/x86_64-linux-gnu-ld: cannot find -llber
/usr/bin/x86_64-linux-gnu-ld: cannot find -lldap

So pretty much all the interesting libraries are missing.

The packages that provide these are:

libnghttp2-dev provides libnghttp2.a
libidn2-dev provides libidn2.a
librtmp-dev provides librtmp.a
libpsl-dev provides libpsl.a
nettle-dev provides libnettle.a
libgnutls28-dev (in Bionic) and other packages in older releases provide libgnutls.a
libldap2-dev provides liblber.a and libldap.a

All of these packages need to be dependencies of libcurl4-gnutls-dev, so
that libcurl.a can be used.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: libcurl4-gnutls-dev 7.58.0-2ubuntu3.1
ProcVersionSignature: User Name 4.15.0-1009.9-azure 4.15.17
Uname: Linux 4.15.0-1009-azure x86_64
ApportVersion: 2.20.9-0ubuntu7
Architecture: amd64
Date: Tue May 22 20:41:00 2018
SourcePackage: curl
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: curl (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug bionic uec-images

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to curl in Ubuntu.
https://bugs.launchpad.net/bugs/1772747

Title:
  Package is missing several dependencies

Status in curl package in Ubuntu:
  New

Bug description:
  libcurl4-gnutls-dev provides my /usr/bin/curl-config and the static
  library (symlink) /usr/lib/x86_64-linux-gnu/libcurl.a -> libcurl-
  gnutls.a. I am trying to link statically against that static library.

  The right way to do this seems to be to run "curl-config --static-
  libs" and forward the result along to my linker. But doing that causes
  the linker to complain about several missing libraries.

  The flags I get are:

  -Wl,-Bstatic -lcurl -Wl,-Bdynamic -Wl,-Bsymbolic-functions
  -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -lnghttp2 -lidn2 -lrtmp -lpsl
  -lnettle -lgnutls -llber -lldap -llber -lz

  And the (unique) missing libraries are:

  /usr/bin/x86_64-linux-gnu-ld: cannot find -lnghttp2
  /usr/bin/x86_64-linux-gnu-ld: cannot find -lidn2
  /usr/bin/x86_64-linux-gnu-ld: cannot find -lrtmp
  /usr/bin/x86_64-linux-gnu-ld: cannot find -lpsl
  /usr/bin/x86_64-linux-gnu-ld: cannot find -lnettle
  /usr/bin/x86_64-linux-gnu-ld: cannot find -lgnutls
  /usr/bin/x86_64-linux-gnu-ld: cannot find -llber
  /usr/bin/x86_64-linux-gnu-ld: cannot find -lldap

  So pretty much all the interesting libraries are missing.

  The packages that provide these are:

  libnghttp2-dev provides libnghttp2.a
  libidn2-dev provides libidn2.a
  librtmp-dev provides librtmp.a
  libpsl-dev provides libpsl.a
  nettle-dev provides libnettle.a
  libgnutls28-dev (in Bionic) and other packages in older releases provide libgnutls.a
  libldap2-dev provides liblber.a and libldap.a

  All of these packages need to be dependencies of libcurl4-gnutls-dev,
  so that libcurl.a can be used.

  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: libcurl4-gnutls-dev 7.58.0-2ubuntu3.1
  ProcVersionSignature: User Name 4.15.0-1009.9-azure 4.15.17
  Uname: Linux 4.15.0-1009-azure x86_64
  ApportVersion: 2.20.9-0ubuntu7
  Architecture: amd64
  Date: Tue May 22 20:41:00 2018
  SourcePackage: curl
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/curl/+bug/1772747/+subscriptions



More information about the foundations-bugs mailing list