Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 575970 - x11-drivers/xf86-video-intel with sys-libs/glibc-2.23 - .../work/d1672806a5222f00dcc2eb24ccddd03f727f71bc/tools/backlight_helper.c:54:2: error: implicit declaration of function ‘major’ [-Werror=implicit-function-declaration]
Summary: x11-drivers/xf86-video-intel with sys-libs/glibc-2.23 - .../work/d1672806a522...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
Keywords: PATCH
: 579926 580150 580394 (view as bug list)
Depends on:
Blocks: glibc-sysmacros
  Show dependency tree
Reported: 2016-02-29 08:40 UTC by Franz Trischberger
Modified: 2016-12-07 05:20 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---

build.log.gz (build.log.gz,19.57 KB, application/gzip)
2016-02-29 08:40 UTC, Franz Trischberger
Include config.h in tools/backlight_helper.c (0001-tools-backlight_helper-include-config.h.patch,583 bytes, patch)
2016-04-14 01:52 UTC, Mike Gilbert
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Franz Trischberger 2016-02-29 08:40:27 UTC
Created attachment 426962 [details]

But IMHO this is not directly due to the removal of sysmacros.h from types.h. They check what to include in the buildsystem, set defines and act according to that. In this case they simply forgot to #include <config.h> in tools/backlight_helper.h
Comment 1 Rémi Cardona gentoo-dev 2016-02-29 21:01:16 UTC
I'm confused: major(3) on glibc 2.22 says major() comes from sys/types.h. Has that changed with glibc 2.23 ?
Comment 2 Chí-Thanh Christopher Nguyễn gentoo-dev 2016-02-29 23:21:32 UTC
This due to a Gentoo-specific change in glibc-2.23.
Other packages are affected too. See the blocked bug and
Comment 3 Mike Gilbert gentoo-dev 2016-04-14 01:50:48 UTC
This was (mostly) fixed already upstream.
Comment 4 Mike Gilbert gentoo-dev 2016-04-14 01:52:15 UTC
Created attachment 430350 [details, diff]
Include config.h in tools/backlight_helper.c

Here's a patch to complete the upstream code fix.
Comment 5 Mike Gilbert gentoo-dev 2016-04-14 18:08:58 UTC
*** Bug 579926 has been marked as a duplicate of this bug. ***
Comment 6 Mike Gilbert gentoo-dev 2016-04-15 22:34:08 UTC
*** Bug 580150 has been marked as a duplicate of this bug. ***
Comment 7 Lars Wendler (Polynomial-C) gentoo-dev 2016-04-18 08:21:56 UTC
*** Bug 580394 has been marked as a duplicate of this bug. ***
Comment 8 SpanKY gentoo-dev 2016-12-07 05:20:54 UTC
sent your patch upstream and added to Gentoo: