#1066966 xserver-xorg-dev: wfbScreenInit should be declared unconditionally

Package:
xserver-xorg-dev
Source:
xserver-xorg-dev
Description:
Xorg X server - development files
Submitter:
Sven Joachim
Date:
2026-07-02 17:44:07 UTC
Severity:
normal
Tags:
#1066966#5
Date:
2024-03-16 08:51:26 UTC
From:
To:
As noticed in #1066382, xserver-xorg-video-nouveau FTBFS with
-Werror=implicit-function-declaration, because wfbScreenInit is not
explicitly declared.  The file /usr/include/xorg/fb.h has a prototype
for it, but currently it is hidden behind #ifdef FB_ACCESS_WRAPPER.

Unfortunately, simply #defining FB_ACCESS_WRAPPER in
xserver-xorg-video-nouveau does not work because while it makes the
package build, Xorg then fails to start with a symbol lookup error.

The fix is to declare wfbScreenInit unconditionally, and this is already
in the Xserver master branch, but not in the server-21.1-branch.  The
upstream merge request mentions problems with the autoconf build system
which could be fixed by switching to meson.