Closed Kwaadpepper closed 6 years ago
Thank you @Kwaadpepper for reporting this compilation issue.
Following patch solved the compiling issue for me on 16.04.02:
diff --git a/Makefile b/Makefile
index ad4b043..9ada284 100644
--- a/Makefile
+++ b/Makefile
@@ -50,11 +50,11 @@ endif
# make
all:
- $(MAKE) -C /lib/modules/$(KERNEL_VERSION)/build M=$(PWD) modules
+ $(MAKE) -C /lib/modules/$(KERNEL_VERSION)/build M=$(shell pwd) modules
# make clean
clean:
- $(MAKE) -C /lib/modules/$(KERNEL_VERSION)/build M=$(PWD) clean
+ $(MAKE) -C /lib/modules/$(KERNEL_VERSION)/build M=$(shell pwd) clean
# make install (While developing, without using DKMS)
install:
diff --git a/douane.c b/douane.c
index 674bf10..6143805 100644
--- a/douane.c
+++ b/douane.c
@@ -30,6 +30,7 @@ enum nf_ip_hook_priorities {
#include <linux/netfilter.h> // nf_register_hook(), nf_unregister_hook()
#include <linux/netlink.h> // NLMSG_SPACE(), nlmsg_put(), NETLINK_CB(), NLMSG_DATA(), NLM_F_REQUEST, netlink_unicast(), netlink_kernel_release(), nlmsg_hdr(), NETLINK_USERSOCK, netlink_kernel_create()
#include <linux/sched.h> // for_each_process(), task_lock(), task_unlock()
+#include <linux/sched/signal.h> // for_each_process(), task_lock(), task_unlock()
#include <linux/ip.h> // ip_hdr()
#include <linux/udp.h> // udp_hdr()
#include <linux/tcp.h> // tcp_hdr()
Thank you very much @tejado for your input! Can you please open a pull request with this change so that @Kwaadpepper will test it?
Thank you @tejado! @Kwaadpepper can you please check and update this issue?
@Kwaadpepper any news please?
Hello sorry, I really don't have time nor the computer to test this. My apologies.
Le lun. 20 nov. 2017 à 09:33, Guillaume Hain notifications@github.com a écrit :
@Kwaadpepper https://github.com/kwaadpepper any news please?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Douane/douane-dkms/issues/24#issuecomment-345625099, or mute the thread https://github.com/notifications/unsubscribe-auth/AFvY8eVa4y2KXBzLi8thV_v-b5m16k1-ks5s4TlfgaJpZM4NJLdy .
Okay, thank you @Kwaadpepper for answering.
@tejado are you using your fork and is it working since?
I used it but currently I'm not using douane. But yeah, it worked with the mentioned patch.
@Kwaadpepper and @tejado I have merged the PR so please check and re-open an issue if it isn't fixed. Thank you @tejado for your contribution 👍
Thankyou @tejado for providing the patch! :)
I failed to install this :