-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mudule built by DKMS is not working and has much smaller size #353
Comments
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:
With ^^ addresses, I would be happy to have another look. |
As I understand it, this module was intended to be included in 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? |
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 |
I've tried to use the simple Makefile that you provided as an example here:
But using DKMS it'll built kernel module file that is not working and has small size:
So is it a problem somewhere in DKMS? UPD:
|
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 |
Yes, this is not a DKMS bug, I'll use |
I'm trying to create
dkms.conf
for kernel module, but I have a problem with it. When module is compiled using DKMS then there are no errors during build and resulting object files are good but the resulting kernel module file (.ko) has very small size (16kB instead of 500kB) and the module is not working so it seems that there is some problem with linker maybe? But there are no errors or related messages to it.Originally the module is compiled with
./autogen.sh && ./configure && make
so I've addedPRE_BUILD=
script with./autogen.sh && ./configure
andMAKE="make"
indkms.conf
.Building with DKMS like this ends up with not working resulting kernel module file.
I've tried for a test to add
./autogen.sh && ./configure && make
inPRE_BUILD=
script and then check the resulting kernel module file at the end of this script and it turned out that it was built correctly.So there is some problem with how DMKS is building it with
MAKE="make"
.Can someone advise me what can I do to make DKMS build the kernel module correctly? Or do I have some errors in
dkms.conf
?Here is the error when I try to use the module built using DKMS:
Here is the module in question with DKMS support in the current state:
https://github.com/lampotakl/xt_wgobfs/tree/dkms
The text was updated successfully, but these errors were encountered: