Package is missing several dependencies

Bug #1772747 reported by Adam Novak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
curl (Ubuntu)
New
Undecided
Unassigned

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)

Revision history for this message
Adam Novak (interfect) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.