NetBSD Problem Report #57702

From www@netbsd.org  Sat Nov 18 04:47:22 2023
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id CAED21A9238
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 18 Nov 2023 04:47:21 +0000 (UTC)
Message-Id: <20231118044650.BA91F1A9239@mollari.NetBSD.org>
Date: Sat, 18 Nov 2023 04:46:50 +0000 (UTC)
From: davshao@gmail.com
Reply-To: davshao@gmail.com
To: gnats-bugs@NetBSD.org
Subject: multimedia/libva C++ preprocessor "clang -E" fails sanity check
X-Send-Pr-Version: www-1.0

>Number:         57702
>Category:       pkg
>Synopsis:       multimedia/libva C++ preprocessor "clang -E" fails sanity check
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    nia
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 18 04:50:00 +0000 2023
>Last-Modified:  Mon Nov 20 22:45:01 +0000 2023
>Originator:     David Shao
>Release:        pkgsrc current
>Organization:
>Environment:
FreeBSD xxxxxx 14.0-RELEASE FreeBSD 14.0-RELEASE #0 releng140-n265380-f9716eee8ab4: Tue Nov 14 03:13:04 PST 2023     xxxxx@xxxxxx:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
>Description:
Following the commit:

Module Name:    pkgsrc
Committed By:   nia
Date:           Fri Nov 17 08:18:08 UTC 2023

Modified Files:
        pkgsrc/multimedia/libva: Makefile

Log Message:
libva: needs FORCE_C_STD

+# error: 'for' loop initial declarations are only allowed in C99 mode
+FORCE_C_STD=           gnu99

FreeBSD 13 and 14 with base compiler clang fail to build

checking whether clang accepts -g... (cached) yes
checking for clang option to accept ISO C89... (cached) none needed
checking whether clang understands -c and -o together... (cached) yes
checking dependency style of clang... (cached) gcc3
checking whether we are using the GNU C++ compiler... no
checking whether clang++ accepts -g... no
checking dependency style of clang++... none
checking how to run the C++ preprocessor... clang -E
configure: error: in `/usr/pkgsrc/multimedia/libva/work/libva-2.20.0':
configure: error: C++ preprocessor "clang -E" fails sanity check
See `config.log' for more details
*** Error code 1

>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->nia
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Sat, 18 Nov 2023 05:44:43 +0000
Responsible-Changed-Why:
Over to committer for the change


From: nia <nia@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/57702 (multimedia/libva C++ preprocessor "clang -E" fails
 sanity check)
Date: Sun, 19 Nov 2023 09:48:17 +0000

 Hi, can you post the output of work.log and config.log so I can
 understand what's happening? I can't reproduce this with clang
 on NetBSD.

From: David Shao <davshao@gmail.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/57702: multimedia/libva C++ preprocessor "clang -E" fails
 sanity check
Date: Mon, 20 Nov 2023 13:55:50 -0800

 Sorry for the delay.  The simple answer from config.log seems to be a
 simple declaration that FreeBSD 14 base clang compiler simply does not
 support the -std=gnu99 option?

 $ uname -a
 FreeBSD xxxxx 14.0-RELEASE FreeBSD 14.0-RELEASE #0
 releng140-n265380-f9716eee8ab4: Tue Nov 14 03:13:04 PST 2023
 xxxxx@xxxxx:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64

 $ clang --version
 FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git
 llvmorg-16.0.6-0-g7cbf1a259152)
 Target: x86_64-unknown-freebsd14.0
 Thread model: posix
 InstalledDir: /usr/bin
 $ clang++ --version
 FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git
 llvmorg-16.0.6-0-g7cbf1a259152)
 Target: x86_64-unknown-freebsd14.0
 Thread model: posix
 InstalledDir: /usr/bin

 /usr/pkg/etc/mk.conf:

 .ifdef BSD_PKG_MK # begin pkgsrc settings

 ABI= 64
 PKGSRC_COMPILER= clang
 CC= clang
 CXX= clang++
 CPP= ${CC} -E
 CLANGBASE= /usr

 PKG_DBDIR= /usr/pkg/pkgdb
 LOCALBASE= /usr/pkg
 VARBASE= /var
 PKG_TOOLS_BIN= /usr/pkg/sbin
 PKGINFODIR= info
 PKGMANDIR= man

 PREFER_PKGSRC= yes

 USE_CWRAPPERS= yes


 .endif # end pkgsrc settings

 .ifdef BSD_PKG_MK # begin local

 PKG_DEFAULT_OPTIONS=dri
 X11_TYPE=modular

 CURSES_DEFAULT=ncurses
 READLINE_DEFAULT=readline

 PREFER.libexecinfo=native
 PREFER.openpam=native

 COPTS+=-g
 INSTALL_UNSTRIPPED=yes
 USE_DESTDIR=yes

 .work.log:

 [*] /usr/pkgsrc/multimedia/libva/work/.tools/bin/mkdir conf2248.dir
 <.> /bin/mkdir -p conf2248.dir
 [*] /usr/pkgsrc/multimedia/libva/work/.tools/bin/mkdir -p .
 <.> /bin/mkdir -p -p .
 [*] /usr/pkgsrc/multimedia/libva/work/.tools/bin/mkdir --version
 <.> /bin/mkdir -p --version
 [*] /usr/pkgsrc/multimedia/libva/work/.tools/bin/echo @@@%%%=make=@@@%%%
 <.> echo  @@@%%%=make=@@@%%%
 [*] /usr/pkgsrc/multimedia/libva/work/.tools/bin/mkdir .tst
 <.> /bin/mkdir -p .tst
 [*] /usr/pkgsrc/multimedia/libva/work/.tools/bin/true
 <.> true
 [*] /usr/pkgsrc/multimedia/libva/work/.tools/bin/echo this is the
 am__doit target
 <.> echo  this is the am__doit target
 [*] cc --version
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong --version -std=gnu99 -Qunused-arguments
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 [*] cc -v
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -v -std=gnu99 -Qunused-arguments
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 [*] cc -V
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -V -std=gnu99 -Qunused-arguments
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 [*] cc -qversion
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -qversion -std=gnu99 -Qunused-arguments
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 [*] cc -O2 -I/usr/pkg/include -I/usr/pkg/include/libdrm -I/usr/include
 -I/usr/pkg/include -I/usr/pkg/include/libdrm -I/usr/include
 -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib conftest.c
 -ldl
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -O2
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 -L/usr/pkgsrc/multimedia/libva/work/.buildlink/lib
 -Wl,-rpath,/usr/pkg/lib conftest.c -ldl -std=gnu99 -Qunused-arguments
 [*] cc -o conftest -O2 -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib
 -Wl,-R/usr/lib conftest.c -ldl
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -o conftest -O2
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 -L/usr/pkgsrc/multimedia/libva/work/.buildlink/lib
 -Wl,-rpath,/usr/pkg/lib conftest.c -ldl -std=gnu99 -Qunused-arguments
 [*] cc -o conftest -O2 -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib
 -Wl,-R/usr/lib conftest.c -ldl
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -o conftest -O2
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 -L/usr/pkgsrc/multimedia/libva/work/.buildlink/lib
 -Wl,-rpath,/usr/pkg/lib conftest.c -ldl -std=gnu99 -Qunused-arguments
 [*] cc -c -O2 -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include conftest.c
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -c -O2
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 conftest.c -std=gnu99 -Qunused-arguments
 [*] cc -c -O2 -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include conftest.c
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -c -O2
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 conftest.c -std=gnu99 -Qunused-arguments
 [*] cc -c -g -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include conftest.c
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -c -g
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 conftest.c -std=gnu99 -Qunused-arguments
 [*] cc -c -O2 -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include conftest.c
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -c -O2
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 conftest.c -std=gnu99 -Qunused-arguments
 [*] cc -c conftest.c -o conftest2.o
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -c conftest.c -o conftest2.o -std=gnu99
 -Qunused-arguments
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 [*] cc -c conftest.c -o conftest2.o
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -c conftest.c -o conftest2.o -std=gnu99
 -Qunused-arguments
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 [*] /usr/pkgsrc/multimedia/libva/work/.tools/bin/mkdir conftest.dir
 <.> /bin/mkdir -p conftest.dir
 [*] /usr/pkgsrc/multimedia/libva/work/.tools/bin/mkdir sub
 <.> /bin/mkdir -p sub
 [*] cc -MT sub/conftest.o -MD -MP -MF sub/conftest.TPo -c -o
 sub/conftest.o sub/conftest.c
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -MT sub/conftest.o -MD -MP -MF
 sub/conftest.TPo -c -o sub/conftest.o sub/conftest.c -std=gnu99
 -Qunused-arguments
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 [*] cc -print-prog-name=ld
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -print-prog-name=ld -std=gnu99
 -Qunused-arguments
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 [*] cc -c -O2 -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include conftest.c
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -c -O2
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 conftest.c -std=gnu99 -Qunused-arguments
 [*] cc -E -
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -E - -std=gnu99 -Qunused-arguments
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 [*] cc -c -O2 -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include conftest.c
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -c -O2
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 conftest.c -std=gnu99 -Qunused-arguments
 [*] cc -c -O2 -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include conftest.c
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -c -O2
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 conftest.c -std=gnu99 -Qunused-arguments
 [*] cc -o conftest -O2 -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib
 -Wl,-R/usr/lib conftest.c conftstm.o
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -o conftest -O2
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 -L/usr/pkgsrc/multimedia/libva/work/.buildlink/lib
 -Wl,-rpath,/usr/pkg/lib conftest.c conftstm.o -std=gnu99
 -Qunused-arguments
 [*] cc -E -I/usr/pkg/include -I/usr/pkg/include/libdrm -I/usr/include conftest.c
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -E
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 conftest.c -std=gnu99 -Qunused-arguments
 [*] cc -E -I/usr/pkg/include -I/usr/pkg/include/libdrm -I/usr/include conftest.c
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -E
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 conftest.c -std=gnu99 -Qunused-arguments
 [*] cc -E -I/usr/pkg/include -I/usr/pkg/include/libdrm -I/usr/include conftest.c
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -E
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 conftest.c -std=gnu99 -Qunused-arguments
 [*] cc -E -I/usr/pkg/include -I/usr/pkg/include/libdrm -I/usr/include conftest.c
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -E
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 conftest.c -std=gnu99 -Qunused-arguments
 [*] cc -c -O2 -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include conftest.c
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -c -O2
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 conftest.c -std=gnu99 -Qunused-arguments
 [*] cc -E -I/usr/pkg/include -I/usr/pkg/include/libdrm -I/usr/include conftest.c
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -E
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 conftest.c -std=gnu99 -Qunused-arguments
 [*] cc -E -I/usr/pkg/include -I/usr/pkg/include/libdrm -I/usr/include conftest.c
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -E
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 conftest.c -std=gnu99 -Qunused-arguments
 [*] cc -o conftest -O2 -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib
 -Wl,-R/usr/lib conftest.c -ldl
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -o conftest -O2
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 -L/usr/pkgsrc/multimedia/libva/work/.buildlink/lib
 -Wl,-rpath,/usr/pkg/lib conftest.c -ldl -std=gnu99 -Qunused-arguments
 [*] cc -c -O2 -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include conftest.c
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -c -O2
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 conftest.c -std=gnu99 -Qunused-arguments
 [*] cc -c -O2 -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include conftest.c
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -c -O2
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 conftest.c -std=gnu99 -Qunused-arguments
 [*] cc -c -O2 -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include conftest.c
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -c -O2
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 conftest.c -std=gnu99 -Qunused-arguments
 [*] cc -c -O2 -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include conftest.c
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -c -O2
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 conftest.c -std=gnu99 -Qunused-arguments
 [*] cc -c -O2 -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include conftest.c
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -c -O2
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 conftest.c -std=gnu99 -Qunused-arguments
 [*] cc -c -O2 -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include conftest.c
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -c -O2
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 conftest.c -std=gnu99 -Qunused-arguments
 [*] cc -c -O2 -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include conftest.c
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -c -O2
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 conftest.c -std=gnu99 -Qunused-arguments
 [*] cc -c -O2 -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include conftest.c
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -c -O2
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 conftest.c -std=gnu99 -Qunused-arguments
 [*] cc -c -O2 -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include conftest.c
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -c -O2
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 conftest.c -std=gnu99 -Qunused-arguments
 [*] cc -c -O2 -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include conftest.c
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -c -O2
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 conftest.c -std=gnu99 -Qunused-arguments
 [*] /usr/pkgsrc/multimedia/libva/work/.tools/bin/mkdir .libs
 <.> /bin/mkdir -p .libs
 [*] cc -c -O2 -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include conftest.c
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -c -O2
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 conftest.c -std=gnu99 -Qunused-arguments
 [*] cc -o conftest -O2 -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib
 -Wl,-R/usr/lib conftest.c -ldl
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -o conftest -O2
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 -L/usr/pkgsrc/multimedia/libva/work/.buildlink/lib
 -Wl,-rpath,/usr/pkg/lib conftest.c -ldl -std=gnu99 -Qunused-arguments
 [*] cc -c -O2 -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -fno-rtti -fno-exceptions conftest.c
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -c -O2
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 -fno-rtti -fno-exceptions conftest.c -std=gnu99 -Qunused-arguments
 [*] cc -c -O2 -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -fPIC -DPIC -DPIC conftest.c
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -c -O2
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm -fPIC
 -DPIC -DPIC conftest.c -std=gnu99 -Qunused-arguments
 [*] cc -o conftest -O2 -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib
 -Wl,-R/usr/lib -static conftest.c -ldl
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -o conftest -O2
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 -L/usr/pkgsrc/multimedia/libva/work/.buildlink/lib
 -Wl,-rpath,/usr/pkg/lib -static conftest.c -ldl -std=gnu99
 -Qunused-arguments
 [*] /usr/pkgsrc/multimedia/libva/work/.tools/bin/mkdir conftest
 <.> /bin/mkdir -p conftest
 [*] /usr/pkgsrc/multimedia/libva/work/.tools/bin/mkdir out
 <.> /bin/mkdir -p out
 [*] cc -c -O2 -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -o out/conftest2.o conftest.c
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -c -O2
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm -o
 out/conftest2.o conftest.c -std=gnu99 -Qunused-arguments
 [*] cc -c -O2 -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include conftest.c
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -c -O2
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 conftest.c -std=gnu99 -Qunused-arguments
 [*] cc -shared -fPIC -DPIC conftest.o -v -Wl,-soname -Wl,conftest -o conftest
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -shared -fPIC -DPIC conftest.o -v -Wl,-soname
 -Wl,conftest -o conftest -std=gnu99 -Qunused-arguments
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 [*] cc -print-search-dirs
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -print-search-dirs -std=gnu99
 -Qunused-arguments
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 [*] cc -I/usr/pkg/include -I/usr/pkg/include/libdrm -I/usr/include -O2
 -I/usr/pkg/include -I/usr/pkg/include/libdrm -I/usr/include
 -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib
 -print-multi-os-directory
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm -O2
 -L/usr/pkgsrc/multimedia/libva/work/.buildlink/lib
 -Wl,-rpath,/usr/pkg/lib -print-multi-os-directory -std=gnu99
 -Qunused-arguments
 [*] /usr/pkgsrc/multimedia/libva/work/.tools/bin/strip -V
 <.> set args -V; shift; exit 0
 [*] cc --version
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong --version -std=gnu99 -Qunused-arguments
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 [*] cc -v
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -v -std=gnu99 -Qunused-arguments
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 [*] cc -V
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -V -std=gnu99 -Qunused-arguments
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 [*] cc -qversion
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -qversion -std=gnu99 -Qunused-arguments
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 [*] c++ --version
 <.> /usr/pkgsrc/multimedia/libva/work/.compiler/bin/c++-fail-wrapper
 -m64 -fstack-protector-strong --version -Qunused-arguments
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 *** Please consider adding c++ to USE_LANGUAGES in the package Makefile.
 [*] c++ -v
 <.> /usr/pkgsrc/multimedia/libva/work/.compiler/bin/c++-fail-wrapper
 -m64 -fstack-protector-strong -v -Qunused-arguments
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 *** Please consider adding c++ to USE_LANGUAGES in the package Makefile.
 [*] c++ -V
 <.> /usr/pkgsrc/multimedia/libva/work/.compiler/bin/c++-fail-wrapper
 -m64 -fstack-protector-strong -V -Qunused-arguments
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 *** Please consider adding c++ to USE_LANGUAGES in the package Makefile.
 [*] c++ -qversion
 <.> /usr/pkgsrc/multimedia/libva/work/.compiler/bin/c++-fail-wrapper
 -m64 -fstack-protector-strong -qversion -Qunused-arguments
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 *** Please consider adding c++ to USE_LANGUAGES in the package Makefile.
 [*] c++ -c -O2 -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include conftest.cpp
 <.> /usr/pkgsrc/multimedia/libva/work/.compiler/bin/c++-fail-wrapper
 -m64 -fstack-protector-strong -c -O2
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 conftest.cpp -Qunused-arguments
 *** Please consider adding c++ to USE_LANGUAGES in the package Makefile.
 [*] c++ -c -g -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include conftest.cpp
 <.> /usr/pkgsrc/multimedia/libva/work/.compiler/bin/c++-fail-wrapper
 -m64 -fstack-protector-strong -c -g
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 conftest.cpp -Qunused-arguments
 *** Please consider adding c++ to USE_LANGUAGES in the package Makefile.
 [*] c++ -c -I/usr/pkg/include -I/usr/pkg/include/libdrm -I/usr/include
 conftest.cpp
 <.> /usr/pkgsrc/multimedia/libva/work/.compiler/bin/c++-fail-wrapper
 -m64 -fstack-protector-strong -c
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 conftest.cpp -Qunused-arguments
 *** Please consider adding c++ to USE_LANGUAGES in the package Makefile.
 [*] c++ -c -g -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include conftest.cpp
 <.> /usr/pkgsrc/multimedia/libva/work/.compiler/bin/c++-fail-wrapper
 -m64 -fstack-protector-strong -c -g
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 conftest.cpp -Qunused-arguments
 *** Please consider adding c++ to USE_LANGUAGES in the package Makefile.
 [*] /usr/pkgsrc/multimedia/libva/work/.tools/bin/mkdir conftest.dir
 <.> /bin/mkdir -p conftest.dir
 [*] /usr/pkgsrc/multimedia/libva/work/.tools/bin/mkdir sub
 <.> /bin/mkdir -p sub
 [*] c++ -MT sub/conftest.o -MD -MP -MF sub/conftest.TPo -c -o
 sub/conftest.o sub/conftest.c
 <.> /usr/pkgsrc/multimedia/libva/work/.compiler/bin/c++-fail-wrapper
 -m64 -fstack-protector-strong -MT sub/conftest.o -MD -MP -MF
 sub/conftest.TPo -c -o sub/conftest.o sub/conftest.c
 -Qunused-arguments
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 *** Please consider adding c++ to USE_LANGUAGES in the package Makefile.
 [*] c++ -c -o sub/conftest.o sub/conftest.c -Wp,-MD,sub/conftest.TPo
 <.> /usr/pkgsrc/multimedia/libva/work/.compiler/bin/c++-fail-wrapper
 -m64 -fstack-protector-strong -c -o sub/conftest.o sub/conftest.c
 -Wp,-MD,sub/conftest.TPo -Qunused-arguments
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 *** Please consider adding c++ to USE_LANGUAGES in the package Makefile.
 [*] c++ -c -o sub/conftest.o sub/conftest.c -Wp,-Msub/conftest.TPo
 <.> /usr/pkgsrc/multimedia/libva/work/.compiler/bin/c++-fail-wrapper
 -m64 -fstack-protector-strong -c -o sub/conftest.o sub/conftest.c
 -Wp,-Msub/conftest.TPo -Qunused-arguments
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 *** Please consider adding c++ to USE_LANGUAGES in the package Makefile.
 [*] c++ -c -o sub/conftest.o sub/conftest.c -MDupdate sub/conftest.TPo
 <.> /usr/pkgsrc/multimedia/libva/work/.compiler/bin/c++-fail-wrapper
 -m64 -fstack-protector-strong -c -o sub/conftest.o sub/conftest.c
 -MDupdate sub/conftest.TPo -Qunused-arguments
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 *** Please consider adding c++ to USE_LANGUAGES in the package Makefile.
 [*] c++ -c -o sub/conftest.o sub/conftest.c
 -Wp,-qmakedep=gcc,-MFsub/conftest.TPo
 <.> /usr/pkgsrc/multimedia/libva/work/.compiler/bin/c++-fail-wrapper
 -m64 -fstack-protector-strong -c -o sub/conftest.o sub/conftest.c
 -Wp,-qmakedep=gcc,-MFsub/conftest.TPo -Qunused-arguments
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 *** Please consider adding c++ to USE_LANGUAGES in the package Makefile.
 [*] c++ -c -o sub/conftest.o sub/conftest.c -M
 <.> /usr/pkgsrc/multimedia/libva/work/.compiler/bin/c++-fail-wrapper
 -m64 -fstack-protector-strong -c -o sub/conftest.o sub/conftest.c -M
 -Qunused-arguments
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 *** Please consider adding c++ to USE_LANGUAGES in the package Makefile.
 [*] c++ -c -o sub/conftest.o sub/conftest.c -MD -MF sub/conftest.TPo
 <.> /usr/pkgsrc/multimedia/libva/work/.compiler/bin/c++-fail-wrapper
 -m64 -fstack-protector-strong -c -o sub/conftest.o sub/conftest.c -MD
 -MF sub/conftest.TPo -Qunused-arguments
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 *** Please consider adding c++ to USE_LANGUAGES in the package Makefile.
 [*] /usr/pkgsrc/multimedia/libva/work/.tools/bin/mkdir conftest.d-lock
 <.> /bin/mkdir -p conftest.d-lock
 [*] c++ -c -o sub/conftest.o sub/conftest.c -MD
 <.> /usr/pkgsrc/multimedia/libva/work/.compiler/bin/c++-fail-wrapper
 -m64 -fstack-protector-strong -c -o sub/conftest.o sub/conftest.c -MD
 -Qunused-arguments
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 *** Please consider adding c++ to USE_LANGUAGES in the package Makefile.
 [*] c++ -c -o sub/conftest.o sub/conftest.c +Maked
 <.> /usr/pkgsrc/multimedia/libva/work/.compiler/bin/c++-fail-wrapper
 -m64 -fstack-protector-strong -c -o sub/conftest.o sub/conftest.c
 +Maked -Qunused-arguments
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 *** Please consider adding c++ to USE_LANGUAGES in the package Makefile.
 [*] c++ -c -o sub/conftest.o sub/conftest.c -MD
 <.> /usr/pkgsrc/multimedia/libva/work/.compiler/bin/c++-fail-wrapper
 -m64 -fstack-protector-strong -c -o sub/conftest.o sub/conftest.c -MD
 -Qunused-arguments
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 *** Please consider adding c++ to USE_LANGUAGES in the package Makefile.
 [*] c++ -c sub/conftest.c -showIncludes
 <.> /usr/pkgsrc/multimedia/libva/work/.compiler/bin/c++-fail-wrapper
 -m64 -fstack-protector-strong -c sub/conftest.c -showIncludes
 -Qunused-arguments
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 *** Please consider adding c++ to USE_LANGUAGES in the package Makefile.
 [*] c++ -c sub/conftest.c -showIncludes
 <.> /usr/pkgsrc/multimedia/libva/work/.compiler/bin/c++-fail-wrapper
 -m64 -fstack-protector-strong -c sub/conftest.c -showIncludes
 -Qunused-arguments
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 *** Please consider adding c++ to USE_LANGUAGES in the package Makefile.
 [*] cc -E -I/usr/pkg/include -I/usr/pkg/include/libdrm -I/usr/include
 conftest.cpp
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -E
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 conftest.cpp -std=gnu99 -Qunused-arguments
 [*] cc -E -I/usr/pkg/include -I/usr/pkg/include/libdrm -I/usr/include
 conftest.cpp
 <.> /usr/bin/clang -fcommon -Qunused-arguments -m64
 -fstack-protector-strong -E
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include
 -I/usr/pkgsrc/multimedia/libva/work/.buildlink/include/libdrm
 conftest.cpp -std=gnu99 -Qunused-arguments

 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.

 It was created by libva configure 2.20.0, which was
 generated by GNU Autoconf 2.69.  Invocation command line was

   $ ./configure --enable-shared --with-drivers-path=/usr/pkg/lib/dri
 --disable-wayland --disable-glx --prefix=/usr/pkg
 --build=x86_64-unknown-freebsd14 --host=x86_64-unknown-freebsd14
 --mandir=/usr/pkg/man --enable-option-checking=yes

 ## --------- ##
 ## Platform. ##
 ## --------- ##

 hostname = fbs14ryz
 uname -m = amd64
 uname -r = 14.0-RELEASE
 uname -s = FreeBSD
 uname -v = FreeBSD 14.0-RELEASE #0 releng140-n265380-f9716eee8ab4: Tue
 Nov 14 03:13:04 PST 2023
 xxxxx@xxxxx:/usr/obj/usr/src/amd64.amd64/sys/GENERIC

 /usr/bin/uname -p = amd64
 /bin/uname -X     = unknown

 /bin/arch              = unknown
 /usr/bin/arch -k       = unknown
 /usr/convex/getsysinfo = unknown
 /usr/bin/hostinfo      = unknown
 /bin/machine           = unknown
 /usr/bin/oslevel       = unknown
 /bin/universe          = unknown

 PATH: /usr/pkgsrc/multimedia/libva/work/.cwrapper/bin
 PATH: /usr/pkgsrc/multimedia/libva/work/.buildlink/bin
 PATH: /usr/pkgsrc/multimedia/libva/work/.tools/bin
 PATH: /usr/pkg/bin
 PATH: /usr/pkg/sbin
 PATH: /usr/pkg/bin
 PATH: /sbin
 PATH: /bin
 PATH: /usr/sbin
 PATH: /usr/bin
 PATH: /usr/local/sbin
 PATH: /usr/local/bin
 PATH: /home/xxxxx/bin
 PATH: /usr/pkg/bin
 PATH: /usr/pkg/bin


 ## ----------- ##
 ## Core tests. ##
 ## ----------- ##

 configure:3480: checking for x86_64-unknown-freebsd14-gcc
 configure:3507: result: clang
 configure:3776: checking for C compiler version
 configure:3785: clang --version >&5
 FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git
 llvmorg-16.0.6-0-g7cbf1a259152)
 Target: x86_64-unknown-freebsd14.0
 Thread model: posix
 InstalledDir: /usr/bin
 configure:3796: $? = 0
 configure:3785: clang -v >&5
 FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git
 llvmorg-16.0.6-0-g7cbf1a259152)
 Target: x86_64-unknown-freebsd14.0
 Thread model: posix
 InstalledDir: /usr/bin
 configure:3796: $? = 0
 configure:3785: clang -V >&5
 clang: error: unsupported option '-V -std=gnu99'
 clang: error: no input files
 configure:3796: $? = 1
 configure:3785: clang -qversion >&5
 clang: error: unknown argument '-qversion'; did you mean '--version'?
 clang: error: no input files
 configure:3796: $? = 1
 configure:3816: checking whether the C compiler works
 configure:3838: clang -O2 -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib
 -Wl,-R/usr/lib conftest.c -ldl >&5
 configure:3842: $? = 0
 configure:3890: result: yes

 ...

 configure:4165: checking for clang option to accept ISO C89
 configure:4228: clang  -c -O2 -I/usr/pkg/include
 -I/usr/pkg/include/libdrm -I/usr/include -I/usr/pkg/include
 -I/usr/pkg/include/libdrm -I/usr/include conftest.c >&5
 conftest.c:17:14: warning: a function definition without a prototype
 is deprecated in all versions of C and is not supported in C2x
 [-Wdeprecated-non-prototype]
 static char *e (p, i)
              ^
 1 warning generated.
 configure:4228: $? = 0
 configure:4241: result: none needed

 ...

 configure:7036: checking for mt
 configure:7052: found /usr/bin/mt
 configure:7063: result: mt
 configure:7086: checking if mt is a manifest tool
 configure:7092: mt '-?'
 mt: illegal option -- ?
 usage: mt [-f device] command [count]
 configure:7100: result: no
 configure:7777: checking how to run the C preprocessor
 configure:7808: clang -E -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include conftest.c
 configure:7808: $? = 0
 configure:7822: clang -E -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include conftest.c
 conftest.c:11:10: fatal error: 'ac_nonexistent.h' file not found
 #include <ac_nonexistent.h>
          ^~~~~~~~~~~~~~~~~~
 1 error generated.
 configure:7822: $? = 1
 configure: failed program was:
 | /* confdefs.h */
 | #define PACKAGE_NAME "libva"
 | #define PACKAGE_TARNAME "libva"
 | #define PACKAGE_VERSION "2.20.0"
 | #define PACKAGE_STRING "libva 2.20.0"
 | #define PACKAGE_BUGREPORT "https://github.com/intel/libva/issues/new"
 | #define PACKAGE_URL "https://github.com/intel/libva"
 | #define PACKAGE "libva"
 | #define VERSION "2.20.0"
 | /* end confdefs.h.  */
 | #include <ac_nonexistent.h>
 configure:7847: result: clang -E
 configure:7867: clang -E -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include conftest.c
 configure:7867: $? = 0
 configure:7881: clang -E -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include conftest.c
 conftest.c:11:10: fatal error: 'ac_nonexistent.h' file not found
 #include <ac_nonexistent.h>
          ^~~~~~~~~~~~~~~~~~
 1 error generated.
 configure:7881: $? = 1
 configure: failed program was:
 | /* confdefs.h */
 | #define PACKAGE_NAME "libva"
 | #define PACKAGE_TARNAME "libva"
 | #define PACKAGE_VERSION "2.20.0"
 | #define PACKAGE_STRING "libva 2.20.0"
 | #define PACKAGE_BUGREPORT "https://github.com/intel/libva/issues/new"
 | #define PACKAGE_URL "https://github.com/intel/libva"
 | #define PACKAGE "libva"
 | #define VERSION "2.20.0"
 | /* end confdefs.h.  */
 | #include <ac_nonexistent.h>

 ...

 configure:12642: checking for C compiler version
 configure:12651: clang --version >&5
 FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git
 llvmorg-16.0.6-0-g7cbf1a259152)
 Target: x86_64-unknown-freebsd14.0
 Thread model: posix
 InstalledDir: /usr/bin
 configure:12662: $? = 0
 configure:12651: clang -v >&5
 FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git
 llvmorg-16.0.6-0-g7cbf1a259152)
 Target: x86_64-unknown-freebsd14.0
 Thread model: posix
 InstalledDir: /usr/bin
 configure:12662: $? = 0
 configure:12651: clang -V >&5
 clang: error: unsupported option '-V -std=gnu99'
 clang: error: no input files
 configure:12662: $? = 1
 configure:12651: clang -qversion >&5
 clang: error: unknown argument '-qversion'; did you mean '--version'?
 clang: error: no input files
 configure:12662: $? = 1
 configure:12666: checking whether we are using the GNU C compiler
 configure:12694: result: yes
 configure:12703: checking whether clang accepts -g

 ...

 configure:12938: checking dependency style of clang
 configure:13049: result: gcc3
 configure:13176: checking for C++ compiler version
 configure:13185: clang++ --version >&5
 PKGSRC-WARNING: Something is trying to run the c++ compiler,
 PKGSRC-WARNING: but it is not added to USE_LANGUAGES in the package Makefile.
 configure:13196: $? = 1
 configure:13185: clang++ -v >&5
 PKGSRC-WARNING: Something is trying to run the c++ compiler,
 PKGSRC-WARNING: but it is not added to USE_LANGUAGES in the package Makefile.
 configure:13196: $? = 1
 configure:13185: clang++ -V >&5
 PKGSRC-WARNING: Something is trying to run the c++ compiler,
 PKGSRC-WARNING: but it is not added to USE_LANGUAGES in the package Makefile.
 configure:13196: $? = 1
 configure:13185: clang++ -qversion >&5
 PKGSRC-WARNING: Something is trying to run the c++ compiler,
 PKGSRC-WARNING: but it is not added to USE_LANGUAGES in the package Makefile.
 configure:13196: $? = 1
 configure:13200: checking whether we are using the GNU C++ compiler
 configure:13219: clang++ -c -O2 -I/usr/pkg/include
 -I/usr/pkg/include/libdrm -I/usr/include -I/usr/pkg/include
 -I/usr/pkg/include/libdrm -I/usr/include conftest.cpp >&5
 PKGSRC-WARNING: Something is trying to run the c++ compiler,
 PKGSRC-WARNING: but it is not added to USE_LANGUAGES in the package Makefile.
 configure:13219: $? = 1
 configure: failed program was:
 | /* confdefs.h */
 | #define PACKAGE_NAME "libva"
 | #define PACKAGE_TARNAME "libva"
 | #define PACKAGE_VERSION "2.20.0"
 | #define PACKAGE_STRING "libva 2.20.0"
 | #define PACKAGE_BUGREPORT "https://github.com/intel/libva/issues/new"
 | #define PACKAGE_URL "https://github.com/intel/libva"
 | #define PACKAGE "libva"
 | #define VERSION "2.20.0"
 | #define STDC_HEADERS 1
 | #define HAVE_SYS_TYPES_H 1
 | #define HAVE_SYS_STAT_H 1
 | #define HAVE_STDLIB_H 1
 | #define HAVE_STRING_H 1
 | #define HAVE_MEMORY_H 1
 | #define HAVE_STRINGS_H 1
 | #define HAVE_INTTYPES_H 1
 | #define HAVE_STDINT_H 1
 | #define HAVE_UNISTD_H 1
 | #define HAVE_DLFCN_H 1
 | #define LT_OBJDIR ".libs/"
 | /* end confdefs.h.  */
 |
 | int
 | main ()
 | {
 | #ifndef __GNUC__
 |        choke me
 | #endif
 |
 |   ;
 |   return 0;
 | }
 configure:13228: result: no
 configure:13237: checking whether clang++ accepts -g
 configure:13257: clang++ -c -g -I/usr/pkg/include
 -I/usr/pkg/include/libdrm -I/usr/include conftest.cpp >&5
 PKGSRC-WARNING: Something is trying to run the c++ compiler,
 PKGSRC-WARNING: but it is not added to USE_LANGUAGES in the package Makefile.
 configure:13257: $? = 1
 configure: failed program was:
 | /* confdefs.h */
 | #define PACKAGE_NAME "libva"
 | #define PACKAGE_TARNAME "libva"
 | #define PACKAGE_VERSION "2.20.0"
 | #define PACKAGE_STRING "libva 2.20.0"
 | #define PACKAGE_BUGREPORT "https://github.com/intel/libva/issues/new"
 | #define PACKAGE_URL "https://github.com/intel/libva"
 | #define PACKAGE "libva"
 | #define VERSION "2.20.0"
 | #define STDC_HEADERS 1
 | #define HAVE_SYS_TYPES_H 1
 | #define HAVE_SYS_STAT_H 1
 | #define HAVE_STDLIB_H 1
 | #define HAVE_STRING_H 1
 | #define HAVE_MEMORY_H 1
 | #define HAVE_STRINGS_H 1
 | #define HAVE_INTTYPES_H 1
 | #define HAVE_STDINT_H 1
 | #define HAVE_UNISTD_H 1
 | #define HAVE_DLFCN_H 1
 | #define LT_OBJDIR ".libs/"
 | /* end confdefs.h.  */
 |
 | int
 | main ()
 | {
 |
 |   ;
 |   return 0;
 | }
 configure:13272: clang++ -c  -I/usr/pkg/include
 -I/usr/pkg/include/libdrm -I/usr/include conftest.cpp >&5
 PKGSRC-WARNING: Something is trying to run the c++ compiler,
 PKGSRC-WARNING: but it is not added to USE_LANGUAGES in the package Makefile.
 configure:13272: $? = 1
 configure: failed program was:
 | /* confdefs.h */
 | #define PACKAGE_NAME "libva"
 | #define PACKAGE_TARNAME "libva"
 | #define PACKAGE_VERSION "2.20.0"
 | #define PACKAGE_STRING "libva 2.20.0"
 | #define PACKAGE_BUGREPORT "https://github.com/intel/libva/issues/new"
 | #define PACKAGE_URL "https://github.com/intel/libva"
 | #define PACKAGE "libva"
 | #define VERSION "2.20.0"
 | #define STDC_HEADERS 1
 | #define HAVE_SYS_TYPES_H 1
 | #define HAVE_SYS_STAT_H 1
 | #define HAVE_STDLIB_H 1
 | #define HAVE_STRING_H 1
 | #define HAVE_MEMORY_H 1
 | #define HAVE_STRINGS_H 1
 | #define HAVE_INTTYPES_H 1
 | #define HAVE_STDINT_H 1
 | #define HAVE_UNISTD_H 1
 | #define HAVE_DLFCN_H 1
 | #define LT_OBJDIR ".libs/"
 | /* end confdefs.h.  */
 |
 | int
 | main ()
 | {
 |
 |   ;
 |   return 0;
 | }
 configure:13288: clang++ -c -g -I/usr/pkg/include
 -I/usr/pkg/include/libdrm -I/usr/include conftest.cpp >&5
 PKGSRC-WARNING: Something is trying to run the c++ compiler,
 PKGSRC-WARNING: but it is not added to USE_LANGUAGES in the package Makefile.
 configure:13288: $? = 1
 configure: failed program was:
 | /* confdefs.h */
 | #define PACKAGE_NAME "libva"
 | #define PACKAGE_TARNAME "libva"
 | #define PACKAGE_VERSION "2.20.0"
 | #define PACKAGE_STRING "libva 2.20.0"
 | #define PACKAGE_BUGREPORT "https://github.com/intel/libva/issues/new"
 | #define PACKAGE_URL "https://github.com/intel/libva"
 | #define PACKAGE "libva"
 | #define VERSION "2.20.0"
 | #define STDC_HEADERS 1
 | #define HAVE_SYS_TYPES_H 1
 | #define HAVE_SYS_STAT_H 1
 | #define HAVE_STDLIB_H 1
 | #define HAVE_STRING_H 1
 | #define HAVE_MEMORY_H 1
 | #define HAVE_STRINGS_H 1
 | #define HAVE_INTTYPES_H 1
 | #define HAVE_STDINT_H 1
 | #define HAVE_UNISTD_H 1
 | #define HAVE_DLFCN_H 1
 | #define LT_OBJDIR ".libs/"
 | /* end confdefs.h.  */
 |
 | int
 | main ()
 | {
 |
 |   ;
 |   return 0;
 | }
 configure:13298: result: no
 configure:13323: checking dependency style of clang++
 configure:13434: result: none
 configure:13467: checking how to run the C++ preprocessor
 configure:13533: result: clang -E
 configure:13553: clang -E -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include conftest.cpp
 error: invalid argument '-std=gnu99' not allowed with 'C++'
 configure:13553: $? = 1
 configure: failed program was:
 | /* confdefs.h */
 | #define PACKAGE_NAME "libva"
 | #define PACKAGE_TARNAME "libva"
 | #define PACKAGE_VERSION "2.20.0"
 | #define PACKAGE_STRING "libva 2.20.0"
 | #define PACKAGE_BUGREPORT "https://github.com/intel/libva/issues/new"
 | #define PACKAGE_URL "https://github.com/intel/libva"
 | #define PACKAGE "libva"
 | #define VERSION "2.20.0"
 | #define STDC_HEADERS 1
 | #define HAVE_SYS_TYPES_H 1
 | #define HAVE_SYS_STAT_H 1
 | #define HAVE_STDLIB_H 1
 | #define HAVE_STRING_H 1
 | #define HAVE_MEMORY_H 1
 | #define HAVE_STRINGS_H 1
 | #define HAVE_INTTYPES_H 1
 | #define HAVE_STDINT_H 1
 | #define HAVE_UNISTD_H 1
 | #define HAVE_DLFCN_H 1
 | #define LT_OBJDIR ".libs/"
 | /* end confdefs.h.  */
 | #ifdef __STDC__
 | # include <limits.h>
 | #else
 | # include <assert.h>
 | #endif
 |      Syntax error
 configure:13553: clang -E -I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include conftest.cpp
 error: invalid argument '-std=gnu99' not allowed with 'C++'
 configure:13553: $? = 1
 configure: failed program was:
 | /* confdefs.h */
 | #define PACKAGE_NAME "libva"
 | #define PACKAGE_TARNAME "libva"
 | #define PACKAGE_VERSION "2.20.0"
 | #define PACKAGE_STRING "libva 2.20.0"
 | #define PACKAGE_BUGREPORT "https://github.com/intel/libva/issues/new"
 | #define PACKAGE_URL "https://github.com/intel/libva"
 | #define PACKAGE "libva"
 | #define VERSION "2.20.0"
 | #define STDC_HEADERS 1
 | #define HAVE_SYS_TYPES_H 1
 | #define HAVE_SYS_STAT_H 1
 | #define HAVE_STDLIB_H 1
 | #define HAVE_STRING_H 1
 | #define HAVE_MEMORY_H 1
 | #define HAVE_STRINGS_H 1
 | #define HAVE_INTTYPES_H 1
 | #define HAVE_STDINT_H 1
 | #define HAVE_UNISTD_H 1
 | #define HAVE_DLFCN_H 1
 | #define LT_OBJDIR ".libs/"
 | /* end confdefs.h.  */
 | #ifdef __STDC__
 | # include <limits.h>
 | #else
 | # include <assert.h>
 | #endif
 |      Syntax error
 configure:13583: error: in `/usr/pkgsrc/multimedia/libva/work/libva-2.20.0':
 configure:13586: error: C++ preprocessor "clang -E" fails sanity check
 See `config.log' for more details

 ## ---------------- ##
 ## Cache variables. ##
 ## ---------------- ##

 ac_cv_build=x86_64-unknown-freebsd14
 ac_cv_c_compiler_gnu=yes
 ac_cv_cxx_compiler_gnu=no
 ac_cv_env_CCC_set=''
 ac_cv_env_CCC_value=''
 ac_cv_env_CC_set=set
 ac_cv_env_CC_value=clang
 ac_cv_env_CFLAGS_set=set
 ac_cv_env_CFLAGS_value='-O2 -I/usr/pkg/include
 -I/usr/pkg/include/libdrm -I/usr/include'
 ac_cv_env_CPPFLAGS_set=set
 ac_cv_env_CPPFLAGS_value='-I/usr/pkg/include -I/usr/pkg/include/libdrm
 -I/usr/include'
 ac_cv_env_CPP_set=''
 ac_cv_env_CPP_value=''
 ac_cv_env_CXXCPP_set=set
 ac_cv_env_CXXCPP_value='clang -E'
 ac_cv_env_CXXFLAGS_set=set
 ac_cv_env_CXXFLAGS_value='-O2 -I/usr/pkg/include
 -I/usr/pkg/include/libdrm -I/usr/include'
 ac_cv_env_CXX_set=set
 ac_cv_env_CXX_value=clang++
 ac_cv_env_DRM_CFLAGS_set=''
 ac_cv_env_DRM_CFLAGS_value=''
 ac_cv_env_DRM_LIBS_set=''
 ac_cv_env_DRM_LIBS_value=''
 ac_cv_env_GLX_CFLAGS_set=''
 ac_cv_env_GLX_CFLAGS_value=''
 ac_cv_env_GLX_LIBS_set=''
 ac_cv_env_GLX_LIBS_value=''
 ac_cv_env_LDFLAGS_set=set
 ac_cv_env_LDFLAGS_value='-L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib
 -Wl,-R/usr/lib'
 ac_cv_env_LIBS_set=set
 ac_cv_env_LIBS_value=-ldl
 ac_cv_env_LT_SYS_LIBRARY_PATH_set=''
 ac_cv_env_LT_SYS_LIBRARY_PATH_value=''
 ac_cv_env_PKG_CONFIG_LIBDIR_set=set
 ac_cv_env_PKG_CONFIG_LIBDIR_value=/usr/pkgsrc/multimedia/libva/work/.buildlink/lib/pkgconfig:/usr/pkgsrc/multimedia/libva/work/.buildlink/share/pkgconfig
 ac_cv_env_PKG_CONFIG_PATH_set=set
 ac_cv_env_PKG_CONFIG_PATH_value=''
 ac_cv_env_PKG_CONFIG_set=set
 ac_cv_env_PKG_CONFIG_value=/usr/pkgsrc/multimedia/libva/work/.tools/bin/pkg-config
 ac_cv_env_WAYLAND_CFLAGS_set=''
 ac_cv_env_WAYLAND_CFLAGS_value=''
 ac_cv_env_WAYLAND_LIBS_set=''
 ac_cv_env_WAYLAND_LIBS_value=''
 ac_cv_env_WL_SCANNER_CFLAGS_set=''
 ac_cv_env_WL_SCANNER_CFLAGS_value=''
 ac_cv_env_WL_SCANNER_LIBS_set=''
 ac_cv_env_WL_SCANNER_LIBS_value=''
 ac_cv_env_X11_CFLAGS_set=''
 ac_cv_env_X11_CFLAGS_value=''
 ac_cv_env_X11_LIBS_set=''
 ac_cv_env_X11_LIBS_value=''
 ac_cv_env_build_alias_set=set
 ac_cv_env_build_alias_value=x86_64-unknown-freebsd14
 ac_cv_env_host_alias_set=set
 ac_cv_env_host_alias_value=x86_64-unknown-freebsd14
 ac_cv_env_target_alias_set=''
 ac_cv_env_target_alias_value=''
 ac_cv_header_dlfcn_h=yes
 ac_cv_header_inttypes_h=yes
 ac_cv_header_memory_h=yes
 ac_cv_header_stdc=yes
 ac_cv_header_stdint_h=yes
 ac_cv_header_stdlib_h=yes
 ac_cv_header_string_h=yes
 ac_cv_header_strings_h=yes
 ac_cv_header_sys_stat_h=yes
 ac_cv_header_sys_types_h=yes
 ac_cv_header_unistd_h=yes
 ac_cv_host=x86_64-unknown-freebsd14
 ac_cv_objext=o
 ac_cv_path_CAT=/bin/cat
 ac_cv_path_ECHO=echo
 ac_cv_path_EGREP=/usr/bin/egrep
 ac_cv_path_ENV=/usr/bin/env
 ac_cv_path_FALSE=false
 ac_cv_path_FGREP='/usr/bin/grep -F'
 ac_cv_path_GREP=/usr/bin/grep
 ac_cv_path_SED=/usr/bin/sed
 ac_cv_path_TEST=test
 ac_cv_path_TRUE=true
 ac_cv_path_lt_DD=/bin/dd
 ac_cv_prog_AWK=/usr/bin/awk
 ac_cv_prog_CC=clang
 ac_cv_prog_CPP='clang -E'
 ac_cv_prog_CXXCPP='clang -E'
 ac_cv_prog_ac_ct_AR=ar
 ac_cv_prog_ac_ct_MANIFEST_TOOL=mt
 ac_cv_prog_ac_ct_OBJDUMP=objdump
 ac_cv_prog_ac_ct_RANLIB=ranlib
 ac_cv_prog_ac_ct_STRIP=strip
 ac_cv_prog_cc_c89=''
 ac_cv_prog_cc_g=yes
 ac_cv_prog_cxx_g=no
 ac_cv_prog_make_make_set=yes
 am_cv_CC_dependencies_compiler_type=gcc3
 am_cv_CXX_dependencies_compiler_type=none
 am_cv_make_support_nested_variables=yes
 am_cv_prog_cc_c_o=yes
 lt_cv_ar_at_file=no
 lt_cv_archive_cmds_need_lc=no
 lt_cv_deplibs_check_method=pass_all
 lt_cv_file_magic_cmd='$MAGIC_CMD'
 lt_cv_file_magic_test_file=''
 lt_cv_ld_reload_flag=-r
 lt_cv_nm_interface='BSD nm'
 lt_cv_objdir=.libs
 lt_cv_path_LD=/usr/bin/ld
 lt_cv_path_NM=/usr/bin/nm
 lt_cv_path_mainfest_tool=no
 lt_cv_prog_compiler_c_o=yes
 lt_cv_prog_compiler_pic='-fPIC -DPIC'
 lt_cv_prog_compiler_pic_works=yes
 lt_cv_prog_compiler_rtti_exceptions=yes
 lt_cv_prog_compiler_static_works=yes
 lt_cv_prog_gnu_ld=yes
 lt_cv_sharedlib_from_linklib_cmd='printf %s\n'
 lt_cv_sys_global_symbol_pipe=$'sed -n -e \'s/^.*[\t
 ]\\([BCDEGRST][BCDEGRST]*\\)[\t ][\t
 ]*\\([_A-Za-z][_A-Za-z0-9]*\\)$/\\1 \\2 \\2/p\' | sed \'/
 __gnu_lto/d\''
 lt_cv_sys_global_symbol_to_c_name_address=$'sed -n -e \'s/^: \\(.*\\)
 .*$/  {"\\1", (void *) 0},/p\' -e \'s/^[BCDEGRST][BCDEGRST]* .*
 \\(.*\\)$/  {"\\1", (void *) \\&\\1},/p\''
 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix=$'sed -n -e
 \'s/^: \\(.*\\) .*$/  {"\\1", (void *) 0},/p\' -e
 \'s/^[BCDEGRST][BCDEGRST]* .* \\(lib.*\\)$/  {"\\1", (void *)
 \\&\\1},/p\' -e \'s/^[BCDEGRST][BCDEGRST]* .* \\(.*\\)$/  {"lib\\1",
 (void *) \\&\\1},/p\''
 lt_cv_sys_global_symbol_to_cdecl=$'sed -n -e \'s/^T .*
 \\(.*\\)$/extern int \\1();/p\' -e \'s/^[BCDEGRST][BCDEGRST]* .*
 \\(.*\\)$/extern char \\1;/p\''
 lt_cv_sys_global_symbol_to_import=''
 lt_cv_sys_max_cmd_len=524288
 lt_cv_to_host_file_cmd=func_convert_file_noop
 lt_cv_to_tool_file_cmd=func_convert_file_noop
 lt_cv_truncate_bin='/bin/dd bs=4096 count=1'

 ## ----------------- ##
 ## Output variables. ##
 ## ----------------- ##

 ACLOCAL='${SHELL}
 /usr/pkgsrc/multimedia/libva/work/libva-2.20.0/missing aclocal-1.15'
 AMDEPBACKSLASH='\'
 AMDEP_FALSE='#'
 AMDEP_TRUE=''
 AMTAR='$${TAR-tar}'
 AM_BACKSLASH='\'
 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 AM_DEFAULT_VERBOSITY='0'
 AM_V='$(V)'
 AR='ar'
 AUTOCONF='${SHELL}
 /usr/pkgsrc/multimedia/libva/work/libva-2.20.0/missing autoconf'
 AUTOHEADER='${SHELL}
 /usr/pkgsrc/multimedia/libva/work/libva-2.20.0/missing autoheader'
 AUTOMAKE='${SHELL}
 /usr/pkgsrc/multimedia/libva/work/libva-2.20.0/missing automake-1.15'
 AWK='/usr/bin/awk'
 CC='clang'
 CCDEPMODE='depmode=gcc3'
 CFLAGS='-O2 -I/usr/pkg/include -I/usr/pkg/include/libdrm -I/usr/include'
 CPP='clang -E'
 CPPFLAGS='-I/usr/pkg/include -I/usr/pkg/include/libdrm -I/usr/include'
 CXX='clang++'
 CXXCPP='clang -E'
 CXXDEPMODE='depmode=none'
 CXXFLAGS='-O2 -I/usr/pkg/include -I/usr/pkg/include/libdrm -I/usr/include'
 CYGPATH_W='echo'
 DEFS=''
 DEPDIR='.deps'
 DLLTOOL='false'
 DOXYGEN=''
 DRM_CFLAGS=''
 DRM_LIBS=''
 DSYMUTIL=''
 DUMPBIN=''
 ECHO_C=''
 ECHO_N='-n'
 ECHO_T=''
 EGREP='/usr/bin/egrep'
 ENABLE_DOCS_FALSE=''
 ENABLE_DOCS_TRUE=''
 EXEEXT=''
 FGREP='/usr/bin/grep -F'
 GLX_CFLAGS=''
 GLX_LIBS=''
 GREP='/usr/bin/grep'
 INSTALL_DATA='/usr/bin/install -c -o root -g wheel -m 644'
 INSTALL_PROGRAM='/usr/bin/install -c  -o root -g wheel -m 755'
 INSTALL_SCRIPT='/usr/bin/install -c -o root -g wheel -m 755'
 INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
 LD='/usr/bin/ld'
 LDFLAGS='-L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib'
 LIBDRM_VERSION=''
 LIBOBJS=''
 LIBS='-ldl'
 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 LIBVA_DRIVERS_PATH='/usr/pkg/lib/dri'
 LIBVA_LT_LDFLAGS='-version-info 2002:0:2000'
 LIBVA_LT_VERSION='2002:0:2000'
 LIBVA_MAJOR_VERSION='2'
 LIBVA_MICRO_VERSION='0'
 LIBVA_MINOR_VERSION='20'
 LIBVA_VERSION='2.20.0'
 LIPO=''
 LN_S='ln -s'
 LTLIBOBJS=''
 LT_SYS_LIBRARY_PATH=''
 MAKEINFO='/usr/pkgsrc/multimedia/libva/work/.tools/bin/makeinfo'
 MANIFEST_TOOL=':'
 MKDIR_P='./install-sh -c -d'
 NM='/usr/bin/nm'
 NMEDIT=''
 OBJDUMP='objdump'
 OBJEXT='o'
 OTOOL64=''
 OTOOL=''
 PACKAGE='libva'
 PACKAGE_BUGREPORT='https://github.com/intel/libva/issues/new'
 PACKAGE_NAME='libva'
 PACKAGE_STRING='libva 2.20.0'
 PACKAGE_TARNAME='libva'
 PACKAGE_URL='https://github.com/intel/libva'
 PACKAGE_VERSION='2.20.0'
 PATH_SEPARATOR=':'
 PKG_CONFIG='/usr/pkgsrc/multimedia/libva/work/.tools/bin/pkg-config'
 PKG_CONFIG_LIBDIR='/usr/pkgsrc/multimedia/libva/work/.buildlink/lib/pkgconfig:/usr/pkgsrc/multimedia/libva/work/.buildlink/share/pkgconfig'
 PKG_CONFIG_PATH=''
 RANLIB='ranlib'
 SED='/usr/bin/sed'
 SET_MAKE=''
 SHELL='/bin/sh'
 SSP_CC_FLAG=''
 STRIP='strip'
 TODAY='Mon, 20 Nov 2023 13:07:01 -0800'
 USE_DRM_FALSE=''
 USE_DRM_TRUE=''
 USE_GLX_FALSE=''
 USE_GLX_TRUE=''
 USE_WAYLAND_FALSE=''
 USE_WAYLAND_TRUE=''
 USE_X11_FALSE=''
 USE_X11_TRUE=''
 VA_API_MAJOR_VERSION='1'
 VA_API_MICRO_VERSION='0'
 VA_API_MINOR_VERSION='20'
 VA_API_VERSION='1.20.0'
 VERSION='2.20.0'
 WAYLAND_API_VERSION=''
 WAYLAND_CFLAGS=''
 WAYLAND_LIBS=''
 WAYLAND_SCANNER=''
 WL_SCANNER_CFLAGS=''
 WL_SCANNER_LIBS=''
 X11_CFLAGS=''
 X11_LIBS=''
 ac_ct_AR='ar'
 ac_ct_CC=''
 ac_ct_CXX=''
 ac_ct_DUMPBIN=''
 am__EXEEXT_FALSE=''
 am__EXEEXT_TRUE=''
 am__fastdepCC_FALSE='#'
 am__fastdepCC_TRUE=''
 am__fastdepCXX_FALSE=''
 am__fastdepCXX_TRUE='#'
 am__include='include'
 am__isrc=''
 am__leading_dot='.'
 am__nodep='_no'
 am__quote=''
 am__tar='$${TAR-tar} chof - "$$tardir"'
 am__untar='$${TAR-tar} xf -'
 bindir='${exec_prefix}/bin'
 build='x86_64-unknown-freebsd14'
 build_alias='x86_64-unknown-freebsd14'
 build_cpu='x86_64'
 build_os='freebsd14'
 build_vendor='unknown'
 datadir='${datarootdir}'
 datarootdir='${prefix}/share'
 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 dvidir='${docdir}'
 exec_prefix='NONE'
 host='x86_64-unknown-freebsd14'
 host_alias='x86_64-unknown-freebsd14'
 host_cpu='x86_64'
 host_os='freebsd14'
 host_vendor='unknown'
 htmldir='${docdir}'
 includedir='${prefix}/include'
 infodir='${datarootdir}/info'
 install_sh='${SHELL} /usr/pkgsrc/multimedia/libva/work/libva-2.20.0/install-sh'
 libdir='${exec_prefix}/lib'
 libexecdir='${exec_prefix}/libexec'
 localedir='${datarootdir}/locale'
 localstatedir='${prefix}/var'
 mandir='/usr/pkg/man'
 mkdir_p='$(MKDIR_P)'
 oldincludedir='/usr/include'
 pdfdir='${docdir}'
 pkgconfigdir=''
 prefix='/usr/pkg'
 program_transform_name='s,x,x,'
 psdir='${docdir}'
 runstatedir='${localstatedir}/run'
 sbindir='${exec_prefix}/sbin'
 sharedstatedir='${prefix}/com'
 sysconfdir='${prefix}/etc'
 target_alias=''

 ## ----------- ##
 ## confdefs.h. ##
 ## ----------- ##

 /* confdefs.h */
 #define PACKAGE_NAME "libva"
 #define PACKAGE_TARNAME "libva"
 #define PACKAGE_VERSION "2.20.0"
 #define PACKAGE_STRING "libva 2.20.0"
 #define PACKAGE_BUGREPORT "https://github.com/intel/libva/issues/new"
 #define PACKAGE_URL "https://github.com/intel/libva"
 #define PACKAGE "libva"
 #define VERSION "2.20.0"
 #define STDC_HEADERS 1
 #define HAVE_SYS_TYPES_H 1
 #define HAVE_SYS_STAT_H 1
 #define HAVE_STDLIB_H 1
 #define HAVE_STRING_H 1
 #define HAVE_MEMORY_H 1
 #define HAVE_STRINGS_H 1
 #define HAVE_INTTYPES_H 1
 #define HAVE_STDINT_H 1
 #define HAVE_UNISTD_H 1
 #define HAVE_DLFCN_H 1
 #define LT_OBJDIR ".libs/"

 configure: exit 1

From: Joerg Sonnenberger <joerg@bec.de>
To: nia@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
 davshao@gmail.com, gnats-bugs@netbsd.org
Cc: 
Subject:  Re: pkg/57702: multimedia/libva C++ preprocessor "clang -E" fails sanity
 check
Date: Mon, 20 Nov 2023 23:43:55 +0100

 On Monday, November 20, 2023 11:00:03 PM CET David Shao wrote:
 >  Sorry for the delay.  The simple answer from config.log seems to be a
 >  simple declaration that FreeBSD 14 base clang compiler simply does not
 >  support the -std=gnu99 option

 No, the problem is that clang is used to also compile C++ code as opposed to clang++.

 Joerg


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.