Skip to contentSkip to conversation

netfilter: fix make target xt_TCPMSS.o error.

PATCH In review Huang Qijun 3 participants 3 messages May 6, 2020

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 netfilter: fix make target xt_TCPMSS.o error.

When compiling netfilter, there will be an error
"No rule to make target 'net/netfilter/xt_TCPMSS.o'", because the xt_TCPMSS.c in the makefile is uppercase,
and the file name of the source file (xt_tcpmss.c) is lowercase. Therefore, change the xt_TCPMSS.c name in the makefile to all lowercase.

---
 net/netfilter/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/netfilter/Makefile +1 -1
index 0e0ded87e27b..b974ade24556 100644
@@ -157,7 +157,7 @@ obj-$(CONFIG_NETFILTER_XT_TARGET_REDIRECT) += xt_REDIRECT.o
 obj-$(CONFIG_NETFILTER_XT_TARGET_MASQUERADE) += xt_MASQUERADE.o
 obj-$(CONFIG_NETFILTER_XT_TARGET_SECMARK) += xt_SECMARK.o
 obj-$(CONFIG_NETFILTER_XT_TARGET_TPROXY) += xt_TPROXY.o
-obj-$(CONFIG_NETFILTER_XT_TARGET_TCPMSS) += xt_TCPMSS.o
+obj-$(CONFIG_NETFILTER_XT_TARGET_TCPMSS) += xt_tcpmss.o
 obj-$(CONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP) += xt_TCPOPTSTRIP.o
 obj-$(CONFIG_NETFILTER_XT_TARGET_TEE) += xt_TEE.o
 obj-$(CONFIG_NETFILTER_XT_TARGET_TRACE) += xt_TRACE.o
Signature · 1 line
2.17.1
#1 lore raw

net/netfilter/Makefile obj-$(CONFIG_NETFILTER_XT_TARGET_REDIRECT) += xt_REDIRECT.o · line 160

Quoted 7 lines · Huang Qijun

When compiling netfilter, there will be an error
"No rule to make target 'net/netfilter/xt_TCPMSS.o'", because the xt_TCPMSS.c in the makefile is uppercase, and the file name of the source file (xt_tcpmss.c) is lowercase.

net/netfilter/Makefile +1 -1
-obj-$(CONFIG_NETFILTER_XT_TARGET_TCPMSS) += xt_TCPMSS.o
+obj-$(CONFIG_NETFILTER_XT_TARGET_TCPMSS) += xt_tcpmss.o

Uhm, no:

11:07 a4:../net/netfilter » ls -l xt_*[Mm][Ss]*.c -rw-r--r-- 1 jengelh users 8948 Feb 27 09:30 xt_TCPMSS.c -rw-r--r-- 1 jengelh users 2459 Feb 27 09:30 xt_tcpmss.c

#2 lore raw
In reply to Huang Qijun
Quoted 6 lines · Huang Qijun

When compiling netfilter, there will be an error
"No rule to make target 'net/netfilter/xt_TCPMSS.o'", because the xt_TCPMSS.c in the makefile is uppercase,
and the file name of the source file (xt_tcpmss.c) is lowercase. Therefore, change the xt_TCPMSS.c name in the makefile to all lowercase.

This is what you will get when you compile Linux kernel on a case-insensitive filesystem like MacOS.

Please use a case-sensitive one.