pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/54825: xf86-video-intel fails to build; some warnings treated as errors (-Werror=implicit-function-declaration) in intel_device.c and backlight.c



>Number:         54825
>Category:       pkg
>Synopsis:       xf86-video-intel fails to build; some warnings treated as errors (-Werror=implicit-function-declaration) in intel_device.c and backlight.c
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 02 01:50:00 +0000 2020
>Originator:     Eostre
>Release:        pkgsrc 2019Q4
>Organization:
Hobbyist
>Environment:
Linux hiigara 5.5.0-rc3abyssal+ #4 SMP PREEMPT Sun Dec 29 02:22:50 EST 2019 x86_64 GNU/Linux
>Description:
Building xf86-video-intel as a dependency of modular-xorg fails. The compilation errors reported are:

--- backlight.lo ---                    
backlight.c: In function 'is_sysfs_fd':
backlight.c:175:32: error: implicit declaration of function 'major' [-Werror=implicit-function-declaration]
  175 |  return fstat(fd, &st) == 0 && major(st.st_dev) == 0;

and

--- intel_device.lo ---
intel_device.c: In function '__intel_open_device__major_minor':
intel_device.c:296:7: error: implicit declaration of function 'major' [-Werror=implicit-function-declaration]
  296 |       major(st.st_rdev) == _major &&
      |       ^~~~~
intel_device.c:296:7: warning: nested extern declaration of 'major' [-Wnested-externs]
intel_device.c:297:7: error: implicit declaration of function 'minor' [-Werror=implicit-function-declaration]
  297 |       minor(st.st_rdev) == _minor) {



>How-To-Repeat:
Set up pkgsrc on a Linux box, in my case $HOME/.local/pkgsrc running on Void linux, and try to install meta-pkgs/modular-xorg.
>Fix:
No solution known


Home | Main Index | Thread Index | Old Index