Skip to content

./configure --with-wolfssl causes error: undefined reference to `DES_set_key' #7085

@joelonsql

Description

@joelonsql

Packages installed: fish-common libbrotli-dev libgsasl7-dev libidn2-dev libldap2-dev libnghttp2-dev libowfat-dev libpsl-dev librtmp-dev libwolfssl-dev libzstd-dev libssl-dev

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal

./configure --with-wolfssl

configure: Configured to build curl/libcurl:

Host setup: x86_64-pc-linux-gnu
Install prefix: /usr/local
Compiler: gcc
CFLAGS: -Werror-implicit-function-declaration -O2 -Wno-system-headers -pthread
CPPFLAGS: -isystem ${prefix}/include/wolfssl
LDFLAGS:
LIBS: -lnghttp2 -lidn2 -lrtmp -lgsasl -lpsl -lwolfssl -lm -lldap -llber -lzstd -lbrotlidec -lz

curl version: 7.77.0-DEV
SSL: enabled (WolfSSL)
SSH: no (--with-{libssh,libssh2})
zlib: enabled
brotli: enabled (libbrotlidec)
zstd: enabled (libzstd)
GSS-API: no (--with-gssapi)
GSASL: enabled
TLS-SRP: no (--enable-tls-srp)
resolver: POSIX threaded
IPv6: enabled
Unix sockets: enabled
IDN: enabled (libidn2)
Build libcurl: Shared=yes, Static=yes
Built-in manual: enabled
--libcurl option: enabled (--disable-libcurl-option)
Verbose errors: enabled (--disable-verbose)
Code coverage: disabled
SSPI: no (--enable-sspi)
ca cert bundle: /etc/ssl/certs/ca-certificates.crt
ca cert path: no
ca fallback: no
LDAP: enabled (OpenLDAP)
LDAPS: enabled
RTSP: enabled
RTMP: enabled (librtmp)
Metalink: no (--with-libmetalink)
PSL: enabled
Alt-svc: enabled (--disable-alt-svc)
HSTS: enabled (--disable-hsts)
HTTP1: enabled (internal)
HTTP2: enabled (nghttp2)
HTTP3: no (--with-ngtcp2, --with-quiche)
ECH: no (--enable-ech)
Protocols: DICT FILE FTP FTPS GOPHER GOPHERS HTTP HTTPS IMAP IMAPS LDAP LDAPS MQTT POP3 POP3S RTMP RTSP SMB SMBS SMTP SMTPS TELNET TFTP
Features: AsynchDNS GSASL HSTS HTTP2 IDN IPv6 Largefile NTLM NTLM_WB PSL SSL UnixSockets alt-svc brotli libz zstd

/usr/bin/ld: ../lib/.libs/libcurl.so: undefined reference to DES_set_key' /usr/bin/ld: ../lib/.libs/libcurl.so: undefined reference to DES_ecb_encrypt'
/usr/bin/ld: ../lib/.libs/libcurl.so: undefined reference to `DES_set_odd_parity'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1009: curl] Error 1
make[2]: Leaving directory '/home/magicmake/curl/src'
make[1]: *** [Makefile:2168: all-recursive] Error 1
make[1]: Leaving directory '/home/magicmake/curl/src'
make: *** [Makefile:1264: all-recursive] Error 1

What could be the problem here? Am I missing some package?

Many thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions