From nobody Mon Sep 25 19:04:05 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 4RvXNS405vz4twd9 for ; Mon, 25 Sep 2023 19:04:08 +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 4RvXNP6f7Jz3QM5 for ; Mon, 25 Sep 2023 19:04:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695668645; a=rsa-sha256; cv=none; b=F1/1cCMOZa7WS8pV8hdHitz73roLI4DSjt5j8FGdTdqmfV3gIkRyTkwUPLgckDX6bej+so DJZk9y11OwSXl3Ooyso2yeF3VE6Gr6av41sPJrrz1SQA6V67oxY2argw30+7UJ67LCchWi ZDecS7sUXqKDmlg+k9w23nLtfqBXnm5AZEYa+35JTVzTi+mK/mBFMK6gcq0CfgFnNESB0u LLrVXdLo4kiQYWueOdzIYVWI/11QIwU6Zk72HPgxc/5/y6VN0UK0meF8jDUr29vZJ/tSgt d1IzPUhFjIpLBNiDp1ksz6Unq/nnv03Tp3iK8fIz7BLvspqqBaVu4H8IXQ2uhw== 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=1695668645; 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=o3g2/OIIe9ZrqxevFwfqVEOKbq0PZ7ypO3cpiEaa7Kk=; b=T8wjA/HXkxg40BsYym45SOHK4YsjIIVMywHEtf46KEGncaJtarS2bpjFm+ZhbqbMHVSz/1 V/Qtk/9nB14xZl6kPfg6ETyIWKSupDf4iR9gHgPjCZKy/J+93kXBLOsLgB/dKrLsNTmRho z1KQ/GGr/RcERCxWXzsHMKkcm7Y8Bjep+NIaX2xcoOr+5SOVlV+dfp+WQ7tfus7qvY+j5X SUWlNayV7Pk3XgUGiHRC/ZekoCQoI9giTqSbLMkNZKxKGz7UAZPaTJZhklgALGR5+fFLRT X6R8StEydg82SFw0rQWrbssMbI2Hzb2ayUKVr3GTmsKc+KybBOoiB3JgmLz07A== 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 4RvXNP5j0pz9x1 for ; Mon, 25 Sep 2023 19:04:05 +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 38PJ4584015550 for ; Mon, 25 Sep 2023 19:04:05 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 38PJ459n015549 for ports-bugs@FreeBSD.org; Mon, 25 Sep 2023 19:04:05 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 274088] multimedia/libva: fix build with lld 17 Date: Mon, 25 Sep 2023 19:04:05 +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: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: jbeich@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=3D274088 Bug ID: 274088 Summary: multimedia/libva: fix build with lld 17 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: jbeich@FreeBSD.org Reporter: dim@FreeBSD.org Assignee: jbeich@FreeBSD.org Flags: maintainer-feedback?(jbeich@FreeBSD.org) When building libva with lld >=3D 17, an error similar to the following is emitted when linking libva.so: ld: error: va/libva.so.2.2000.0.p/va_compat.c.o: symbol vaCreateSurfaces@VA_API_0.32.0 has undefined version VA_API_0.32.0 The root cause is that lld 17 checks linker version scripts more strictly by default, and emits an error when undefined symbols or undefined versions are referenced. Earlier in the build, it turns out that due to these lld errors, va's meson.build fails to detect --version-script support: Checking if "-Wl,--version-script" : links: NO This is because the small test program used by meson to check whether a sha= red library can be linked with the libva.syms version script is completely empt= y, and therefore the two symbols in the version script, vaCreateSurfaces_0_32_0 and vaCreateSurfaces, are undefined. Fix the problem by providing placeholder definitions for these symbols in t= he code argument to meson's cc.links() function. This ensures that meson corre= ctly detects --version-script support with lld version 17 or later, and makes it possible to link the libva shared library. NOTE: also submitted upstream as https://github.com/intel/libva/pull/758 --=20 You are receiving this mail because: You are the assignee for the bug.=