From nobody Fri Oct 08 14:48:28 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 0635B17E074A for ; Fri, 8 Oct 2021 14:48:33 +0000 (UTC) (envelope-from barulheira@gmail.com) Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HQrfS1yKSz4bTV for ; Fri, 8 Oct 2021 14:48:32 +0000 (UTC) (envelope-from barulheira@gmail.com) Received: by mail-qk1-x735.google.com with SMTP id c7so9667750qka.2 for ; Fri, 08 Oct 2021 07:48:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:from:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=qoCvhJ08ZOh3/KfFOSJdhNP2Vf6lAwy19SssVcuxI7s=; b=oCxgfG5xo1BlA+L/nvaqtMrzsVJc6xh1PcWX/BYYCY6WgJRjDecotDPv13emZmGfxW 8WYuoTrlJJMUtoZynP6voN2c/lyPOYl0b3MyP2fkHqjePgeHKYvMOzv+dmXSJVDl3n+P fNNdQ2Q0QNLGWpbUWoaFyY8/4CilfGGplsKayH5FWLfC3ibb8i2+otjdLEE7ti/uKmaf dLXxESd9mW0Kfjydjv9c/dBimK85NqPXZIWjgZk2T6ygZ9TOQ7lQK2ylxmg8fgmZsjcv bNE7TJAkCuvSZw0Dvnn/6r8eicbKz3OPkuGUft1OfTyv7fsohJUYb0sBmOz1H/NHiljo LYyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:from:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=qoCvhJ08ZOh3/KfFOSJdhNP2Vf6lAwy19SssVcuxI7s=; b=V6ScjkNP6aCXDFFSoAuZozdH0qUdOUQvdNEYqoNBX96XR1yj8SRCqnpJ7Ot7NLsP42 eGJ9SWB0yCViONOhjjbI22Al1pz6Nj1YorPunHcsOaAOJ59ikH2ZWJsq4EroqG0m+9SX R9AQKqrWGrcwSsm+Q1JG8sEkA/wvenkYtxfOkQkoY/HF8URvT+NZQJxii9YWlc2M4jqV Ic/jcSPyjlDnJc9ew5FEUq/EJyHzuPZLWFdg+dRk4o5/JpEpsbchbM0mzPJ0muA4FaQ1 C8PL7FU1EVhYjYO60eaMk91WJCRAiex6ID/Mo+VN3Y4v0Dq3g/GF8crWlIsdGwEO4u07 AdRA== X-Gm-Message-State: AOAM532G9NmCK9ZaDClO3UDeN7+ASr/Tzc/wZT9hLO04Kdj7AtOl4tdh UYTPPrDmWPTJqLT0YHoIKQFqjHf4SAY= X-Google-Smtp-Source: ABdhPJwXKOw5uxyIeaF/rlssmPO1DpCVjDipphdmpXW7K11wvW81BgGp4lTbps7oZVkYxacNdmFq4w== X-Received: by 2002:a37:6cc:: with SMTP id 195mr3189857qkg.473.1633704511373; Fri, 08 Oct 2021 07:48:31 -0700 (PDT) Received: from [192.168.6.1] ([187.112.193.9]) by smtp.gmail.com with ESMTPSA id c142sm2199702qke.62.2021.10.08.07.48.29 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 08 Oct 2021 07:48:30 -0700 (PDT) Subject: Re: java/openjdk17: Undefined symbol "hb_face_create_for_tables" in GTK2 From: =?UTF-8?Q?S=c3=a9rgio_Siegrist?= To: java@FreeBSD.org References: Message-ID: Date: Fri, 8 Oct 2021 11:48:28 -0300 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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4HQrfS1yKSz4bTV X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=oCxgfG5x; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of barulheira@gmail.com designates 2607:f8b0:4864:20::735 as permitted sender) smtp.mailfrom=barulheira@gmail.com X-Spamd-Result: default: False [-0.17 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.66)[-0.660]; RECEIVED_SPAMHAUS_PBL(0.00)[187.112.193.9:received]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[java@freebsd.org]; NEURAL_SPAM_MEDIUM(0.95)[0.947]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_LONG(0.55)[0.546]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::735:from]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N 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) >