Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 594224 - app-laptop/tp_smapi-0.42 multiple undefined symbols
Summary: app-laptop/tp_smapi-0.42 multiple undefined symbols
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michael Orlitzky
URL:
Whiteboard:
Keywords:
Depends on: 591832
Blocks:
  Show dependency tree
 
Reported: 2016-09-18 12:06 UTC by merlin
Modified: 2016-10-05 12:58 UTC (History)
1 user (show)

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


Attachments
emerge log (log.txt,15.94 KB, text/plain)
2016-09-18 12:08 UTC, merlin
Details
emerge --info (emerge-info.txt,3.46 KB, text/plain)
2016-09-21 08:38 UTC, merlin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description merlin 2016-09-18 12:06:08 UTC
Emerging app-laptop/tp_smapi doesn't fail but warns about unknown symbols causing the tp_smapi (and hdaps and thinkpad_ec) kernel module unusable.
Comment 1 merlin 2016-09-18 12:08:37 UTC
Created attachment 446408 [details]
emerge log

Here is the full emerge trace.
Comment 2 Adam Feldman gentoo-dev 2016-09-20 23:37:12 UTC
Does this only occur on kernel 4.7?

Also, please attach emerge --info
Comment 3 merlin 2016-09-21 08:38:14 UTC
Created attachment 447026 [details]
emerge --info
Comment 4 merlin 2016-09-21 08:38:55 UTC
(In reply to NP-Hardass from comment #2)
> Does this only occur on kernel 4.7?
> 
> Also, please attach emerge --info

I don't know, first time I'm trying to emerge tp_smapi.
Comment 5 Michael Orlitzky gentoo-dev 2016-09-22 11:59:36 UTC
That version of tp_smapi should work with 4.7 kernels. I guess the first thing I would check is that the kernel in /usr/src/linux is built, and actually corresponds to the config file at /usr/src/linux/.config. Double check that /usr/src/linux points to /usr/src/linux-4.7.2-gentoo, too.

Most of those warnings (e.g. missing strncpy) aren't specific to tp_smapi so I'm thinking there's something wrong with the kernel source/build. You can also try to emerge some other out-of-tree kernel module, like net-fs/openafs-kernel or sys-fs/zfs-kmod. If every out-of-tree module throws the same warning, that gives us some useful information.
Comment 6 merlin 2016-09-26 11:14:54 UTC
(In reply to Michael Orlitzky from comment #5)
> That version of tp_smapi should work with 4.7 kernels. I guess the first
> thing I would check is that the kernel in /usr/src/linux is built, and
> actually corresponds to the config file at /usr/src/linux/.config. Double
> check that /usr/src/linux points to /usr/src/linux-4.7.2-gentoo, too.
I just upgraded to 4.7.5 and removed all older kernels. It persists.

> Most of those warnings (e.g. missing strncpy) aren't specific to tp_smapi so
> I'm thinking there's something wrong with the kernel source/build. You can
> also try to emerge some other out-of-tree kernel module, like
> net-fs/openafs-kernel or sys-fs/zfs-kmod. If every out-of-tree module throws
> the same warning, that gives us some useful information.
Is it possible these symbols get stripped somehow? CONFIG_STRIP_ASM_SYMS is not set.
Comment 7 Michael Orlitzky gentoo-dev 2016-10-02 23:43:48 UTC
Do you have CONFIG_TRIM_UNUSED_KSYMS=y? If so, can you try disabling it?
Comment 8 merlin 2016-10-05 12:58:24 UTC
That's the right option I activated during a kernel upgrade.
I thought it was CONFIG_STRIP_ASM_SYMS.
Thank you.