From nobody Sat Oct 7 14:41:15 2023 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4S2nzb6gNCz4wZgr for ; Sat, 7 Oct 2023 14:41:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S2nzb5HJ4z4fqV for ; Sat, 7 Oct 2023 14:41:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696689675; a=rsa-sha256; cv=none; b=iIS1aK8zEJyy+nusYPVbaxo1h1zPWt753+qJDtJK5E1BFWYwAq6i+CgrfHEQJLgmAeN1pm D6qnw7xR/96vDKoJG8Gq+ptPE4G1QpWT9tH4VNNgDzoC8D8p9DGNbuIn2lKRMG/vxDeHxA sfpBAx4Y1HkRdjScMIe+mBEj0E0EGe/IQbeiXHfCPdk1DCIYhOt92DPxwTcVltrgys9FY3 l9PnWo8jgf7gZNKn6B/DHTaajlzH54Xde4n7JdHGtD77YqKNIrPfilyEqNiD+zIJQa/N/8 lYC1q+H5ffCBcztRUO4JeZVTfKOLW17PuJJCMd371WaoXJBoWkEUNsUoI2LEhw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696689675; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=awF93XnNOFBgpvsmM+VfzGIZADdR9LyPRaEMtyGIj7A=; b=XkEXXNk0lYerUp48YwWLyYU9MXe6I7xEj1ZSg+NTUlzW4rj6v06an/E89yrhalPdNbY+SL AmJanx0wmHUL4sxBa1dFdQQ6J54jkmSd7phkSwgT/8hTC8G14GrDO8G29lWdKB9xAC+jXf tJcuuXYT0etu+4FVsxM5Lpv11LHddNUjlZMp6zSD1aIofFNiU+zdotou9LWaz6dtG4iBIA XlDdp8O2TGBxM22J1Djx70Y6f1nP2hcB56/jXjyhsZPLOHiFJDNDpPoC1iEfe9uBjEsfZN v3prnX59cS3UXoEnNCdz9d4T6ty+r5I2h9VXK8nakf+DMSRODZ28a969ZeDQVA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4S2nzb4HVVzZv3 for ; Sat, 7 Oct 2023 14:41:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 397EfFbv021173 for ; Sat, 7 Oct 2023 14:41:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 397EfFJt021172 for ports-bugs@FreeBSD.org; Sat, 7 Oct 2023 14:41:15 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 274332] security/clamav: fix build with lld 17 Date: Sat, 07 Oct 2023 14:41:15 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: yasu@freebsd.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274332 Bug ID: 274332 Summary: security/clamav: fix build with lld 17 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: yasu@freebsd.org Reporter: dim@FreeBSD.org Flags: maintainer-feedback?(yasu@freebsd.org) Assignee: yasu@freebsd.org Building security/clamav with lld 17 results in the following link errors: : && /usr/bin/cc -fPIC -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -fstack-protector-strong=20=20 -Wl,--version-script=3D/wrkdirs/share/dim/ports/security/clamav/work/clamav= -1.2.0/libclamav/libclamav.map -shared -Wl,-soname,libclamav.so.12 -o libclamav/libclamav.so.12.0.1 libclamav/CMakeFiles/regex.dir/regex/strlcpy.c.o libclamav/CMakeFiles/regex.dir/regex/regcomp.c.o libclamav/CMakeFiles/regex.dir/regex/regerror.c.o libclamav/CMakeFiles/regex.dir/regex/regexec.c.o libclamav/CMakeFiles/regex.dir/regex/regfree.c.o libclamav/CMakeFiles/lzma_sdk.dir/7z/7zAlloc.c.o libclamav/CMakeFiles/lzma_sdk.dir/7z/7zBuf.c.o libclamav/CMakeFiles/lzma_sdk.dir/7z/7zBuf2.c.o libclamav/CMakeFiles/lzma_sdk.dir/7z/7zCrc.c.o libclamav/CMakeFiles/lzma_sdk.dir/7z/7zCrcOpt.c.o libclamav/CMakeFiles/lzma_sdk.dir/7z/7zDec.c.o libclamav/CMakeFiles/lzma_sdk.dir/7z/7zFile.c.o libclamav/CMakeFiles/lzma_sdk.dir/7z/7zIn.c.o libclamav/CMakeFiles/lzma_sdk.dir/7z/7zStream.c.o libclamav/CMakeFiles/lzma_sdk.dir/7z/Bcj2.c.o libclamav/CMakeFiles/lzma_sdk.dir/7z/Bra.c.o libclamav/CMakeFiles/lzma_sdk.dir/7z/Bra86.c.o libclamav/CMakeFiles/lzma_sdk.dir/7z/BraIA64.c.o libclamav/CMakeFiles/lzma_sdk.dir/7z/CpuArch.c.o libclamav/CMakeFiles/lzma_sdk.dir/7z/Delta.c.o libclamav/CMakeFiles/lzma_sdk.dir/7z/Lzma2Dec.c.o libclamav/CMakeFiles/lzma_sdk.dir/7z/LzmaDec.c.o libclamav/CMakeFiles/lzma_sdk.dir/7z/Ppmd7.c.o libclamav/CMakeFiles/lzma_sdk.dir/7z/Ppmd7Dec.c.o libclamav/CMakeFiles/lzma_sdk.dir/7z/Xz.c.o libclamav/CMakeFiles/lzma_sdk.dir/7z/XzCrc64.c.o libclamav/CMakeFiles/lzma_sdk.dir/7z/XzDec.c.o libclamav/CMakeFiles/lzma_sdk.dir/7z/XzIn.c.o libclamav/CMakeFiles/yara.dir/yara_compiler.c.o libclamav/CMakeFiles/yara.dir/yara_exec.c.o libclamav/CMakeFiles/yara.dir/yara_hash.c.o libclamav/CMakeFiles/yara.dir/yara_parser.c.o libclamav/CMakeFiles/yara.dir/yara_arena.c.o libclamav/CMakeFiles/yara.dir/yara_grammar.c.o libclamav/CMakeFiles/yara.dir/yara_lexer.c.o libclamav/CMakeFiles/bytecode_runtime.dir/bytecode_nojit.c.o libclamav/CMakeFiles/clamav.dir/blob.c.o libclamav/CMakeFiles/clamav.dir/conv.c.o libclamav/CMakeFiles/clamav.dir/fpu.c.o libclamav/CMakeFiles/clamav.dir/hashtab.c.o libclamav/CMakeFiles/clamav.dir/iowrap.c.o libclamav/CMakeFiles/clamav.dir/json_api.c.o libclamav/CMakeFiles/clamav.dir/others_common.c.o libclamav/CMakeFiles/clamav.dir/qsort.c.o libclamav/CMakeFiles/clamav.dir/sf_base64decode.c.o libclamav/CMakeFiles/clamav.dir/str.c.o libclamav/CMakeFiles/clamav.dir/strlcat.c.o libclamav/CMakeFiles/clamav.dir/table.c.o libclamav/CMakeFiles/clamav.dir/text.c.o libclamav/CMakeFiles/clamav.dir/uniq.c.o libclamav/CMakeFiles/clamav.dir/www.c.o libclamav/CMakeFiles/clamav.dir/disasm.c.o libclamav/CMakeFiles/clamav.dir/filtering.c.o libclamav/CMakeFiles/clamav.dir/matcher-ac.c.o libclamav/CMakeFiles/clamav.dir/matcher-bm.c.o libclamav/CMakeFiles/clamav.dir/matcher-byte-comp.c.o libclamav/CMakeFiles/clamav.dir/matcher-hash.c.o libclamav/CMakeFiles/clamav.dir/matcher-pcre.c.o libclamav/CMakeFiles/clamav.dir/matcher.c.o libclamav/CMakeFiles/clamav.dir/regex_pcre.c.o libclamav/CMakeFiles/clamav.dir/cvd.c.o libclamav/CMakeFiles/clamav.dir/dconf.c.o libclamav/CMakeFiles/clamav.dir/dsig.c.o libclamav/CMakeFiles/clamav.dir/readdb.c.o libclamav/CMakeFiles/clamav.dir/cache.c.o libclamav/CMakeFiles/clamav.dir/crtmgr.c.o libclamav/CMakeFiles/clamav.dir/crypto.c.o libclamav/CMakeFiles/clamav.dir/filetypes.c.o libclamav/CMakeFiles/clamav.dir/fmap.c.o libclamav/CMakeFiles/clamav.dir/mpool.c.o libclamav/CMakeFiles/clamav.dir/others.c.o libclamav/CMakeFiles/clamav.dir/perflogging.c.o libclamav/CMakeFiles/clamav.dir/scanners.c.o libclamav/CMakeFiles/clamav.dir/textdet.c.o libclamav/CMakeFiles/clamav.dir/version.c.o libclamav/CMakeFiles/clamav.dir/htmlnorm.c.o libclamav/CMakeFiles/clamav.dir/jsparse/js-norm.c.o libclamav/CMakeFiles/clamav.dir/textnorm.c.o libclamav/CMakeFiles/clamav.dir/partition_intersection.c.o libclamav/CMakeFiles/clamav.dir/special.c.o libclamav/CMakeFiles/clamav.dir/hostid_internal.c.o libclamav/CMakeFiles/clamav.dir/stats_json.c.o libclamav/CMakeFiles/clamav.dir/stats.c.o libclamav/CMakeFiles/clamav.dir/bytecode_api_decl.c.o libclamav/CMakeFiles/clamav.dir/bytecode_api.c.o libclamav/CMakeFiles/clamav.dir/bytecode_detect.c.o libclamav/CMakeFiles/clamav.dir/bytecode_vm.c.o libclamav/CMakeFiles/clamav.dir/bytecode.c.o libclamav/CMakeFiles/clamav.dir/events.c.o libclamav/CMakeFiles/clamav.dir/7z_iface.c.o libclamav/CMakeFiles/clamav.dir/explode.c.o libclamav/CMakeFiles/clamav.dir/inflate64.c.o libclamav/CMakeFiles/clamav.dir/lzma_iface.c.o libclamav/CMakeFiles/clamav.dir/lzw/lzwdec.c.o libclamav/CMakeFiles/clamav.dir/xz_iface.c.o libclamav/CMakeFiles/clamav.dir/arc4.c.o libclamav/CMakeFiles/clamav.dir/rijndael.c.o libclamav/CMakeFiles/clamav.dir/entconv.c.o libclamav/CMakeFiles/clamav.dir/dlp.c.o libclamav/CMakeFiles/clamav.dir/autoit.c.o libclamav/CMakeFiles/clamav.dir/binhex.c.o libclamav/CMakeFiles/clamav.dir/cpio.c.o libclamav/CMakeFiles/clamav.dir/ishield.c.o libclamav/CMakeFiles/clamav.dir/libmspack.c.o libclamav/CMakeFiles/clamav.dir/msexpand.c.o libclamav/CMakeFiles/clamav.dir/nsis/bzlib.c.o libclamav/CMakeFiles/clamav.dir/nsis/infblock.c.o libclamav/CMakeFiles/clamav.dir/nsis/nulsft.c.o libclamav/CMakeFiles/clamav.dir/hwp.c.o libclamav/CMakeFiles/clamav.dir/msdoc.c.o libclamav/CMakeFiles/clamav.dir/msxml_parser.c.o libclamav/CMakeFiles/clamav.dir/msxml.c.o libclamav/CMakeFiles/clamav.dir/ole2_extract.c.o libclamav/CMakeFiles/clamav.dir/xlm_extract.c.o libclamav/CMakeFiles/clamav.dir/ooxml.c.o libclamav/CMakeFiles/clamav.dir/rtf.c.o libclamav/CMakeFiles/clamav.dir/vba_extract.c.o libclamav/CMakeFiles/clamav.dir/asn1.c.o libclamav/CMakeFiles/clamav.dir/elf.c.o libclamav/CMakeFiles/clamav.dir/execs.c.o libclamav/CMakeFiles/clamav.dir/macho.c.o libclamav/CMakeFiles/clamav.dir/pe_icons.c.o libclamav/CMakeFiles/clamav.dir/pe.c.o libclamav/CMakeFiles/clamav.dir/rebuildpe.c.o libclamav/CMakeFiles/clamav.dir/aspack.c.o libclamav/CMakeFiles/clamav.dir/fsg.c.o libclamav/CMakeFiles/clamav.dir/mew= .c.o libclamav/CMakeFiles/clamav.dir/packlibs.c.o libclamav/CMakeFiles/clamav.dir/petite.c.o libclamav/CMakeFiles/clamav.dir/spin.c.o libclamav/CMakeFiles/clamav.dir/unsp.c.o libclamav/CMakeFiles/clamav.dir/upack.c.o libclamav/CMakeFiles/clamav.dir/upx.c.o libclamav/CMakeFiles/clamav.dir/wwunpack.c.o libclamav/CMakeFiles/clamav.dir/yc.c.o libclamav/CMakeFiles/clamav.dir/line= .c.o libclamav/CMakeFiles/clamav.dir/mbox.c.o libclamav/CMakeFiles/clamav.dir/message.c.o libclamav/CMakeFiles/clamav.dir/phish_domaincheck_db.c.o libclamav/CMakeFiles/clamav.dir/phish_allow_list.c.o libclamav/CMakeFiles/clamav.dir/phishcheck.c.o libclamav/CMakeFiles/clamav.dir/regex_list.c.o libclamav/CMakeFiles/clamav.dir/regex_suffix.c.o libclamav/CMakeFiles/clamav.dir/sis.c.o libclamav/CMakeFiles/clamav.dir/tnef.c.o libclamav/CMakeFiles/clamav.dir/uuencode.c.o libclamav/CMakeFiles/clamav.dir/swf.c.o libclamav/CMakeFiles/clamav.dir/pdf= .c.o libclamav/CMakeFiles/clamav.dir/pdfng.c.o libclamav/CMakeFiles/clamav.dir/pdfdecode.c.o libclamav/CMakeFiles/clamav.dir/xdp.c.o libclamav/CMakeFiles/clamav.dir/unarj.c.o libclamav/CMakeFiles/clamav.dir/is_tar.c.o libclamav/CMakeFiles/clamav.dir/untar.c.o libclamav/CMakeFiles/clamav.dir/unzip.c.o libclamav/CMakeFiles/clamav.dir/adc.c.o libclamav/CMakeFiles/clamav.dir/dmg= .c.o libclamav/CMakeFiles/clamav.dir/xar.c.o libclamav/CMakeFiles/clamav.dir/egg= .c.o libclamav/CMakeFiles/clamav.dir/mbr.c.o libclamav/CMakeFiles/clamav.dir/gpt= .c.o libclamav/CMakeFiles/clamav.dir/apm.c.o libclamav/CMakeFiles/clamav.dir/hfsplus.c.o libclamav/CMakeFiles/clamav.dir/iso9660.c.o libclamav/CMakeFiles/clamav.dir/openioc.c.o libclamav/CMakeFiles/clamav.dir/jpeg.c.o libclamav/CMakeFiles/clamav.dir/png.c.o libclamav/CMakeFiles/clamav.dir/tiff.c.o libclamav/CMakeFiles/clamav.dir/gif.c.o libclamav/CMakeFiles/clamav.dir/udf= .c.o -Wl,-rpath,/usr/local/lib: /usr/local/lib/libmspack.so=20 x86_64-unknown-freebsd/release/libclamav_rust.a /usr/lib/libssl.so=20 /usr/lib/libcrypto.so /usr/lib/libz.so /usr/lib/libbz2.so=20 /usr/local/lib/libpcre2-8.so /usr/local/lib/libxml2.so=20 /usr/local/lib/libjson-c.so -lm -lexecinfo -lgcc_s -lc -lm -lrt -lut= il=20 -lkvm -lmemstat -lprocstat -lexecinfo -lgcc_s -lc -lm -lrt -lutil=20 -lkvm -lmemstat -lprocstat -ldevstat -lpthread -lc && : ld: error: version script assignment of 'CLAMAV_PRIVATE' to symbol 'cli_cvdunpack' failed: symbol not defined ld: error: version script assignment of 'CLAMAV_PRIVATE' to symbol 'cli_dbgmsg_internal' failed: symbol not defined ld: error: version script assignment of 'CLAMAV_PRIVATE' to symbol 'init_domainlist' failed: symbol not defined ld: error: version script assignment of 'CLAMAV_PRIVATE' to symbol 'init_whitelist' failed: symbol not defined ld: error: version script assignment of 'CLAMAV_PRIVATE' to symbol 'cli_parse_add' failed: symbol not defined ld: error: version script assignment of 'CLAMAV_PRIVATE' to symbol 'cli_bytecode_context_clear' failed: symbol not defined cc: error: linker command failed with exit code 1 (use -v to see invocati= on) Most of the mentioned symbols no longer exist anywhere in clamav's source code, except 'cli_cvdunpack', but it is a static function so it is not visible to external consumers. Remove all the undefined symbols from the linker version script to fix the build. --=20 You are receiving this mail because: You are the assignee for the bug.=