From nobody Sun Oct 10 00:45:11 2021 X-Original-To: java@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 886AF17E1A3B for ; Sun, 10 Oct 2021 00:45:19 +0000 (UTC) (envelope-from 0101017c67a92641-89fb1598-7078-457a-9442-a9e126f2c189-000000@us-west-2.amazonses.com) Received: from a27-18.smtp-out.us-west-2.amazonses.com (a27-18.smtp-out.us-west-2.amazonses.com [54.240.27.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4HRjrZ3Fxqz3hV3 for ; Sun, 10 Oct 2021 00:45:18 +0000 (UTC) (envelope-from 0101017c67a92641-89fb1598-7078-457a-9442-a9e126f2c189-000000@us-west-2.amazonses.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=7v7vs6w47njt4pimodk5mmttbegzsi6n; d=amazonses.com; t=1633826711; h=Subject:From:To:References:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding:Feedback-ID; bh=pyd0IA3pQ76BbKBLl2UU7JnB0xksYmAEQR/n5r3Zgtw=; b=VX1TKdI1/4bznOkMQS8FEP/keScGvNGlmBbH9ZY3xHQ9Cls+eRiASx0ZkXM6eZm0 KsCNQw35DWdog3wlMTxyDmH76Pq50BMRcGswGzSNwqlM3X6PChBdIRpB+esbS6DQbxj rYXQOZX2ajv1cg/SOpO5S8pnq5cAmD8FbLFZePaM= X-Authentication-Warning: misty.eyesbeyond.com: Host localhost.eyesbeyond.com [127.0.0.1] claimed to be misty.eyesbeyond.com Subject: Re: java/openjdk17: Undefined symbol "hb_face_create_for_tables" in GTK2 From: Greg Lewis To: =?UTF-8?Q?S=c3=a9rgio_Siegrist?= , java@FreeBSD.org References: <0101017c677f2fda-b031f641-07c2-4e16-ab57-5c4baad6847d-000000@us-west-2.amazonses.com> Message-ID: <0101017c67a92641-89fb1598-7078-457a-9442-a9e126f2c189-000000@us-west-2.amazonses.com> Date: Sun, 10 Oct 2021 00:45:11 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 List-Id: Porting Java to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-java List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-java@freebsd.org MIME-Version: 1.0 In-Reply-To: <0101017c677f2fda-b031f641-07c2-4e16-ab57-5c4baad6847d-000000@us-west-2.amazonses.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-AU Feedback-ID: 1.us-west-2.57h2ou5HkLStqinMcFspxvx9Ae9MkLBpzbLgKiDKs1s=:AmazonSES X-SES-Outgoing: 2021.10.10-54.240.27.18 X-Rspamd-Queue-Id: 4HRjrZ3Fxqz3hV3 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=amazonses.com header.s=7v7vs6w47njt4pimodk5mmttbegzsi6n header.b=VX1TKdI1; dmarc=none; spf=pass (mx1.freebsd.org: domain of 0101017c67a92641-89fb1598-7078-457a-9442-a9e126f2c189-000000@us-west-2.amazonses.com designates 54.240.27.18 as permitted sender) smtp.mailfrom=0101017c67a92641-89fb1598-7078-457a-9442-a9e126f2c189-000000@us-west-2.amazonses.com X-Spamd-Result: default: False [-0.70 / 15.00]; ARC_NA(0.00)[]; FORGED_SENDER(0.30)[glewis@eyesbeyond.com,0101017c67a92641-89fb1598-7078-457a-9442-a9e126f2c189-000000@us-west-2.amazonses.com]; R_DKIM_ALLOW(-0.20)[amazonses.com:s=7v7vs6w47njt4pimodk5mmttbegzsi6n]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:54.240.0.0/18]; NEURAL_HAM_LONG(-1.00)[-0.999]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; DMARC_NA(0.00)[eyesbeyond.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[amazonses.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[54.240.27.18:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FREEMAIL_TO(0.00)[gmail.com,FreeBSD.org]; RCVD_COUNT_ZERO(0.00)[0]; RWL_MAILSPIKE_POSSIBLE(0.00)[54.240.27.18:from]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:16509, ipnet:54.240.24.0/22, country:US]; FROM_NEQ_ENVFROM(0.00)[glewis@eyesbeyond.com,0101017c67a92641-89fb1598-7078-457a-9442-a9e126f2c189-000000@us-west-2.amazonses.com]; FORGED_MUA_THUNDERBIRD_MSGID_UNKNOWN(2.50)[]; DWL_DNSWL_NONE(0.00)[amazonses.com:dkim] X-Spam: Yes X-ThisMailContainsUnwantedMimeParts: N I found the problem and committed a fix. -- Greg On 10/9/21 4:59 PM, Greg Lewis wrote: > The problem looks like libharfbuzz.so is not being linked into > libfontmanager.so.  It does this when I'm building against the checked > out tree from github, but when building from the port.  However, the > port does seem to be detecting that it should use the system version of > harfbuzz. > > I'm still looking into what might be causing this. > > -- Greg > > On 10/8/21 7:48 AM, Sérgio Siegrist wrote: >> I stand corrected. The same happens in GTK3 too. >> >> In NetBeans: >> Disabling all plugins, it gets open with openjdk17. >> Enabling some plugins, it gets open and then it crashes with undefined >> symbol. >> >> So, it doesn't crash until it tries to use libfontmanager.so somehow. >> >> On 01/10/2021 09:29, Sérgio Siegrist wrote: >>> NetBeans IDE 12.5 enabled GTK3 support for its GUI. Until then, the >>> following flag was required to enable GTK2: >>> -J-Djdk.gtk.version=2.2 >>> >>> Right now, NetBeans 12.5 + openjdk17 open the GUI in GTK3. But it's >>> ugly. I prefer GTK2. >>> >>> But... >>> >>> NetBeans 12.5 + openjdk17 + GTK2 yields the following: >>> ld-elf.so.1: /usr/local/openjdk17/lib/libfontmanager.so: Undefined >>> symbol "hb_face_create_for_tables" >>> >>> And the GUI crashes. >>> >>> - No problem at all with openjdk16. >>> >>> - No problem at all with GTK3. >>> >>> Hence, it seems specific to openjdk17 + GTK2. >>> >>> (Tested on openjdk17 built locally by ports, FreeBSD 13.0-RELEASE-p4 >>> amd64) >>>