From nobody Wed Dec 27 22:58:59 2023 X-Original-To: desktop@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 4T0nBX1x8pz54YSk for ; Wed, 27 Dec 2023 22:59:00 +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 4T0nBW5LyCz4nq0 for ; Wed, 27 Dec 2023 22:58:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703717939; a=rsa-sha256; cv=none; b=FZVC3f4XnaFE8zK7A5mpNjX7ay97l4ELQ3BCrcFrUyBTgMrOexKp5pAYXtTgrm/2SqT8SS QmS+Hvugc38aWui+vliHNEBC6ZVhjNQ38BVHgSWyUGP3GDXwI9k13ty0RYcnmh/P99vb46 V2gLuOQ1iyiGmsd9TDaQPBE2wBopaRBD6lrTdWNjYHd+4/g8npB8bc2uYAGyvmQqKPbNEG 2qOMX0HF3Ep51ZnwSt6kBiqjORkzgGP25irF95aOxrPeEpuqES8K4VG2cq3nmPYQX6eFEx mUba5H7JQHlNX4dZc6rsrMVieCobThQg1CT49qWLvYe+pPXiQwGhDFlLnBXbgQ== 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=1703717939; 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: in-reply-to:in-reply-to:references:references; bh=GD5s6rGYx0AKEfg58PUYxDT3nsJdVeJ32Fv0tyGXAlM=; b=DEyvMl1K3UKQVJBtL05ch4SPq1M/GeWaIlhmsPhXKINjxBQHzuAxRyS/tvyIz1cv+jw8wZ SIi2Ijn1c6VqI7XR0hyjPdrrio0ogJ2z00x/9ncmjqvR2lNahWIrNSQ/XE1SasuInmAUQM oyIouPtDcSUda/trbUm2g0fQapAO6Eva61rzdeYWsZk93Wz+7C/BzcUnmPMff5UjurILkk Jugk93ED3aaZVs8B/AbWkPBIXh869WTelCHHIQkpkzA7dILLrN5gFFaVVeUSGbvYvY/yBQ syHZe0Xj55STRPHwNTwL35FozgXdfscxxO1/KdelVAqmBi6jFzNC7ASGhwJzeQ== 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 4T0nBW4QzBzxsQ for ; Wed, 27 Dec 2023 22:58:59 +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 3BRMwxnC013300 for ; Wed, 27 Dec 2023 22:58:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3BRMwxR0013299 for desktop@FreeBSD.org; Wed, 27 Dec 2023 22:58:59 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: desktop@FreeBSD.org Subject: [Bug 275969] converters/libiconv: Unable to build without including /usr/local/include/iconv.h Date: Wed, 27 Dec 2023 22:58:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: rodarima@gmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: desktop@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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: Using and improving FreeBSD on the desktop List-Archive: https://lists.freebsd.org/archives/freebsd-desktop List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-desktop@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275969 --- Comment #5 from Rodrigo --- > Do you have a buildlog somewhere? I attached the build log. > I think you have mixed up two different ports. One is converters/iconv an= d other is converters/libiconv which are different in terms of functionalit= ies. Sorry, I didn't realize they were split :-) > The gotcha here is that you need to also pass -DLIBICONV_PLUG when includ= ing iconv from localbase. I tested that and it links properly. However, the problem remains: I'm including /usr/local/include/iconv.h and linking with -lc which also provides an iconv implementation. With the LIBICONV_PLUG the libiconv functions don't get the "lib" prefix. I'm guessing libiconv and libc try to provide compatible headers, but it se= ems a bit fragile to depend on that. So I was looking for a way to avoid includ= ing the /usr/local/include/iconv.h file and just include the one provided by the libc. And in case there is none, I can instead link with -liconv, which at least would make more sense than depending on the headers to remain compatible am= ong both implementations. Best, Rodrigo. --=20 You are receiving this mail because: You are the assignee for the bug.=