NetBSD Problem Report #54825

From www@netbsd.org  Thu Jan  2 01:45:06 2020
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-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 777AD7A1AC
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  2 Jan 2020 01:45:06 +0000 (UTC)
Message-Id: <20200102014505.61C877A1C1@mollari.NetBSD.org>
Date: Thu,  2 Jan 2020 01:45:05 +0000 (UTC)
From: eostre.danne@protonmail.com
Reply-To: eostre.danne@protonmail.com
To: gnats-bugs@NetBSD.org
Subject: xf86-video-intel fails to build; some warnings treated as errors (-Werror=implicit-function-declaration) in intel_device.c and backlight.c
X-Send-Pr-Version: www-1.0

>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:    linux-pkg-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 02 01:50:00 +0000 2020
>Last-Modified:  Fri Jan 03 13:27:21 +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

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->linux-pkg-people
Responsible-Changed-By: leot@NetBSD.org
Responsible-Changed-When: Fri, 03 Jan 2020 13:27:21 +0000
Responsible-Changed-Why:
Linux problem


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.45 2018/12/21 14:23:33 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.