Bug 263966 - ftp/curl: Fails to build: tool_hugehelp.c ld-elf.so.1: ... Compress/Raw/Zlib/Zlib.so: Undefined symbol "z_zlibVersion"
Summary: ftp/curl: Fails to build: tool_hugehelp.c ld-elf.so.1: ... Compress/Raw/Zlib/...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Po-Chuan Hsieh
Depends on: 263965
  Show dependency treegraph
Reported: 2022-05-14 07:48 UTC by gja822
Modified: 2022-05-15 01:49 UTC (History)
1 user (show)

See Also:
koobs: maintainer-feedback+


Note You need to log in before you can comment on or make changes to this bug.
Description gja822 2022-05-14 07:48:12 UTC
On FreeBSD-12 STABLE I was trying to upgrade ftp/curl to 7.83.1, but failed with an error (p5-Compress-Raw-Zlib is up-to-date):

--- tool_util.o ---
depbase=`echo tool_util.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; cc -DHAVE_CONFIG_H   -I../include -I../lib  -I../src -I../lib -I../src    -isystem /usr/include -isystem /usr/include -isystem /usr/local/include -isystem /usr/local/include -isystem /usr/include -isystem /usr/include/openssl -isystem /usr/local/include -isystem /usr/local/include -isystem /usr/local/include -isystem /usr/local/include  -isystem /usr/include -O2 -pipe -march=bdver2 -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -Qunused-arguments -Wno-pointer-bool-conversion -pthread -MT tool_util.o -MD -MP -MF $depbase.Tpo -c -o tool_util.o tool_util.c && mv -f $depbase.Tpo $depbase.Po
--- tool_hugehelp.c ---
ld-elf.so.1: /usr/local/lib/perl5/site_perl/mach/5.32/auto/Compress/Raw/Zlib/Zlib.so: Undefined symbol "z_zlibVersion"
*** [tool_hugehelp.c] Error code 1
make[4]: *** tool_hugehelp.c removed

make[4]: stopped in /usr/ports/ftp/curl/work/curl-7.83.1/src
1 error

make[4]: stopped in /usr/ports/ftp/curl/work/curl-7.83.1/src
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

make[1]: stopped in /usr/ports/ftp/curl
*** Error code 1

Options of the port:

===> The following configuration options are available for curl-7.83.1:
     ALTSVC=on: HTTP Alternative Services support
     BROTLI=off: Brotli compression support
     CA_BUNDLE=on: Enable CA bundle for OpenSSL/GnuTLS
     COOKIES=on: Cookies support
     CURL_DEBUG=off: cURL debug memory tracking
     DEBUG=off: Build with debugging support
     DOCS=on: Build and/or install documentation
     EXAMPLES=on: Build and/or install examples
     IDN=on: International Domain Names support
     IPV6=on: IPv6 protocol support
     NTLM=on: NTLM authentication support
     PROXY=on: Proxy support
     PSL=on: Public Suffix List support
     STATIC=on: Build static executables and/or libraries
     TLS_SRP=on: TLS-SRP (Secure Remote Password) support
     ZSTD=on: Zstandard compression support
====> Options available for the group PROTOCOL
     DICT=on: DICT (RFC 2229) support
     FTP=on: FTP protocol support
     GOPHER=on: Gopher protocol support
     HTTP=on: HTTP/HTTPS support
     HTTP2=on: HTTP/2 support (requires HTTP)
     IMAP=on: IMAP/IMAPS support
     LDAP=off: LDAP protocol support
     LDAPS=off: LDAP protocol over SSL support
     LIBSSH2=on: SCP/SFTP support via libssh2 (requires OPENSSL)
     MQTT=on: MQTT support
     POP3=on: POP3/POP3S support
     RTMP=on: RTMP protocol support via librtmp
     RTSP=on: Real Time Streaming Protocol (RTSP) support
     SMB=off: SMB/CIFS support
     SMTP=on: SMTP/SMTPS support
     TELNET=on: Telnet support
     TFTP=on: TFTP support
====> GSSAPI Security API support: you have to select exactly one of them
     GSSAPI_BASE=on: GSSAPI support via base system (needs Kerberos)
     GSSAPI_HEIMDAL=off: GSSAPI support via security/heimdal
     GSSAPI_MIT=off: GSSAPI support via security/krb5
     GSSAPI_NONE=off: Disable GSSAPI support
====> DNS resolving options: you have to select exactly one of them
     CARES=off: Asynchronous DNS resolution via c-ares
     THREADED_RESOLVER=on: Threaded DNS resolver
====> SSL protocol support: you can only select none or one of them
     GNUTLS=off: SSL/TLS support via GnuTLS
     OPENSSL=on: SSL/TLS support via OpenSSL
     WOLFSSL=off: SSL/TLS support via wolfSSL
Comment 1 gja822 2022-05-14 10:17:29 UTC
Full log is here, if needed:
Comment 2 Po-Chuan Hsieh freebsd_committer 2022-05-14 15:14:12 UTC
See also bug #263965. archivers/p5-Compress-Raw-Zlib is fixed in c0fb55c34187d539ea6faddfe6de16b3e75599ee. Thanks!