From nobody Thu Apr 21 14:24:18 2022 X-Original-To: freebsd-hackers@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 7001B11DFEEE for ; Thu, 21 Apr 2022 14:24:26 +0000 (UTC) (envelope-from stephane.rochoy@stormshield.eu) Received: from work.stormshield.eu (gwlille.netasq.com [91.212.116.1]) by mx1.freebsd.org (Postfix) with ESMTP id 4Kkftd0pwWz4lh4 for ; Thu, 21 Apr 2022 14:24:24 +0000 (UTC) (envelope-from stephane.rochoy@stormshield.eu) Received: from work.stormshield.eu (localhost.localdomain [127.0.0.1]) by work.stormshield.eu (Postfix) with ESMTPS id 63527376174B for ; Thu, 21 Apr 2022 16:24:18 +0200 (CEST) Received: from localhost (localhost.localdomain [127.0.0.1]) by work.stormshield.eu (Postfix) with ESMTP id 4C55B376053A for ; Thu, 21 Apr 2022 16:24:18 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 work.stormshield.eu 4C55B376053A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stormshield.eu; s=5EC8D4C2-228B-11EC-A8BC-C05B4988C3CE; t=1650551058; bh=oPIO18A6ZKyUfJvkuy5gHCM2Qasub+8mqEYzt9qXsvY=; h=From:To:Date:Message-ID:MIME-Version; b=SC4d4ANjdYY1R+nhxtHH1AtimIv8WD08ENnSeYBr+m8WmPDk13vyLKN+ifeLjXkab 56kY/dRRu8OQgkoBRcmwlWjwxlDMNeh9iHsYW9VrJl7/MwDnWBZfa4w3B55DA3h6jv hBMG7vuwBigKuGnn+pQyk0PCagx3Jz1IwSuq9RPU= Received: from work.stormshield.eu ([127.0.0.1]) by localhost (work.stormshield.eu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id dPfRI6T4K4tV for ; Thu, 21 Apr 2022 16:24:18 +0200 (CEST) Received: from cthulhu.stephaner.labo.int (unknown [10.2.16.1]) by work.stormshield.eu (Postfix) with ESMTPSA id 36EAF376174B for ; Thu, 21 Apr 2022 16:24:18 +0200 (CEST) Received: by cthulhu.stephaner.labo.int (Postfix, from userid 1000) id 266E11FDBB; Thu, 21 Apr 2022 16:24:18 +0200 (CEST) User-agent: mu4e 1.2.0; emacs 27.1 From: stephane rochoy To: FreeBSD Hackers Subject: vwarn: libc vs opensolaris/ctf/tools Date: Thu, 21 Apr 2022 16:24:18 +0200 Message-ID: <874k2mzf8t.fsf@stormshield.eu> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4Kkftd0pwWz4lh4 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=stormshield.eu header.s=5EC8D4C2-228B-11EC-A8BC-C05B4988C3CE header.b=SC4d4ANj; dmarc=pass (policy=quarantine) header.from=stormshield.eu; spf=pass (mx1.freebsd.org: domain of stephane.rochoy@stormshield.eu designates 91.212.116.1 as permitted sender) smtp.mailfrom=stephane.rochoy@stormshield.eu X-Spamd-Result: default: False [-3.76 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; R_DKIM_ALLOW(-0.20)[stormshield.eu:s=5EC8D4C2-228B-11EC-A8BC-C05B4988C3CE]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:91.212.116.1]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_MEDIUM(-0.86)[-0.863]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[stormshield.eu:+]; DMARC_POLICY_ALLOW(-0.50)[stormshield.eu,quarantine]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-hackers]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:49068, ipnet:91.212.116.0/24, country:FR]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Hello, Trying to build stable/13 [1] (for ARMv6) if encountered the following linker error when building cddl/user.bin/ctfdump. ld: error: duplicate symbol: vwarn >>> defined at utils.c >>> utils.o:(vwarn) >>> defined at err.c:148 (/usr/src/lib/libc/gen/err.c:148) >>> err.o:(.text+0x4D0) in archive /usr/lib/libc.a cc: error: linker command failed with exit code 1 (use -v to=20 see invocation) The vwarn function seems to be defined both in lib/libc/gen/err.c and in cddl/contrib/opensolaris/tools/ctf/common/utils.c. It seems to be ok to workaround the problem by enclosing OpenSolaris' implementation in #if 0. I don't see anything related in my src.conf: TARGET=3Darm TARGET_ARCH=3Darmv6 TARGET_CPUARCH=3Darm TARGET_CPUTYPE=3Darmv6softfp =20=20=20=20 DESTDIR=3D/home/stephaner/c/freebsd/dest KERNCONF=3DARMADA38X METALOG=3D/home/stephaner/c/freebsd/dest/METALOG =20=20=20=20 # Jan 1, 2030 00:00:00 BUILD_UTC=3D1893452400 DB_FROM_SRC=3D1 NO_FSCHG=3D1 NO_ROOT=3D1 NO_SHARED=3D1 NO_RTLD=3D1 =20=20=20=20 WITHOUT_BEARSSL=3D1 WITHOUT_BLUETOOTH=3D1 WITHOUT_CAPSICUM=3D1 WITHOUT_CASPER=3D1 WITHOUT_CFI=3D1 WITHOUT_CLEAN=3D1 WITHOUT_DEBUG_FILES=3D1 WITHOUT_DICT=3D1 WITHOUT_GAMES=3D1 WITHOUT_GROFF=3D1 WITHOUT_KERBEROS=3D1 WITHOUT_LIB32=3D1 WITHOUT_LLVM_TARGET_ALL=3D1 WITHOUT_LOADER_VERIEXEC=3D1 WITHOUT_MAIL=3D1 WITHOUT_NLS=3D1 WITHOUT_OFED=3D1 WITHOUT_PROFILE=3D1 WITHOUT_SAFESTACK=3D1 WITHOUT_TESTS=3D1 WITHOUT_VERIEXEC=3D1 WITHOUT_WARNS=3D1 WITHOUT_WERROR=3D1 WITHOUT_ZFS=3D1 =20=20=20=20 WITH_BIND_NOW=3D1 WITH_CLANG=3D1 WITH_INSTALL_AS_USER=3D1 WITH_PIE=3D1 WITH_REPRODUCIBLE_BUILD=3D1 WITH_RESCUE=3D1 WITH_SHLIBRANDOM=3D1 Does anyone have a hint or any thing I could investigate? [1] dd19f0e9c006370d33b56b6d1b66015d7afd00eb Regards, --=20 St=C3=A9phane Rochoy O: Stormshield