Score:0

/usr/include/linux discrepancies

cn flag

How do I ensure my header files in /usr/include/linux are updated?

/usr/src/linux-hwe-5.8-headers-5.8.0-63/include/uapi/linux/bpf.h

and

/usr/include/linux/bpf.h
are significantly different where /usr/include/linux/bfp.h is out of date relative to the file in /src.

current uname -r output is 5.8.0-63-generic

I attempted all of the required updates such as

  • sudo apt update
  • sudo apt upgrade
  • sudo apt-get dist-upgrade
  • sudo apt-get install linux-headers-generic
  • sudo apt remove --purge linux-headers-*
  • sudo apt autoremove && sudo apt autoclean
  • sudo apt install --reinstall linux-headers-5.8.0-63-generic
  • sudo apt install linux-generic-hwe-20.04

Host has been rebooted. -rw-r--r-- 1 root root 138325 Jul 9 09:49 /usr/include/linux/bpf.h -rw-r--r-- 1 root root 160181 Jul 15 07:51 /usr/src/linux-hwe-5.8-headers-5.8.0-63/include/uapi/linux/bpf.h

What am I missing and what can I do to get the more current bpf.h header installed without brute force that may impart compliation/run time problems if done incorrectly.

This was discovered when attempting to build bpftrace where

/usr/include/bpf/bpf.h

depends upon

/usr/include/linux/bpf.h and this file is not up to date.

Knud Larsen avatar
by flag
Hint : `/usr/include/linux/bpf.h` is provided by the package `linux-libc-dev` , i.e. support headers for userspace development. ... The headers in /usr/src/ are for "building kernel modules" only .
Dwight J. Browne avatar
cn flag
Upgrading linux-libc-dev did not help
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.