Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 493826 - sys-power/bbswitch-0.7 with kernel 3.13 - .../work/bbswitch-0.7/bbswitch.c:403:9: error: implicit declaration of function ‘DEVICE_ACPI_HANDLE’ [-Werror=implicit-function-declaration]
Summary: sys-power/bbswitch-0.7 with kernel 3.13 - .../work/bbswitch-0.7/bbswitch.c:40...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Pacho Ramos
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-12-10 09:54 UTC by Marko Samirić
Modified: 2013-12-11 21:09 UTC (History)
3 users (show)

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


Attachments
bbswitch 0.7 patch for kernel 3.13 (01_add-support-for-Linux-3.13.patch,910 bytes, patch)
2013-12-10 09:54 UTC, Marko Samirić
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marko Samirić 2013-12-10 09:54:15 UTC
Created attachment 365034 [details, diff]
bbswitch 0.7 patch for kernel 3.13

>>> Emerging (2 of 2) sys-power/bbswitch-0.7
 * bbswitch-0.7.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                             [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/3.13.0-rc3/build
 * Found sources for kernel version:
 *     3.13.0-rc3
>>> Unpacking source...
>>> Unpacking bbswitch-0.7.tar.gz to /var/tmp/portage/sys-power/bbswitch-0.7/work
>>> Source unpacked in /var/tmp/portage/sys-power/bbswitch-0.7/work
>>> Preparing source in /var/tmp/portage/sys-power/bbswitch-0.7/work/bbswitch-0.7 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-power/bbswitch-0.7/work/bbswitch-0.7 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-power/bbswitch-0.7/work/bbswitch-0.7 ...
ln: failed to create symbolic link ‘Module.symvers’: File exists
 * Preparing bbswitch module
make -j6 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' KVERSION=3.13.0-rc3 default 
make -C /lib/modules/3.13.0-rc3/build M="$(pwd)" modules
make[1]: Entering directory `/usr/src/linux-3.13-rc3'
  CC [M]  /var/tmp/portage/sys-power/bbswitch-0.7/work/bbswitch-0.7/bbswitch.o
/var/tmp/portage/sys-power/bbswitch-0.7/work/bbswitch-0.7/bbswitch.c: In function ‘bbswitch_init’:
/var/tmp/portage/sys-power/bbswitch-0.7/work/bbswitch-0.7/bbswitch.c:403:9: error: implicit declaration of function ‘DEVICE_ACPI_HANDLE’ [-Werror=implicit-function-declaration]
/var/tmp/portage/sys-power/bbswitch-0.7/work/bbswitch-0.7/bbswitch.c:403:16: warning: assignment makes pointer from integer without a cast [enabled by default]
cc1: some warnings being treated as errors
make[2]: *** [/var/tmp/portage/sys-power/bbswitch-0.7/work/bbswitch-0.7/bbswitch.o] Error 1
make[1]: *** [_module_/var/tmp/portage/sys-power/bbswitch-0.7/work/bbswitch-0.7] Error 2
make[1]: Leaving directory `/usr/src/linux-3.13-rc3'
make: *** [default] Error 2
 * ERROR: sys-power/bbswitch-0.7::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=sys-power/bbswitch-0.7::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-power/bbswitch-0.7::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-power/bbswitch-0.7/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-power/bbswitch-0.7/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-power/bbswitch-0.7/work/bbswitch-0.7'
 * S: '/var/tmp/portage/sys-power/bbswitch-0.7/work/bbswitch-0.7'

bug resolved upstream
https://github.com/Bumblebee-Project/bbswitch/issues/75

I tried patch from https://launchpad.net/ubuntu/trusty/+source/bbswitch/0.7-2ubuntu1 and it worked.

maybe bump to bbswitch 0.8?
Comment 1 Pacho Ramos gentoo-dev 2013-12-11 21:09:13 UTC
+*bbswitch-0.8 (11 Dec 2013)
+
+  11 Dec 2013; Pacho Ramos <pacho@gentoo.org> +bbswitch-0.8.ebuild,
+  -bbswitch-0.6.ebuild:
+  Version bump, drop old (#493826 by Marko Samiric)
+