xorg-server 21.1.4: /usr/include/xorg/xf86Pci.h pciaccess.h
Beacuse of that #include pciaccess.h
many X11 drivers build are failing.
For Example
[tkloczko@pers-jacek xf86-video-amdgpu-21.0.0]$ make V=1
make all-recursive
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/xf86-video-amdgpu-21.0.0'
Making all in src
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/xf86-video-amdgpu-21.0.0/src'
/bin/sh ../libtool --tag=CC --mode=compile /usr/bin/gcc -DHAVE_CONFIG_H -I. -I.. -Wall -I/usr/include/libdrm -I/usr/include/X11/dri -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c -o amdgpu_video.lo amdgpu_video.c
libtool: compile: /usr/bin/gcc -DHAVE_CONFIG_H -I. -I.. -Wall -I/usr/include/libdrm -I/usr/include/X11/dri -I/usr/include/xorg -fvisibility=hidden -I/usr/include/pixman-1 -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -c amdgpu_video.c -fPIC -DPIC -o .libs/amdgpu_video.o
In file included from amdgpu_drv.h:50,
from amdgpu_video.c:11:
/usr/include/xorg/xf86Pci.h:108:10: fatal error: pciaccess.h: No such file or directory
108 | #include <pciaccess.h>
| ^~~~~~~~~~~~~
compilation terminated.
However in pkgconfig file there is no Requires: pciaccess
[tkloczko@pers-jacek SPECS]$ cat /usr/lib64/pkgconfig/xorg-server.pc
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib64
includedir=${prefix}/include
datarootdir=${prefix}/share
moduledir=/usr/lib64/xorg/modules
sdkdir=${prefix}/include/xorg
sysconfigdir=${datarootdir}/X11/xorg.conf.d
abi_ansic=0.4
abi_videodrv=25.2
abi_xinput=24.4
abi_extension=10.0
Name: xorg-server
Description: Modular X.Org X Server
Version: 21.1.4
Requires.private: pixman-1 >= 0.27.2
Cflags: -I${sdkdir} -fvisibility=hidden
Libs: -L${libdir}
I'm not sure but -fvisibility=hidden
should probably not included in CFlags: