From nobody Wed Dec 27 17:06:52 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 4T0dNF402qz55yYH for ; Wed, 27 Dec 2023 17:06:53 +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 4T0dND75TXz3Z8d for ; Wed, 27 Dec 2023 17:06:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703696813; a=rsa-sha256; cv=none; b=BkPAU1eZ9qE/yK4mj7XFI3fkNPAgr+lPbghXD8r2jfAa5FRZy1OgEcYCo6yQ55/YJfa1xr DgXXmgG10K/i/xSahK/BK06/tLgRIBNMQXyi7L8uN7uE2InPHx6/rh+veYjXYY1X3E57Zw a8yof04HUYMaiCbkhTeecSahzwz8Ee8b9inl5MRYe+8xjmGw/v5WQvUHFrs8G4gEqpO+jJ XUH+UEGIEbNJDJj7JwakC7ERdMhqdAz22VAnz3MjBrfDDRcr3c8Pa7sjeOcL3ptyhMuV3L 0R7R2kSGNjw44jjAprALZnNEsQMRtOntQZnxmlt7AfRbGTGYowa+FjNjLvqQuw== 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=1703696813; 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=BLdNy+RE4ZIpR0c11bR9hOiIPIJWwuNeDKIv8zg9YyE=; b=OXYWS9FyCYfXRKsSnVhslRlXdhKYz9rLALiq+HHAHYbi0wmw23eAuCc8qW3UNczDh7bSko zUHk012bSikyj1JJGGS6PUTEhyKmhTvvkNREAU8POg9LcJS966G3SyhU+XvG6HJr5+mBxk RuK5JuyIaymRvVYqrWtz6xS7pTeHEP23R9CACFJWkGFpuFaovG6J1LxNJcI+nhDMlPKw2I UY3UWEJk3v9xFkNgb0+hV9w0k6m73K4BgiSrX3FINaGTZ+4nig0iJCoK4xGklebWcIMbc8 tZgZQWKQRMlhu5KWlraT1UBuGYkkjIh0fi7QkLzKtyIjl0JEBBZgzpNz1XIa3A== 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 4T0dND5rtmzmxx for ; Wed, 27 Dec 2023 17:06:52 +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 3BRH6qah077041 for ; Wed, 27 Dec 2023 17:06:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3BRH6qfn077038 for ports-bugs@FreeBSD.org; Wed, 27 Dec 2023 17:06:52 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 275969] converters/iconv: Unable to build without including /usr/local/include/iconv.h Date: Wed, 27 Dec 2023 17:06:52 +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: rodarima@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bofh@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=3D275969 Bug ID: 275969 Summary: converters/iconv: Unable to build without including /usr/local/include/iconv.h Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: bofh@freebsd.org Reporter: rodarima@gmail.com Flags: maintainer-feedback?(bofh@freebsd.org) Assignee: bofh@freebsd.org Hi, I'm trying to add FreeBSD as another OS in the continuous integration of the Dillo browser that depends on iconv, FLTK and other libraries in ports. While the configure script runs, the libc is interrogated first in case it already provides a working iconv library, which it does, so it is configure= d as the iconv provider. The problem I'm having is that FLTK from ports requires -I/usr/local/includ= e, as that is the place where the headers are included in FreeBSD. However, that causes the iconv.h file to also be picked from /usr/local/include, which is not compatible with the one in /usr/include, provided by the libc. This problem causes a linkage error, as /usr/local/include/iconv.h prefixes= the iconv_* functions as libiconv_*. I tried to work around this issue, without having to switch to libiconv from ports, but I'm afraid there is no combination of -I flags that can override= the search order. Adding -I/usr/include doesn't work, as it is already in the system search paths, I have more details here: https://github.com/dillo-browser/dillo/issues/41 I saw the same problem with other ports and the workaround seems to always = end up adding libiconv as a dependency. I would like to find another solution before doing so, so I can keep the dependency with the libc only (even if libiconv is installed). I suspect one way would be to install libconv into /usr/local/include/iconv/..., so other packages have to include it manually= by using the proper -I. Another solution that I saw in Arch Linux is to place = the headers into libiconv.h instead of iconv.h: https://gitlab.archlinux.org/archlinux/packaging/packages/libiconv/-/blob/9= 776068fe291e0653f5267aebdf31d5976a12593/PKGBUILD#L42 Do you have any other solution? Best, Rodrigo. --=20 You are receiving this mail because: You are the assignee for the bug.=