From nobody Mon Sep 25 19:01:38 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 4RvXKc0gJ8z4tw3n for ; Mon, 25 Sep 2023 19:01:40 +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 4RvXKZ1M7xz3PZB for ; Mon, 25 Sep 2023 19:01:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695668498; a=rsa-sha256; cv=none; b=CBobgYVaGEg0/g4S8jPUdqDQplWURdo6B/dyl3sNgVu28iQOJf1ueSaLr5pt1sEQk5sIGl 8+BkrbVwCKWvmBpBp/jgyRiT5zwlLG48tKXZAXM2y38JN0TAcQWXoCeLxBbhhQsxs7sEYJ zP7FO/P84r4LXtsG3ElBmEnksBHfK3eeVvkLdQVcneCD8aB9AZV0v3LyDqhdJ6x8mMn9Uo yDR19b5bPJxoFUU0SoeZjqCoFEnHXPdMlgOnyBim6bvxl08yeui+/NyRChvNcXmz3OxJp6 lffYMw8vETWkbfmlAVeuNJcZEsxhnSwHbUN1kME7uHalN+lQmx1DszyqD8qGKg== 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=1695668498; 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=cI0nLHQhDg7rrhBLnzrlEeC6LxdPqKVScx2b6xSXKMw=; b=PrqAfaXmgqTFYOBEM7IM5CsffWxUnKv3qhm2HzpYSfuLCngv+yT1sKagE2Gco97MmNkqH+ BJHzCp5oxIzmXej5DFbV4+tecku+rkTxneyOR7V626kex8x0R1WleC8WL/+no2L9040xia N1fahmPXxwmznY0T3MJ5C0Ol1ueICRABgwHwfqAlUvXCCmaTBxpPzIgg+oyyFSz/c1Ka2v YEY/RDsBGn+SibOuIusKiCKyvrjH2WOSk/eEd21wNNeLjw1H/y0ZudAYAvyj9e7NaQaude UkVVVnEvi7cLds2R2r0Xa/5IyMKee1wKJg8c88VB37au2duNnGjIY8ysAOoc5g== 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 4RvXKZ0RPnz9l1 for ; Mon, 25 Sep 2023 19:01:38 +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 38PJ1cD8009793 for ; Mon, 25 Sep 2023 19:01:38 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 38PJ1cHe009792 for ports-bugs@FreeBSD.org; Mon, 25 Sep 2023 19:01:38 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 274087] devel/libva: fix build with lld 17 Date: Mon, 25 Sep 2023 19:01:38 +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: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter 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=3D274087 Bug ID: 274087 Summary: devel/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: ports-bugs@FreeBSD.org Reporter: dim@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.=