Bug#842964: bbswitch-dkms: dkms install fails due to error "implicit declaration of function 'apci_bus_get_device'"

Karl-Philipp Richter krichter at posteo.de
Wed Nov 2 16:50:47 UTC 2016


Package: bbswitch-dkms
Version: 0.8-4
Severity: important

Dear Maintainer,

`dkms install` fails due to 

    DKMS make.log for bbswitch-0.8 for kernel 4.7.0-1-powerpc (ppc)
    Mi 2. Nov 17:44:05 CET 2016
    make -C /lib/modules/4.7.0-1-powerpc/build M="$(pwd)" modules
    make[1]: Verzeichnis „/usr/src/linux-headers-4.7.0-1-powerpc“ wird betreten
      CC [M]  /var/lib/dkms/bbswitch/0.8/build/bbswitch.o
    /var/lib/dkms/bbswitch/0.8/build/bbswitch.c: In function ‘bbswitch_off’:
    /var/lib/dkms/bbswitch/0.8/build/bbswitch.c:267:13: error: implicit declaration of function ‘acpi_bus_get_device’ [-Werror=implicit-function-declaration]
             r = acpi_bus_get_device(dis_handle, &ad);
                 ^
    /var/lib/dkms/bbswitch/0.8/build/bbswitch.c:272:15: error: dereferencing pointer to incomplete type ‘struct acpi_device’
             if (ad->power.state == ACPI_STATE_UNKNOWN) {
                   ^
    /var/lib/dkms/bbswitch/0.8/build/bbswitch.c: In function ‘bbswitch_init’:
    /var/lib/dkms/bbswitch/0.8/build/bbswitch.c:460:18: error: implicit declaration of function ‘proc_create’ [-Werror=implicit-function-declaration]
         acpi_entry = proc_create("bbswitch", 0664, acpi_root_dir, &bbswitch_fops);
                  ^
    /var/lib/dkms/bbswitch/0.8/build/bbswitch.c:460:16: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
         acpi_entry = proc_create("bbswitch", 0664, acpi_root_dir, &bbswitch_fops);
                    ^
    /var/lib/dkms/bbswitch/0.8/build/bbswitch.c: In function ‘bbswitch_exit’:
    /var/lib/dkms/bbswitch/0.8/build/bbswitch.c:490:5: error: implicit declaration of function ‘remove_proc_entry’ [-Werror=implicit-function-declaration]
         remove_proc_entry("bbswitch", acpi_root_dir);
         ^
    cc1: some warnings being treated as errors
    /usr/src/linux-headers-4.7.0-1-common/scripts/Makefile.build:300: die Regel für Ziel „/var/lib/dkms/bbswitch/0.8/build/bbswitch.o“ scheiterte
    make[4]: *** [/var/lib/dkms/bbswitch/0.8/build/bbswitch.o] Fehler 1
    /usr/src/linux-headers-4.7.0-1-common/Makefile:1475: die Regel für Ziel „_module_/var/lib/dkms/bbswitch/0.8/build“ scheiterte
    make[3]: *** [_module_/var/lib/dkms/bbswitch/0.8/build] Fehler 2
    Makefile:150: die Regel für Ziel „sub-make“ scheiterte
    make[2]: *** [sub-make] Fehler 2
    Makefile:8: die Regel für Ziel „all“ scheiterte
    make[1]: *** [all] Fehler 2
    make[1]: Verzeichnis „/usr/src/linux-headers-4.7.0-1-powerpc“ wird verlassen
    Makefile:13: die Regel für Ziel „default“ scheiterte
    make: *** [default] Fehler 2


-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: powerpc (ppc)

Kernel: Linux 4.7.0-1-powerpc
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages bbswitch-dkms depends on:
ii  dkms  2.3-1

bbswitch-dkms recommends no packages.

Versions of packages bbswitch-dkms suggests:
ii  bumblebee  3.2.1-13

-- no debconf information



More information about the pkg-nvidia-devel mailing list