I am running amd64 current, (8.99.17), and have been using modular-xorg. After a two week vacation i updated /usr/pkgsrc with cvs and used pkg_chk -uas to update all the older packages.
Things ran until it got to the modular-xorg package, which tried to update modular-video-drivers, which then tried to build each xf86-video-* driver.
Even on the first video driver, xf86-video-amdgpu, it crashed regarding a reference to the define statements for bswap64, 32, and 16. See below:
/usr/pkg/bin/gmake all-recursive
gmake[1]: Entering directory '/usr/pkgsrc/x11/xf86-video-ati/work/xf86-video-ati-18.0.1
'
Making all in src
gmake[2]: Entering directory '/usr/pkgsrc/x11/xf86-video-ati/work/xf86-video-ati-18.0.1
/src'
CC ati.lo
In file included from /usr/include/inttypes.h:35:0,
from /usr/pkgsrc/x11/xf86-video-ati/work/.buildlink/include/pciaccess.
h:60,
from ati.c:60:
../config.h:135:18: error: expected declaration specifiers or '...' before '__builtin_c
onstant_p'
#define bswap_64 bswap64
^
/usr/pkgsrc/x11/xf86-video-ati/work/.buildlink/include/xorg/misc.h:300:1: note: in expa
nsion of macro 'bswap_64'
bswap_64(uint64_t x)
^~~~~~~~
../config.h:132:18: error: expected declaration specifiers or '...' before '__builtin_c
onstant_p'
#define bswap_32 bswap32
^
/usr/pkgsrc/x11/xf86-video-ati/work/.buildlink/include/xorg/misc.h:319:1: note: in expansion of macro 'bswap_32'
bswap_32(uint32_t x)
^~~~~~~~
etc....
I get this error no matter which xf86-video-* driver I try to build, so it's something more basic. Any suggestions? Thanks.