From nobody Mon Sep 05 21:18:08 2022 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 4MM1Zm2qyKz4bjhD for ; Mon, 5 Sep 2022 21:18:08 +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 4MM1Zm0tBRz3hxt for ; Mon, 5 Sep 2022 21:18:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 4MM1Zl746szxK1 for ; Mon, 5 Sep 2022 21:18:07 +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 285LI7Af028920 for ; Mon, 5 Sep 2022 21:18:07 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 285LI71l028919 for ports-bugs@FreeBSD.org; Mon, 5 Sep 2022 21:18:07 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 266241] devel/libdatrie build fails if converters/libiconv is installed Date: Mon, 05 Sep 2022 21:18:08 +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: se@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662412688; 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=M4kjCQY8BUDDxYkCSG38oyqZL8hD1MGiiic2z9owspg=; b=h+w5XlUG2teHNwzMZbyn8P5edaRsgM0mRvvjPpcCHG9TB2URYqnZVRqWrcpRqPner4WYZX kMVM/G05g3QTGros0Iw3AmLTwQLihOkRLo59yL8BVt4DRerKdOrmg5rentBxfavB3t/ZIz OS+mwd+p7QxifcXMte+xaMg4wefv/TRHTl/BH8WeRs3u/ZbXQhDNuIgTyhiGpgvF8is16b Am9QxMf1rsDUWrIZkCV+89PWdMPYlk856oESnZULbzVcDVxWj1fa5pYcFeju86Wh0MLkwF osGcxVWqIZcydHyp2pTS1NAOIm+sZfrEfAhp3Q8RsXIUHogT35Tifn9z6KFFTw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1662412688; a=rsa-sha256; cv=none; b=KxchB6SQ6pdUeqWoABRsH2vT0tfhOUQ7pm4vf+r9ALlfRFrz5oNJh3M7I/oPXRz/l0IIiR 3pc4ZNxrY+poyS60mToRwb46ZTONw9dc6zEjvKrIfOMSVo1odCzyvCxMru7zuApOZUeZ1X 9VfPxLBeKAjATnErxuYjPvCq7utZoPwh7W1dylOA0ZETEy4ywSYqMMtEUQJxsKTYkfu+S1 08se9hHxpAjhHgHNWLDTfTG1LUZpTqgHdkaWDnseO1kr1xoJsmnDXGbm1Z0w6yaUhJwrfq JtEf8pOqB4xcJbeJ9VvsyfA3MBN0tMPDEkWq1s7W/JNGfTT5d+D2gqxPwv6Jmg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266241 Bug ID: 266241 Summary: devel/libdatrie build fails if converters/libiconv is installed Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: se@FreeBSD.org If converters/libiconv is installed, the devel/libdatrie runs a configure t= est with -liconv, but ${ICONV_LIB} is expanded to an empty string on systems th= at have iconv functionality in libc.so. But the iconv functionality in libc.so is incomplete, it does specifically = lack the locale_charset() function that is provided by libiconv.so (that had been used by the configure script). libtool: link: cc -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -isyst= em /usr/local/include -fno-strict-aliasing -fstack-protector-strong -o .libs/trietool trietool.o -L/usr/local/lib ../datrie/.libs/libdatrie.so -Wl,-rpath -Wl,/usr/local/lib ld: error: undefined symbol: locale_charset >>> referenced by trietool.c >>> trietool.o:(main) cc: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1 To reproduce install converters/libiconv on the base system and then try to build the devel/libdatrie port on the base system. The magic in Uses/iconv.mk does not cover the case where locale_charset() is required by a port. A solution could be to forcefully depend on converters/libiconv and to link against -liconv (instead of ${ICONV_LIB}). Another possibility is to link against libunistring.so in addition to libc.= so (but that does only move the extra dependency to a different port). Patching the port to not require locale_charset() but to use nl_langinfo() instead could also allow the port to build in all cases. --=20 You are receiving this mail because: You are the assignee for the bug.=