View Issue Details

IDProjectCategoryView StatusLast Update
0005426gnURL[All Projects] Generalpublic2018-11-10 22:07
ReporterFlorian DoldAssigned ToFlorian Dold 
PriorityhighSeveritymajorReproducibilityalways
Status feedbackResolutionopen 
Summary0005426: libgnurl.m4 needs -lnettle, -lgnutls, etc. to be available for LIBGNURL_CHECK_CONFIG
DescriptionEspecially with guix, this leads to completely unnecessary dependencies for all projects that depend on gnurl.

libcurl does not have this problem, see below (both curl and gnurl installed via guix)


dold@firefly ~$ curl-config --libs
-L/gnu/store/n5lb7f8qqs5k9p90mb4wvahd14shpb0j-curl-7.61.0/lib -lcurl
dold@firefly ~$ gnurl-config --libs
-L/gnu/store/khsd7znf1mvjlxxrvafqmxrfksypbw2k-gnurl-7.61.0/lib -lgnurl -lidn2 -lnettle -lgnutls -lz
TagsNo tags attached.

Activities

lurchi

2018-10-28 14:03

reporter   ~0013295

I have the same problem with the nix package.

Ubuntu had the problem once, too: https://bugs.launchpad.net/ubuntu/+source/curl/+bug/379533

I still haven't figured out, what to do about it.

ng0

2018-10-30 19:09

manager   ~0013300

Okay, I'm looking into it for the next gnurl release or the version after that.

ng0

2018-11-10 21:49

manager   ~0013328

I started looking into this for the 7.62.0 release.
It seems to me as if this is https://github.com/curl/curl/blob/master/docs/KNOWN_BUGS#L348
but weird enough curl should spit out the same on Guix then. Which it doesn't.
So far I managed to clean up at least some inconsistencies I introduced a while back.
Guix on Gentoo, newest build:

/gnu/store/9ygh8w7id994dhiqn34ns6g6kbj4i7rn-gnurl-git-7.61.1-dev/bin/gnurl-config --static-libs
/gnu/store/9ygh8w7id994dhiqn34ns6g6kbj4i7rn-gnurl-git-7.61.1-dev/lib/libgnurl.a -L/gnu/store/fxiwj2wpp11sif613axdax7gmwzsg6kp-zlib-1.2.11/lib -L/gnu/store/lkx3dwlagy5sfcw98248sp007dilhz05-gnutls-dane-3.5.18/lib -L/gnu/store/wxrprxdxs0xys5a2wg5hs4x8kcm9366k-libidn2-2.0.4/lib -lidn2 -lnettle -lgnutls -lz

/gnu/store/9ygh8w7id994dhiqn34ns6g6kbj4i7rn-gnurl-git-7.61.1-dev/bin/gnurl-config --libs
-L/gnu/store/9ygh8w7id994dhiqn34ns6g6kbj4i7rn-gnurl-git-7.61.1-dev/lib -lgnurl -lidn2 -lnettle -lgnutls -lz

ng0

2018-11-10 21:55

manager   ~0013329

Last edited: 2018-11-10 22:07

View 5 revisions

Then again the output might be right, because:

ldd /gnu/store/9ygh8w7id994dhiqn34ns6g6kbj4i7rn-gnurl-git-7.61.1-dev/lib/libgnurl.so
    linux-vdso.so.1 (0x00007ffc2adb7000)
    libgnutls.so.30 => /gnu/store/lkx3dwlagy5sfcw98248sp007dilhz05-gnutls-dane-3.5.18/lib/libgnutls.so.30 (0x00007f4b48264000)
    libidn2.so.0 => /gnu/store/wxrprxdxs0xys5a2wg5hs4x8kcm9366k-libidn2-2.0.4/lib/libidn2.so.0 (0x00007f4b48047000)
    libunistring.so.2 => /gnu/store/rqr8v7q7fnhxziaq3s9qmsmkpr7yax24-libunistring-0.9.9/lib/libunistring.so.2 (0x00007f4b47cc7000)
    libtasn1.so.6 => /gnu/store/h9221hw01vx7a0dg279mmyjkl5r6n5fc-libtasn1-4.13/lib/libtasn1.so.6 (0x00007f4b47ab4000)
    libnettle.so.6 => /gnu/store/hawxlh69k0mad5rrv128cinz2svkaxv2-nettle-3.4/lib/libnettle.so.6 (0x00007f4b4787b000)
    libhogweed.so.4 => /gnu/store/hawxlh69k0mad5rrv128cinz2svkaxv2-nettle-3.4/lib/libhogweed.so.4 (0x00007f4b47645000)
    libgmp.so.10 => /gnu/store/sq5paxxwbhh8lr60gwkx2fvgijs9mcjj-gmp-6.1.2/lib/libgmp.so.10 (0x00007f4b473b2000)
    libz.so.1 => /gnu/store/fxiwj2wpp11sif613axdax7gmwzsg6kp-zlib-1.2.11/lib/libz.so.1 (0x00007f4b47196000)
    libgcc_s.so.1 => /gnu/store/vla5j7pbkpcp39lsdfsmz7m9azn48lr4-gcc-5.5.0-lib/lib/libgcc_s.so.1 (0x00007f4b46f7f000)
    libpthread.so.0 => /gnu/store/l4lr0f5cjd0nbsaaf8b5dmcw1a1yypr3-glibc-2.27/lib/libpthread.so.0 (0x00007f4b46d61000)
    libc.so.6 => /gnu/store/l4lr0f5cjd0nbsaaf8b5dmcw1a1yypr3-glibc-2.27/lib/libc.so.6 (0x00007f4b469ae000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f4b48809000)

However we don't get this with (curl 7.60.0):

 ldd lib/libcurl.so
    linux-vdso.so.1 (0x00007ffc7f770000)
    libnghttp2.so.14 => /gnu/store/5mh42dqgn0g3idg0b8bsvarj5rvzrj1v-nghttp2-1.31.1-lib/lib/libnghttp2.so.14 (0x00007fcaebbc1000)
    libidn2.so.0 => /gnu/store/wxrprxdxs0xys5a2wg5hs4x8kcm9366k-libidn2-2.0.4/lib/libidn2.so.0 (0x00007fcaeb9a4000)
    libnettle.so.6 => /gnu/store/hawxlh69k0mad5rrv128cinz2svkaxv2-nettle-3.4/lib/libnettle.so.6 (0x00007fcaeb76b000)
    libgnutls.so.30 => /gnu/store/c63g5242rs04ipx1zrkma9zxvs8782sj-gnutls-3.5.18/lib/libgnutls.so.30 (0x00007fcaeb41c000)
    libgss.so.3 => /gnu/store/1d3ppx58f7fvc7yzkd5br3m9y25vrqgq-gss-1.0.3/lib/libgss.so.3 (0x00007fcaeb20f000)
    libldap-2.4.so.2 => /gnu/store/6610am5smskhvrvln1sxngllf02vk8fa-openldap-2.4.46/lib/libldap-2.4.so.2 (0x00007fcaeafc6000)
    liblber-2.4.so.2 => /gnu/store/6610am5smskhvrvln1sxngllf02vk8fa-openldap-2.4.46/lib/liblber-2.4.so.2 (0x00007fcaeadb7000)
    libz.so.1 => /gnu/store/fxiwj2wpp11sif613axdax7gmwzsg6kp-zlib-1.2.11/lib/libz.so.1 (0x00007fcaeab9b000)
    libgcc_s.so.1 => /gnu/store/vla5j7pbkpcp39lsdfsmz7m9azn48lr4-gcc-5.5.0-lib/lib/libgcc_s.so.1 (0x00007fcaea984000)
    libpthread.so.0 => /gnu/store/l4lr0f5cjd0nbsaaf8b5dmcw1a1yypr3-glibc-2.27/lib/libpthread.so.0 (0x00007fcaea766000)
    libc.so.6 => /gnu/store/l4lr0f5cjd0nbsaaf8b5dmcw1a1yypr3-glibc-2.27/lib/libc.so.6 (0x00007fcaea3b3000)
    libunistring.so.2 => /gnu/store/rqr8v7q7fnhxziaq3s9qmsmkpr7yax24-libunistring-0.9.9/lib/libunistring.so.2 (0x00007fcaea033000)
    libtasn1.so.6 => /gnu/store/h9221hw01vx7a0dg279mmyjkl5r6n5fc-libtasn1-4.13/lib/libtasn1.so.6 (0x00007fcae9e20000)
    libhogweed.so.4 => /gnu/store/hawxlh69k0mad5rrv128cinz2svkaxv2-nettle-3.4/lib/libhogweed.so.4 (0x00007fcae9bea000)
    libgmp.so.10 => /gnu/store/sq5paxxwbhh8lr60gwkx2fvgijs9mcjj-gmp-6.1.2/lib/libgmp.so.10 (0x00007fcae9957000)
    libshishi.so.0 => /gnu/store/a6wpk7jirmlj8f1avfmn6xyi7831am0s-shishi-1.0.2/lib/libshishi.so.0 (0x00007fcae96f7000)
    libgcrypt.so.20 => /gnu/store/hc5cak3fj0dijbm86kpz2asl7ld4gf8y-libgcrypt-1.8.3/lib/libgcrypt.so.20 (0x00007fcae93dc000)
    libgpg-error.so.0 => /gnu/store/a5rd4sqyljb9gs58z9hq4kswqmxa45nr-libgpg-error-1.28/lib/libgpg-error.so.0 (0x00007fcae91c1000)
    libidn.so.11 => /gnu/store/xy6m4icrnbylqy5b71pn1d8dj9v9p0zz-libidn-1.34/lib/libidn.so.11 (0x00007fcae8f8d000)
    libresolv.so.2 => /gnu/store/l4lr0f5cjd0nbsaaf8b5dmcw1a1yypr3-glibc-2.27/lib/libresolv.so.2 (0x00007fcae8d77000)
    libsasl2.so.3 => /gnu/store/f7ngfhwnp4f548ppnsg0n287vv01hw4g-cyrus-sasl-2.1.26/lib/libsasl2.so.3 (0x00007fcae8b5b000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fcaec065000)
    libdl.so.2 => /gnu/store/l4lr0f5cjd0nbsaaf8b5dmcw1a1yypr3-glibc-2.27/lib/libdl.so.2 (0x00007fcae8957000)



 bin/curl-config --libs
-L/gnu/store/7vr3ngwyxs5a50xfqaklp0ds24bcrwqm-curl-7.60.0/lib -lcurl

bin/curl-config --static-libs
/gnu/store/7vr3ngwyxs5a50xfqaklp0ds24bcrwqm-curl-7.60.0/lib/libcurl.a -L/gnu/store/fxiwj2wpp11sif613axdax7gmwzsg6kp-zlib-1.2.11/lib -L/gnu/store/c63g5242rs04ipx1zrkma9zxvs8782sj-gnutls-3.5.18/lib -L/gnu/store/wxrprxdxs0xys5a2wg5hs4x8kcm9366k-libidn2-2.0.4/lib -L/gnu/store/5mh42dqgn0g3idg0b8bsvarj5rvzrj1v-nghttp2-1.31.1-lib/lib -lnghttp2 -lidn2 -lnettle -lgnutls -lgss -lldap -llber -lz


So the only difference here, considering the differing configuration, is the output of --libs.


Meanwhile my host OS curl-config spits out:

curl-config --libs
-lcurl -lssl -lcrypto -lssl -lcrypto -lldap -llber -lz

curl-config --static-libs
curl was built with static libraries disabled


So I don't think there is a "bug".

Issue History

Date Modified Username Field Change
2018-08-17 14:03 Florian Dold New Issue
2018-10-28 14:03 lurchi Note Added: 0013295
2018-10-30 19:09 ng0 Note Added: 0013300
2018-10-30 19:09 ng0 Assigned To => ng0
2018-10-30 19:09 ng0 Status new => assigned
2018-10-30 19:09 ng0 Status assigned => acknowledged
2018-11-10 21:49 ng0 Note Added: 0013328
2018-11-10 21:55 ng0 Note Added: 0013329
2018-11-10 21:57 ng0 Note Edited: 0013329 View Revisions
2018-11-10 21:58 ng0 Note Edited: 0013329 View Revisions
2018-11-10 21:59 ng0 Note Edited: 0013329 View Revisions
2018-11-10 22:07 ng0 Note Edited: 0013329 View Revisions
2018-11-10 22:07 ng0 Assigned To ng0 => Florian Dold
2018-11-10 22:07 ng0 Status acknowledged => feedback