Comments (6)
Yes, this is not a DKMS bug, I'll use STRIP
option for now and I'll try to track this issue to understand why it's happening.
from dkms.
At a glance, the first thing I would recommend is removing the autotools/autoconf setup and using a simple Makefile or two. Autoconf/autotools are useful for very old and non-linux platforms, where the project seems to cover the complete opposite - modern linux.
By default, autotools generate a lot of unnecessary (for your use-case) files and data, while also mucking around with pre-processor/compiler/linker flags et al.
Another two pieces that pop-up while browsing through:
- all the dkms pre/post scripts should not be needed, same goes for the MAKE and CLEAN tokens in dkms.conf
- the version in dkms.conf and dkms/openwrt/package/Makefile should be updated during release/tag time - using sed to screen-scrape the data off the .C file is far from elegant
With ^^ addresses, I would be happy to have another look.
from dkms.
As I understand it, this module was intended to be included in xtables-addons
by original module autor @infinet:
https://github.com/infinet/xtables-addons
https://www.netfilter.org/projects/xtables-addons/index.html
Autoconf/autotools is used here with expectation of addition of this module in the main kernel/iptables packages at some point in the future and iptables is using autoconf/autotools to build modules.
Is it a good idea to keep separate simple Makefile to use with DKMS until this module is included in main package and separately maintain autoconf/autotools setup for this inclusion?
Overall thank you for your remarks, I'll try to remake this build setup into a simple Makefile, though I'll have to delve into how it even works first.
from dkms.
To be honest I don't particularly follow the whole xtables/xtables-addons situation.
From a quick test - this seems to be a user error/incorrect dkms conversion. Let me open a MR in the right place, thanks for the link.
/close
from dkms.
I've tried to use the simple Makefile that you provided as an example here:
infinet/xt_wgobfs#29
And it builds correct kernel module file if I just build it with make
using this Makefile:
$ ls -la xt_WGOBFS.ko
-rw-r--r-- 1 user user 524048 Oct 22 10:01 xt_WGOBFS.ko
But using DKMS it'll built kernel module file that is not working and has small size:
-rw-r--r-- 1 root root 13237 Oct 22 09:36 xt_WGOBFS.ko
So is it a problem somewhere in DKMS?
UPD:
Ok, it seems that this issue is caused by strip here:
https://github.com/dell/dkms/blob/master/dkms.in#L1115
DKMS builds correct module with this option in dkms.conf:
STRIP[0]="no"
from dkms.
Good find - didn't expect stripping to affect this.
Bear in mind that we use "strip --strip-debug" which as the name suggests should remove only the debug symbols. If that leads to a broken module then that sounds like a non-dkms bug. Either the strip tool itself is being overzealous or the module itself does not have it's data not stored/annotated correctly.
Distributions will typically do the same - either strip directly or via the kernel INSTALL_MOD_STRIP=1 toggle. So I strongly suggest tracking it down and reporting a bug.
In the meanwhile having a STRIP[0]="no"
workaround should be fine.
from dkms.
Related Issues (20)
- limiting a modules inclusion HOT 2
- Add some issue templates
- Add support for stateless systems
- Fallback to /usr/lib/os-release if /etc one is missing
- Key was rejected by service :sob: HOT 3
- Failed dkms status or autoinstall returns code 0 instead of an error one HOT 8
- Automatic DKMS installation does not detect different versions of the same module during upgrade. HOT 1
- key enrollment on non-EFI systems for `module.sig_enforce=1` kernel parameter HOT 3
- DKMS Does Not Sign v4l2loopback-dkms HOT 8
- common.postinst: binary-only ldtarball fails because load_tarball returns non-zero status HOT 6
- New dkms.conf directive for ignoring module build failures? HOT 1
- forcing autoinstall to rebuild all modules HOT 6
- document creation of missing signing key/certificate
- common.postinst and AUTOINSTALL="" HOT 6
- adding a BUILD_EXCLUSIVE_KERNEL... blacklist? HOT 3
- command to (re)sign currently installed modules
- Warnings since dkms-3.0.10 on Arch system HOT 9
- dkms built modules may be compressed in a way unsupported by the kernel HOT 4
- Kernel match for BUILT_MODULE_NAME HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dkms.