tp-smapi-dkms 0.41-1: tp-smapi kernel module failed to build [error: return from incompatible pointer type]

Bug #1633216 reported by Mario A Fragela
192
This bug affects 43 people
Affects Status Importance Assigned to Milestone
tp-smapi (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

after upgrade to kernel 4.8.1 problems develop with tlp. maybe support will commom in the next build

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: tp-smapi-dkms 0.41-1
Uname: Linux 4.8.1-040801-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
DKMSKernelVersion: 4.8.1-040801-generic
Date: Thu Oct 13 15:37:36 2016
DuplicateSignature: dkms:tp-smapi-dkms:0.41-1:./include/linux/moduleparam.h:344:67: error: return from incompatible pointer type [-Werror=incompatible-pointer-types]
InstallationDate: Installed on 2016-10-12 (1 days ago)
InstallationMedia: Ubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
PackageArchitecture: all
PackageVersion: 0.41-1
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.1
 apt 1.2.12~ubuntu16.04.1
SourcePackage: tp-smapi
Title: tp-smapi-dkms 0.41-1: tp-smapi kernel module failed to build
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Mario A Fragela (fragman204-9) wrote :
tags: removed: need-duplicate-check
Revision history for this message
linrunner (linrunner) wrote :

Hi,

0.41-1 won't compile with a kernel >= 4.7.

Install tp-smapi-dkms 0.42-1 from Yakkety --> http://packages.ubuntu.com/yakkety/tp-smapi-dkms

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in tp-smapi (Ubuntu):
status: New → Confirmed
Changed in tp-smapi (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Willem Hobers (whobers) wrote :

Hi, I just experienced this problem, but I can not check "yes, affect me".
Will this do?

Revision history for this message
gonzo (kazanjian) wrote :

@linrunner the provided link leads to an error page ["two or more packages specified (tp-smapi-dkms yakkety)"]

Revision history for this message
gonzo (kazanjian) wrote :

here's the equivalent package from the zesty repos: https://packages.ubuntu.com/zesty/all/tp-smapi-dkms/download

Revision history for this message
Willem Hobers (whobers) wrote :

It also happened to me, but I can not check "it also affects me".

no longer affects: gnome-utils
Revision history for this message
luckyrings (d8f2) wrote :

hello all,

I reinstalled my Ubuntu 16.04LTS on my Lenovo X230 and used a self created packet list to reinstall automatic all my software. As there was NO repository configured for the ppa:linrunner/tlp it installed by accident the version from ubuntu sources: "tp-smapi-dkms_0.41-1_all.deb".

linrunner already set what is wrong (0.41-1 won't compile with a kernel >= 4.7).

After adding the repository ppa:linrunner/tlp and reinstalled the tlp services from the wiki (http://thinkwiki.de/TLP_-_Linux_Stromsparen) as described:

sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install tlp tlp-rdw
sudo apt-get install tp-smapi-dkms acpi-call-dkms

It upgraded the tp-smapi-dkms and the error seems now gone and away. Just to consider this information, maybe it helps you. I am open for feedback here.

Kind regards
luckyrings

Revision history for this message
luckyrings (d8f2) wrote :

Additional comment: the version provided by the linrunner repository: 0.42-1

Revision history for this message
Larry Wilson (larry2311) wrote :

Obviously still an unresolved issue. Just did an Ubuntu update on 16.04 and the following dialog and errors:
/var/lib/dkms/tp-smapi/0.41/build/make.log
Unpacking tp-smapi-dkms (0.41-1) over (0.41-1) ...
Setting up tp-smapi-dkms (0.41-1) ...

Creating symlink /var/lib/dkms/tp-smapi/0.41/source ->
                 /usr/src/tp-smapi-0.41

DKMS: add completed.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=4.10.0-40-generic -C /lib/modules/4.10.0-40-generic/build M=/var/lib/dkms/tp-smapi/0.41/build....(bad exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/tp-smapi-dkms.0.crash'
Error! Bad return status for module build on kernel: 4.10.0-40-generic (x86_64)
Consult /var/lib/dkms/tp-smapi/0.41/build/make.log for more information.

^^^^^^^^^^^^^^^^^^^^^

Can someone push this into the mainline ASAP. Please...

Revision history for this message
Larry Wilson (larry2311) wrote :

Performing the "sudo add-apt-repository ppa:linrunner/tlp" and thence update/upgrade worked fine.

  *** Needs to be pushed to the mainline repositories, asap ***

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 1606447, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

summary: - tp-smapi-dkms 0.41-1: tp-smapi kernel module failed to build
+ tp-smapi-dkms 0.41-1: tp-smapi kernel module failed to build [error:
+ return from incompatible pointer type]
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.