curl / Mailing Lists / curl-library / Single Mail

curl-library

compiling libcurl without libgss

From: Christopher Harvey <cwh_at_eml.cc>
Date: Wed, 22 Mar 2017 11:32:52 -0400

Hello,

I'm trying to compile the latest release of libcurl 7.53.1 off of github
such that it doesn't use any GPL libraries so it can be linked in a
closed source product.

I found that if I ./configure with (Open)SSL enabled I get libcurl
binary that seems to link with kerberos and gss:

  curl version: 7.53.1-DEV
  Host setup: x86_64-unknown-linux-gnu
  Install prefix: /usr/local
  Compiler: gcc
  SSL support: enabled (OpenSSL)
  SSH support: no (--with-libssh2)
  zlib support: enabled
  GSS-API support: no (--with-gssapi)
  TLS-SRP support: no (--enable-tls-srp)
  resolver: default (--enable-ares / --enable-threaded-resolver)
  IPv6 support: enabled
  Unix sockets support: enabled
  IDN support: no (--with-{libidn2,winidn})
  Build libcurl: Shared=yes, Static=yes
  Built-in manual: no (--enable-manual)
  --libcurl option: enabled (--disable-libcurl-option)
  Verbose errors: enabled (--disable-verbose)
  SSPI support: no (--enable-sspi)
  ca cert bundle: no
  ca cert path: no
  ca fallback: no
  LDAP support: no (--enable-ldap / --with-ldap-lib /
  --with-lber-lib)
  LDAPS support: no (--enable-ldaps)
  RTSP support: no (--enable-rtsp)
  RTMP support: no (--with-librtmp)
  metalink support: no (--with-libmetalink)
  PSL support: no (libpsl not found)
  HTTP2 support: disabled (--with-nghttp2)
  Protocols: FILE FTP FTPS HTTP HTTPS

ldd results:
$ ldd ./lib/.libs/libcurl.so.4.4.0
        linux-vdso.so.1 => (0x00007fff154af000)
        libssl.so.10 => /usr/lib64/libssl.so.10 (0x00007f98a6368000)
        libcrypto.so.10 => /usr/lib64/libcrypto.so.10
        (0x00007f98a5f85000)
        libz.so.1 => /lib64/libz.so.1 (0x00007f98a5d6f000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f98a59da000)
        libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2
        (0x00007f98a5796000)
        ^^^^^^^^^^^^^^^^^
        libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007f98a54b0000)
        ^^^^^^^^^^^^^^^^^
        libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007f98a52ab000)
        libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007f98a507f000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f98a4e7b000)
        /lib64/ld-linux-x86-64.so.2 (0x000000313a200000)
        libkrb5support.so.0 => /lib64/libkrb5support.so.0
        (0x00007f98a4c6f000)
        libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007f98a4a6c000)
        libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f98a4852000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f98a4634000)
        libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f98a4415000)

disabling SSL by using --wthout-ssl gives the following ldd output:

ldd ./lib/.libs/libcurl.so.4.4.0
        linux-vdso.so.1 => (0x00007fff001d3000)
        libz.so.1 => /lib64/libz.so.1 (0x00007f9016a36000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f90166a2000)
        /lib64/ld-linux-x86-64.so.2 (0x000000313a200000)

Is there any way I can compile libcurl to exclude gss, but include
openssl? Why does ssl seem to depend on kerbos in the first place? Can I
distribute "libgssapi_krb5.so"? Is it somehow different than libgss?

Thanks,
Chris
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-03-22