fatal error: linux/netfilter/xt_DSCP.h: No such file or directory

3,122 views
Skip to first unread message

Peter Ma

unread,
May 23, 2014, 1:42:14 PM5/23/14
to android-...@googlegroups.com
Hey guys,

Pretty much just stock Android kit kat,  when I am trying to use make -j4

I am getting this error an hour down the line


In file included from out/target/product/hammerhead/obj/STATIC_LIBRARIES/libext4_intermediates/libipt_ECN.c:11:0:

external/iptables/extensions/../include/linux/netfilter_ipv4/ipt_ECN.h:13:37: fatal error: linux/netfilter/xt_DSCP.h: No such file or directory

 #include <linux/netfilter/xt_DSCP.h>

                                     ^

compilation terminated.

make: *** [out/target/product/hammerhead/obj/STATIC_LIBRARIES/libext4_intermediates/libipt_ECN.o] Error 1

make: *** Waiting for unfinished jobs....


Any hint on what to do?

I can only locate xt_DSCP.h under prebuilds from the repo.

Let me know if there is a solution for this.



Greg Tarsa

unread,
May 26, 2014, 11:41:50 AM5/26/14
to android-...@googlegroups.com
It looks like most of these files are paired so that an UPPERcase or lowercase version will match.  This one did not.  I created a symlink in linux/netfilter of xt_DSCP.h to xt_dscp.h to get around the problem without changing any source code. That seems to have gotten me going again.

cd external/iptables/extensions/../include/linux/netfilter
ln -s xt_dscp.h xt_DSCP.h

Ramsudharsan Madhavan

unread,
May 26, 2014, 12:21:52 PM5/26/14
to android-...@googlegroups.com
I guess the present kitkat sources are quite messy.

You can try the following method:

First take the log of the I/O in the terminal and save it into a text file. 

Open the log and try to find the full path of this:

external/iptables/extensions/../include/linux/netfilter_ipv4/

As you say you can locate the xt_DSCP.h under prebuilts from the repo, copy it and paste it in this location:

external/iptables/extensions/../include/linux/netfilter/

After that restart the compilation.

Hope it helps.


--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Bence Szalai

unread,
Sep 18, 2017, 10:25:12 AM9/18/17
to Android Building
This solved the issue for me! Thanks!

aditya deshpande

unread,
Apr 11, 2018, 12:04:51 PM4/11/18
to Android Building
This worked for me as well!! Thanks.
Reply all
Reply to author
Forward
0 new messages