From nobody Mon Jul 24 12:50:48 2023 X-Original-To: ports@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 4R8g4q5nFzz4nmcS for ; Mon, 24 Jul 2023 12:50:51 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (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 "freefall.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4R8g4q4vf7z3mSr; Mon, 24 Jul 2023 12:50:51 +0000 (UTC) (envelope-from jbeich@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690203051; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=vtRHtkADlRE1wix2/vFEmF7DkiPj/+KmKZqd9g/gIbU=; b=vLyFRpIFtWRB92ZHgyNXws9Qx4lfPRvJhGk4AZhoNmqAL52xr0XlfF4LgTlNb0F3Bk7LIf SAhUlRApxF1zKRFf0RRd/Dk+Gt4HMFjZR8V9kxS/D65UCLisHmHdn6EDZSBhxgqkkO1kiL JCamdu5UzXB3GMOp23dKhHUekI3CXH0NfvaXAw+RlyKKRnJRJE+cUBcBWtkfC77X+6d4JV WypSR1CYkYVBf+hxrN2jeCL3+Xrdze0v2CN5lF1oEDHwTTOmdQmpPg//5SGDtDxHgetnYS H+L06OnO5fq6KvFnDhjfLiSIf0srDakl6tA895pOS+81UClPtwKpxnIX5Zd6yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690203051; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=vtRHtkADlRE1wix2/vFEmF7DkiPj/+KmKZqd9g/gIbU=; b=MnS5igcDktnBECbjtyu6hVKSLYJRej3rVLovwb1+h+WeqLHZOkibc3QMvau6HEl9RBUrtK baJCmki8ljk7Ggww48hQCUd8mBzNhVpn9gFQsCPEPFM3neSmyaFxFRYp1hp+lC7Bh40jyY 0f82CG3/sF9X3BxYRqefrjGbfn2uZxKN5aE2Ow2AjR7TqGvFNRzU20Snc3SwVPz1WOazXT 4I9vy6cWSByEInkileJJjomRI3Evos/1sPlanHPSKwnaHR8X6XwweQqU0JjnQmS3wapuJr HG4h8Wjd90l5vkOGmPgiEnnkbIjWb2f0LMiDkUK234+veQkqNsmNcOTyiVPgLA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1690203051; a=rsa-sha256; cv=none; b=lhzrEDf+b4jbDZjVsOj/gmVxx0rq1v+4OCXZjKPtUxJdX9GQAAU3+7cC1FLUVDaWyuooFs queqxlvIA/Oy7RzoEDOzAwFLAtovqqnH11ibj3HcMcubdqE480+xQzEKJQBZDLaWlcgKX4 Hbtm2eB21PUBo/FwiVVc5zyZWWe/q5NNwrryJEk6+eSWaTiTWMD58mKsSB52wCNOSw8wV+ BGKKK1s71Ote0cW9xdGslfZGmWtnAqEedSirEQX84UDF7kVzYotnRBJd7759x+EuWH3mEj 8NzBI9qHoguIAKRT/6hdWSsoitYw8KNvFhjMP8mqUdizU10hzMFOUcICnBrwFQ== Received: by freefall.freebsd.org (Postfix, from userid 1354) id 9F1831C3EC; Mon, 24 Jul 2023 12:50:51 +0000 (UTC) From: Jan Beich To: Alexander Leidinger Cc: kde@freebsd.org, ports@freebsd.org Subject: Re: Unresolved symbol in libQt6WebEngineCore.so.6.4.2 In-Reply-To: <20230724143258.Horde.zvNcmPfLw8jOhYhWrWt14ho@webmail.leidinger.net> (Alexander Leidinger's message of "Mon, 24 Jul 2023 14:32:58 +0200") References: <20230724143258.Horde.zvNcmPfLw8jOhYhWrWt14ho@webmail.leidinger.net> Date: Mon, 24 Jul 2023 14:50:48 +0200 Message-ID: List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain Alexander Leidinger writes: > Quoting Jan Beich (from Mon, 24 Jul 2023 13:52:43 +0200): > >> Alexander Leidinger writes: >> >>> Hi, >>> >>> a build with non-standard port options (mostly nox11 und related stuff >>> for a headless system, except for some ports where this doesn't work) >>> is giving me an unresolved symbol in >>> libQt6WebEngineCore.so.6.4.2. This symbol is >>> _ZN7sandbox6policy12SandboxLinux11GetInstanceEv. >>> >>> I'm seeking some insight where this symbol comes from, so it would be >>> nice if someone could report back if their >>> libQt6WebEngineCore.so.6.4.2 also has this symbol as unresolved and >>> which libary does provide this symbol via: >>> find /usr/local/lib -type f -print0 | xargs -0 nm -dynamic >>> --print-file-name | grep SandboxLinux >> >> The symbol is defined by WebEngine itself. >> >> $ cd www/qt6-webengine >> $ make clean patch >> $ cd `make -V WRKSRC` >> $ rg -lF 'SandboxLinux::GetInstance() {' >> src/3rdparty/chromium/sandbox/policy/linux/sandbox_linux.cc >> src/3rdparty/chromium/sandbox/policy/openbsd/sandbox_openbsd.cc >> src/3rdparty/chromium/sandbox/policy/freebsd/sandbox_freebsd.cc > > That doesn't sound promising. The qt6-webengine build succeeded, but > this symbol is missing... :( > As the port only has the audio options, it's not some direct influence > which is causing it, but some indirect dependency on something in the > dependecy chain I would assume. If -Wl,--no-undefined (or -Wl,-z,defs) isn't passed then DSOs are allowed to have unresolved references. This is useful for plugins unlike shared libraries. > I had a look at the faq and explanation of the sandbox at > chromium.googlesource.com, but I didn't see any low level stuff which > could help to identify why it isn't in the lib. Check the build glue and/or ifdefs. src/3rdparty/chromium/sandbox/policy/BUILD.gn: if ((is_linux || is_chromeos) && !is_bsd) { sources += [ ... "linux/sandbox_linux.cc", "linux/sandbox_linux.h", ... ] ... } if (is_openbsd) { sources += [ "openbsd/sandbox_openbsd.cc", "openbsd/sandbox_openbsd.h", ] ... } # Required to avoid assertion errors during build of QtPDF if (is_freebsd && ozone_platform_x11) { sources += [ "freebsd/sandbox_freebsd.cc", "freebsd/sandbox_freebsd.h", ] ... } src/3rdparty/chromium/build/config/ozone.gni: } else if (is_linux && !is_bsd) { ozone_platform = "x11" ozone_platform_wayland = true ozone_platform_x11 = true } else if (is_openbsd) { ozone_platform = "x11" ozone_platform_wayland = false ozone_platform_x11 = true } else if (is_freebsd) { ozone_platform = "x11" ozone_platform_wayland = true ozone_platform_x11 = true