Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 623740 - sys-power/acpi_call-1.1.0-r1: acpi_call.c:277:9: error: implicit declaration of function ‘copy_from_user’ [-Werror=implicit-function-declaration] (>= Kernel 4.12)
Summary: sys-power/acpi_call-1.1.0-r1: acpi_call.c:277:9: error: implicit declaration ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Maxim Koltsov (RETIRED)
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2017-07-03 20:48 UTC by Conrad Kostecki
Modified: 2017-07-06 15:54 UTC (History)
4 users (show)

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


Attachments
acpi_call-1.1.0-linux-4.12.patch (acpi_call-1.1.0-linux-4.12.patch,315 bytes, patch)
2017-07-03 20:49 UTC, Conrad Kostecki
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Conrad Kostecki gentoo-dev 2017-07-03 20:48:20 UTC
With Kernel 4.12, sys-power/acpi_call fails to compile.

I've created a patch, which make compiles on kernel 4.12.

 * Preparing acpi_call module
make -j5 -l4 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' KDIR=/lib/modules/4.12.0-gentoo/build M=/var/tmp/portage/sys-power/acpi_call-1.1.0-r1/work/acpi_call-1.1.0 default
make -C /lib/modules/4.12.0-gentoo/build M=/var/tmp/portage/sys-power/acpi_call-1.1.0-r1/work/acpi_call-1.1.0 modules
make[1]: Verzeichnis „/usr/src/linux-4.12.0-gentoo“ wird betreten
  CC [M]  /var/tmp/portage/sys-power/acpi_call-1.1.0-r1/work/acpi_call-1.1.0/acpi_call.o
/var/tmp/portage/sys-power/acpi_call-1.1.0-r1/work/acpi_call-1.1.0/acpi_call.c: In function ‘acpi_proc_write’:
/var/tmp/portage/sys-power/acpi_call-1.1.0-r1/work/acpi_call-1.1.0/acpi_call.c:277:9: error: implicit declaration of function ‘copy_from_user’ [-Werror=implicit-function-declaration]
     if (copy_from_user( input, buff, len )) {
         ^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:309: /var/tmp/portage/sys-power/acpi_call-1.1.0-r1/work/acpi_call-1.1.0/acpi_call.o] Error 1
make[1]: *** [Makefile:1512: _module_/var/tmp/portage/sys-power/acpi_call-1.1.0-r1/work/acpi_call-1.1.0] Fehler 2
make[1]: Verzeichnis „/usr/src/linux-4.12.0-gentoo“ wird verlassen
make: *** [Makefile:8: default] Fehler 2
 * ERROR: sys-power/acpi_call-1.1.0-r1::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sys-power/acpi_call-1.1.0-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-power/acpi_call-1.1.0-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-power/acpi_call-1.1.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-power/acpi_call-1.1.0-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-power/acpi_call-1.1.0-r1/work/acpi_call-1.1.0'
 * S: '/var/tmp/portage/sys-power/acpi_call-1.1.0-r1/work/acpi_call-1.1.0'
Comment 1 Conrad Kostecki gentoo-dev 2017-07-03 20:48:55 UTC
Portage 2.3.6 (python 3.6.1-final-0, default/linux/amd64/13.0/desktop, gcc-6.3.0, glibc-2.24-r3, 4.12.0-gentoo x86_64)
=================================================================
System uname: Linux-4.12.0-gentoo-x86_64-Intel-R-_Core-TM-_i7-6600U_CPU_@_2.60GHz-with-gentoo-2.4.1
KiB Swap:   17301500 total,  17301500 free
Timestamp of repository gentoo: Mon, 03 Jul 2017 19:15:01 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.28 p1.2) 2.28
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.3.4 [enabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo, 3.5.3::gentoo, 3.6.1-r1::gentoo
dev-util/ccache:          3.3.4::gentoo
dev-util/cmake:           3.8.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1::gentoo
sys-apps/openrc:          0.27.2::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r3::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.15.1::gentoo
sys-devel/binutils:       2.28-r2::gentoo
sys-devel/gcc:            6.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.24-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: --exclude-from=/etc/portage/rsync_excludes

serenity
    location: /usr/local/portage
    masters: gentoo

steam-overlay
    location: /usr/local/portage/steam-overlay
    sync-type: git
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mfpmath=sse,387 -mtune=intel -O3 -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=native -mfpmath=sse,387 -mtune=intel -O3 -fomit-frame-pointer -malign-data=abi -mtls-dialect=gnu2 -pipe -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=n --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.halifax.rwth-aachen.de/gentoo/"
INSTALL_MASK="/etc/xinetd.d/* /usr/lib/systemd/system/*"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,-z,now"
MAKEOPTS="-j5 -l4"
PKGDIR="/usr/portage/packages"
PORTAGE_BUNZIP2_COMMAND="pbunzip2"
PORTAGE_BZIP2_COMMAND="pbzip2"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9e"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aalib accessibility acl acpi adns alsa amd64 ao berkdb bluetooth bzip2 cairo caps cdda cddb cdinstall cjk cracklib crypt css ctype cups curl cvs cxx dbus dga djvu dri dts dvb dvd encode exif fbcon ffmpeg flac flite fontconfig ftp gd gdbm gif gimp git glut gmp gnome-keyring gnutls gphoto2 gpm gps graphviz gsm gstreamer gtk http iconv icu idn imlib inotify introspection ipv6 java javascript jbig jit joystick jpeg jpeg2k lame lcms libcaca libnotify libsamplerate lm_sensors lzma lzo mad maildir matroska mbox mhash mikmod mmap mng modplug mono mp3 mpeg mtp ncurses networkmanager nls nntp nptl nsplugin offensive ogg openal opencl openexr opengl openmp orc oss pam pcre pdf perl pie png policykit posix postproc postscript pulseaudio python qt4 qt5 quicktime raw readline recode samba sasl scanner sdl seccomp session simplexml slang smartcard smp sndfile snmp sockets sound speex spell sqlite ssl startup-notification subversion suid svg symlink tcpd theora threads tiff timidity truetype udev udisks unicode upnp usb v4l vaapi vcd vdpau vim-syntax vnc vorbis wavpack webkit wifi wmf x264 xattr xcb xcomposite xface xft xml xmp xpm xscreensaver xv xvid zeroconf zlib zsh-completion" ABI_X86="32 64" COLLECTD_PLUGINS="battery cgroups conntrack contextswitch cpu cpufreq cpusleep df disk dns entropy ethstat exec filecount hddtemp hugepages interface ipc irq load lvm memory netlink nfs nginx openvpn ping postgresql processes protocols rrdcached sensors serial smart swap syslog tcpconns thermal unixsock uptime users wireless" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext sse sse2 sse3 ssse3 sse4_1 sse4_2" CURL_SSL="openssl" ELIBC="glibc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de de_DE" LINGUAS="de de_DE" NGINX_MODULES_HTTP="access auth_basic autoindex charset fancyindex fastcgi geo geoip gunzip gzip proxy realip rewrite stub_status upstream_keepalive" NGINX_MODULES_STREAM="access geo geoip realip ssl_preread" PHP_TARGETS="php7-1" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby24" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="i965 intel" XFCE_PLUGINS="power trash"
USE_PYTHON="2.7 3.6"
Unset:  CC, CPPFLAGS, CTARGET, CXX
Comment 2 Conrad Kostecki gentoo-dev 2017-07-03 20:49:40 UTC
Created attachment 480600 [details, diff]
acpi_call-1.1.0-linux-4.12.patch
Comment 3 Christoph Junghans (RETIRED) gentoo-dev 2017-07-06 15:54:42 UTC
commit efd2ddc8c87dc36f34aed8fa62ea06fe2dc44c5f (HEAD -> master, origin/master, origin/HEAD)
Author: Christoph Junghans <junghans@gentoo.org>
Date:   Thu Jul 6 09:52:41 2017 -0600

    sys-power/acpi_call: add patch for linux-4.12 (bug #623740)

    Package-Manager: Portage-2.3.6, Repoman-2.3.1