Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 613422 - sys-auth/elogind-226.4 : src/.../terminal-util.c:1033:13: error: implicit declaration of function ‘major’ [-Werror=implicit-function-declaration]
Summary: sys-auth/elogind-226.4 : src/.../terminal-util.c:1033:13: error: implicit dec...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: glibc-sysmacros
  Show dependency tree
 
Reported: 2017-03-21 18:55 UTC by Toralf Förster
Modified: 2017-03-22 04:12 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,6.07 KB, text/plain)
2017-03-21 18:55 UTC, Toralf Förster
Details
config.log.tbz2 (config.log.tbz2,14.85 KB, application/x-bzip)
2017-03-21 18:55 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,460.84 KB, text/plain)
2017-03-21 18:55 UTC, Toralf Förster
Details
environment (environment,149.42 KB, text/plain)
2017-03-21 18:55 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,59.80 KB, application/x-bzip)
2017-03-21 18:55 UTC, Toralf Förster
Details
sys-auth:elogind-226.4:20170321-142443.log (sys-auth:elogind-226.4:20170321-142443.log,157.81 KB, text/plain)
2017-03-21 18:56 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,43.79 KB, application/x-bzip)
2017-03-21 18:56 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-03-21 18:55:40 UTC
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -include ./config.h -DPKGSYSCONFDIR=\"/etc/elogind\" -DSYSTEMD_CGROUP_CONTROLLER=\"name=openrc\" -DELOGIND_CGROUP_AGENT_PATH=\"/usr/libexec/elogind/elogind-cgroups-agent\" -DUDEVLIBEXECDIR=\"/lib/udev\" -DPOLKIT_AGENT_BINARY_PATH=\"/usr/bin/pkttyagent\" -DSYSTEM_SLEEP_PATH=\"/usr/libexec/elogind/sleep.d\" -DSYSTEM_SHUTDOWN_PATH=\"/usr/libexec/elogind/shutdown.d\" -DHALT=\"/sbin/halt\" -DREBOOT=\"/sbin/reboot\" -DKEXEC=\"/usr/sbin/kexec\" -DLIBDIR=\"/usr/lib64\" -DTEST_DIR=\"/var/tmp/portage/sys-auth/elogind-226.4/work/elogind-226.4/test\" -I ./src -I ./src/basic -I ./src/basic -I ./src/core -I ./src/shared -I ./src/shared -I ./src/login -I ./src/systemd -I ./src/libelogind/sd-bus -I ./src/libelogind/sd-event -I ./src/libelogind/sd-login -pipe -Wall -Wextra -Wundef -Wformat=2 -Wformat-security -Wformat-nonliteral -Wlogical-op -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wsuggest-attribute=noreturn -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=missing-declarations -Werror=return-type -Werror=shadow -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Wno-format-signedness -Werror=overflow -Wdate-time -Wnested-externs -ffast-math -fno-common -fdiagnostics-show-option -fno-strict-aliasing -fvisibility=hidden -fstack-protector -fstack-protector-strong --param=ssp-buffer-size=4 -ffunction-sections -fdata-sections -pthread -O2 -pipe -march=native -Wall -c src/basic/terminal-util.c  -fPIC -DPIC -o src/basic/.libs/libbasic_la-terminal-util.o
src/basic/terminal-util.c: In function ‘get_ctty_devnr’:
src/basic/terminal-util.c:1033:13: error: implicit declaration of function ‘major’ [-Werror=implicit-function-declaration]
         if (major(ttynr) == 0 && minor(ttynr) == 0)
             ^~~~~
src/basic/terminal-util.c:1033:9: warning: nested extern declaration of ‘major’ [-Wnested-externs]

  -----------------------------------------------------------------

  This is an unstable amd64 chroot image (named plasma-abi32+64_20170309-193709) at a hardened host acting as a tinderbox.

  -----------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-6.3.0 *
llvm-config:
3.9.1
Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python3.6 (fallback)
  [3]   python2.7 (fallback)
  [4]   pypy (fallback)
  [5]   jython2.7 (fallback)
Available Ruby profiles:
  [1]   ruby21 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
1)	IcedTea JDK 7.2.6.9 [icedtea-7]
2)	IcedTea JDK 7.2.6.9 [icedtea-bin-7]
*)	IcedTea JDK 3.3.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-7 
  [2]   icedtea-bin-7 
  [3]   icedtea-bin-8  system-vm
Comment 1 Toralf Förster gentoo-dev 2017-03-21 18:55:44 UTC
Created attachment 467806 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-03-21 18:55:47 UTC
Created attachment 467808 [details]
config.log.tbz2
Comment 3 Toralf Förster gentoo-dev 2017-03-21 18:55:50 UTC
Created attachment 467810 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2017-03-21 18:55:53 UTC
Created attachment 467812 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2017-03-21 18:55:56 UTC
Created attachment 467814 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-03-21 18:56:00 UTC
Created attachment 467816 [details]
sys-auth:elogind-226.4:20170321-142443.log
Comment 7 Toralf Förster gentoo-dev 2017-03-21 18:56:03 UTC
Created attachment 467818 [details]
temp.tbz2
Comment 8 Andreas Sturmlechner gentoo-dev 2017-03-21 19:12:41 UTC
Thanks, fixed in git commit c69127a348a81e7374e4746effd9add4299696c2
Comment 9 Sven Eden 2017-03-22 04:12:03 UTC
Thank you very much! I'll make sure that fix goes into v226.5