From: Luigi De Matteis <luigi.dematteis.linuxdev@gmail.com>
To: xdp-newbies@vger.kernel.org
Subject: error: ‘sock_type_names’ undeclared
Date: Sat, 8 Jul 2023 21:37:31 +0300 [thread overview]
Message-ID: <ZKms65z9ciQkzwjU@user> (raw)
Hi you all,
I'm trying to build the linux kernel following the guide on
kernelnewbies, is there anybody who can help me to figure out what the
following error is pointing to?
CALL scripts/checksyscalls.sh
DESCEND objtool
INSTALL libsubcmd_headers
DESCEND bpf/resolve_btfids
INSTALL libsubcmd_headers
CC security/apparmor/net.o
security/apparmor/net.c: In function ‘audit_net_cb’:
security/apparmor/net.c:81:13: error: ‘sock_type_names’ undeclared (first use in this function)
81 | if (sock_type_names[aad(sa)->net.type])
| ^~~~~~~~~~~~~~~
security/apparmor/net.c:81:13: note: each undeclared identifier is reported only once for each function it appears in
make[4]: *** [scripts/Makefile.build:243: security/apparmor/net.o] Error 1
make[3]: *** [scripts/Makefile.build:477: security/apparmor] Error 2
make[2]: *** [scripts/Makefile.build:477: security] Error 2
make[1]: *** [/home/user/Desktop/kernel/git/kernels/staging/Makefile:2020: .] Error 2
make: *** [Makefile:234: __sub-make] Error 2
I'm running on Ubuntu 22.04
thank you in advance,
Luigi
reply other threads:[~2023-07-08 18:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZKms65z9ciQkzwjU@user \
--to=luigi.dematteis.linuxdev@gmail.com \
--cc=xdp-newbies@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).