Skip to content
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

Linux kernel CL error #775

Open
simonchen opened this issue Nov 10, 2022 · 3 comments
Open

Linux kernel CL error #775

simonchen opened this issue Nov 10, 2022 · 3 comments

Comments

@simonchen
Copy link

make[3]: *** No rule to make target 'net/netfilter/xt_TCPMSS.o', needed by 'net/netfilter/built-in.o'. Stop.

solved by https://lkml.org/lkml/2020/5/6/1301

===================================================

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.
===================================================

vim ./rt-n56u/trunk/linux-3.4.x/net/netfilter/Makefile

replace xt_TCPMSS.c with xt_tcpmss

@simonchen
Copy link
Author

simonchen commented Nov 10, 2022

Separately, CL error at ./trunk/user/miniupnpd/miniupnpd-2.x/netfilter/iptcrdr.c

trunk/user/miniupnpd/miniupnpd-2.x/netfilter/iptcrdr.c:990:28: error: invalid application of 'sizeof' to incomplete type 'struct xt_DSCP_info'
+ IPT_ALIGN(sizeof(struct xt_DSCP_info));

there is a line #include <linux/netfilter/xt_DSCP.h> that have declared the struct xt_DSCP_info,
not sure exactly why it couldn't be found then raised up 'invalid application of 'sizeof' to ...'

I've manually copy the sturct xt_DSCP_info in iptcrdr.c , CL is passed .

@simonchen
Copy link
Author

(if test -r libcom_err.a; then /bin/rm -f libcom_err.a.bak && /bin/mv libcom_err.a libcom_err.a.bak; fi)
(cd elfshared; /work/rt-n56u/trunk/../toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-gcc -mips32r2 -march=mips32r2 -mtune=24kec -o libcom_err.so.2.1
-L../../../lib -L/work/rt-n56u/trunk/stage/lib -Wl,--gc-sections -Wl,--gc-sections -fPIC -shared
-Wl,-soname,libcom_err.so.2 error_message.o et_name.o init_et.o com_err.o com_right.o )
/work/rt-n56u/trunk/../toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-ar rc libcom_err.a error_message.o et_name.o init_et.o com_err.o com_right.o
/bin/rm -f ../libcom_err.a
(cd ..; /bin/ln -s
echo lib/et | sed -e 's;lib/;;'/libcom_err.a libcom_err.a)
/bin/mv elfshared/libcom_err.so.2.1 .
/bin/rm -f ../libcom_err.so.2.1 ../libcom_err.so ../libcom_err.so.2
(cd ..; /bin/ln -s
echo lib/et | sed -e 's;lib/;;'/libcom_err.so.2.1 libcom_err.so.2.1)
(cd ..; /bin/ln -s libcom_err.so.2.1 libcom_err.so)
(cd ..; /bin/ln -s libcom_err.so.2.1 libcom_err.so.2)
make[5]: Leaving directory '/work/rt-n56u/trunk/user/e2fsprogs/e2fsprogs-1.45.3/lib/et'
making all in lib/ss
make[5]: Entering directory '/work/rt-n56u/trunk/user/e2fsprogs/e2fsprogs-1.45.3/lib/ss'
make -s real-subdirs
../../util/subst -f ../../util/subst.conf ./mk_cmds.sh.in mk_cmds
make[6]: Entering directory '/work/rt-n56u/trunk/user/e2fsprogs/e2fsprogs-1.45.3/lib/ss'
make[6]: Leaving directory '/work/rt-n56u/trunk/user/e2fsprogs/e2fsprogs-1.45.3/lib/ss'
touch subdirs
/bin/chmod +x mk_cmds
_ET_DIR_OVERRIDE=./../et ../et/compile_et ./ss_err.et
_ET_DIR_OVERRIDE=./../et ../et/compile_et ./ss_err.et
chmod: changing permissions of 'ss_err.h': No such file or directory
chmod: changing permissions of 'ss_err.c': No such file or directory
Makefile:534: recipe for target 'ss_err.h' failed
make[5]: *** [ss_err.h] Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: Leaving directory '/work/rt-n56u/trunk/user/e2fsprogs/e2fsprogs-1.45.3/lib/ss'
Makefile:446: recipe for target 'all-libs-recursive' failed
make[4]: *** [all-libs-recursive] Error 1
make[4]: Leaving directory '/work/rt-n56u/trunk/user/e2fsprogs/e2fsprogs-1.45.3'
Makefile:367: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/work/rt-n56u/trunk/user/e2fsprogs/e2fsprogs-1.45.3'
Makefile:10: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/work/rt-n56u/trunk/user/e2fsprogs'
Makefile:222: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/work/rt-n56u/trunk/user'
Makefile:202: recipe for target 'user_only' failed

@simonchen
Copy link
Author

算了,不折腾了,让github自动编译

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant