Questions tagged [linux-headers]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
36 views

kernel headers 5.19-rc2 and nvidia drivers

my problem: surly built 5.19-rc2 on a debian machine, works fine with nouveau driver but with nvidia-xconfig I don't get X to run. I installed nvidia-kernel-dkms and also tried the beta version ...
user avatar
0 votes
0 answers
227 views

How do I get VirtualBox to run on Arch?

When I try to start up a Windows 7 VM, I get 2 popup error windows. The first says: Failed to open a session for the virtual machine Windows7Box. The virtual machine 'Windows7Box' has terminated ...
user avatar
0 votes
1 answer
278 views

Compile kernel module targeting different kernel version

I have a simple "hello world" Linux kernel module that I would like to compile for a different host. My host is on a 5.x kernel version and the target is on 4.x. I do not want to update the ...
user avatar
0 votes
0 answers
57 views

Having trouble installing TP-Link AC1300 in Redhat 7.9

I am having trouble installing the driver for TP-Link AC1300 dongle in Red Hat. I followed this procedure for Ubuntu and it ultimately worked. Have been trying to follow the same steps in Red Hat, to ...
user avatar
  • 298
0 votes
0 answers
27 views

Seeking thoughts on a weird error in printk.h

I am compiling a vendor provided proprietary test code for their device driver on rhel8.4, kernel version 4.18.0-305.10.2.el8_4.x86_64. Both the driver and the corresponding test code had been ...
user avatar
  • 133
0 votes
1 answer
71 views

Installing different C compiler messed up system header files

Today I installed scc, which is a different C compiler. (Link) After realizing that scc was not mature enough for my use, I uninstalled it. Installing scc apparently replaced many C header files such ...
user avatar
1 vote
1 answer
154 views

What is the correct usage of CONFIG_TRIM_UNUSED_KSYMS and the whitelist file?

I want to build an out-of-tree driver using a kernel built from the latest mainline source code. I use localmodconfig when building, which reduces the number of modules and kernel symbols exported to ...
user avatar
0 votes
1 answer
949 views

dpkg linux headers dependencies error while upgrading the linux

I am using ubuntu 20 right now, from the last few days the software updater is popping up with some updates that need to be installed and when I click to install it starts the installation process but ...
user avatar
0 votes
1 answer
175 views

Cannot build kgdboe against kernel headers

I am trying to build kgdboe according to the following tutorial. I am running Ubuntu 20.04 with an updated kernel 5.9.0 as I needed a driver which was not available in stock kernel. I updated the ...
user avatar
  • 222
0 votes
1 answer
510 views

VMware Kernel-Headers

I Installed VMware-Player-16.1.2-17966106.x86_64.bundle . When I ran it in the GUI it shows I use Arch Linux and I installed all required packages as per Arch wiki . Many answers for this kind of ...
user avatar
0 votes
1 answer
192 views

Why debian installs linux headers in two different places?

Debian have two packages for headers one architecture dependent and another is not. They install headers in /usr/src/$LINUX/common and /usr/src/$LINUX/$ARCH and consequently two directories: build and ...
user avatar
  • 21
0 votes
1 answer
141 views

Can't compile headers on Kali Linux

i have a problem on my kali linux - i wanted to write a simple program which included 3 header files: #include <linux/input.h> #include <stdio.h> #include <fcntl.h> i tried to ...
user avatar
0 votes
1 answer
29 views

C-std headers containing helper functions for system, user and kernel times?

Basically, I am working with Nvidia's new github repos and trying to compile them in a cross-platform setup. Specifically, I am trying to compile them on Fedora 33. I have run into an issue: In file ...
user avatar
  • 653
2 votes
0 answers
322 views

Cannot install linux-headers because of uname

On Ubuntu (18.04.5 LTS) I tried to install linux headers (need that for acronis backup) with sudo apt-get install linux -headers-`uname -r` If i run that, apt lists 719 header-packages to be ...
user avatar
  • 121
0 votes
1 answer
719 views

what are the conventions around /lib/modules? [closed]

I'm creating a program that interacts withkernel headers. The user can provide a path to the location of the headers, but first I would like to be able discover existing kernel headers on the users's ...
user avatar
  • 161
0 votes
1 answer
84 views

How are conflicts avoided in Linux Headers?

I'm trying to understand how Linux works and how to build modules. So far I saw that Linux headers are stored in /usr/include and that the compiled implementation of these interfaces are located in /...
user avatar
  • 181
-3 votes
1 answer
436 views

Package "linux-headers" not available in Kali Linux

I found a tutorial of how to install Kali Linux on VirtualBox. Everything was going fine, until I enter this command: sudo apt update && sudo apt install -y linux-headers - $(uname -r) It ...
user avatar
1 vote
1 answer
2k views

Can't find the source of some "asm", "generated" header files in linux kernel?

So, I am writing a module, that is working in kernel space. My code compiles correctly and works correctly. The thing is that there are some header files, which I couldn't find anywhere. That doesn't ...
user avatar
2 votes
1 answer
1k views

Want to install VirtualBox Guest Additions on CentOS 7 but get a header mismatch

I try to install VirtualBox Guest Additions on a CentOS 7 VM. I installed the prerequisites via sudo yum install perl gcc dkms kernel-devel kernel-headers make bzip2 then I "inserted" the Guest ...
user avatar
  • 335
4 votes
1 answer
2k views

What is kernel headers that can be used in userspace? Do their signature or interface differ than the headers in different directories?

It might be a incoherent question about kernel headers as I don't have clear understanding about it and where and how it is used. I think it might get flagged down. My question has 3 parts: I think ...
user avatar
  • 95
0 votes
0 answers
113 views

Unable to install Linux_Headers for my distro armv71

I have been trying to get package linux headers for my "orange pi pc" computer unable to install them using apt get (tried everything you can think of directly) the goal is to install support for 0bda:...
user avatar
0 votes
0 answers
928 views

kernel headers installed but still missing

I'm working on a RPI2B+ with a fresh install of Raspbian Buster I want to install https://github.com/Mange/rtl8192eu-linux-driver.git so I have to run the following commands : apt update apt ...
user avatar
  • 69
3 votes
1 answer
2k views

NGINX can't read custom headers from response

From my nginx server I want to get an auth response with custom headers from an external Apache server. The problem is, I can't get the custom header's value. location /app { ...
user avatar
8 votes
3 answers
22k views

Failed to update Linux headers on debian stretch / Debian 9

After running below command i got error: # apt-get install linux-headers-$(uname -r) Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate ...
user avatar
0 votes
1 answer
929 views

UnixODBC-dev installed in /usr/local/, resulting in gcc reporting sql.h can't be found

My current use case is installing PyODBC via poetry in a Jenkins job build, which is failing because sql.h can't be found. For background, I have two servers, one RHEL 6, one RHEL 7; the RHEL 6 ...
user avatar
  • 3
0 votes
2 answers
2k views

make headers_install not working as expected

I have Ubuntu 16.04 LTS installed and have installed linux-headers. I am in the middle of trying to build uClibc-ng and it needs the linux headers. So when I run the following command from the linux-...
user avatar
2 votes
0 answers
243 views

Unable to find relevant linux headers

I am going through the steps to be able to use my Wacom tablet (CTL-6100WL) and I am to the point where I am installing the linux headers however this happens. (xenial)grace@localhost:~$ uname -r 3....
user avatar
  • 21
5 votes
1 answer
1k views

Kali Linux kernel headers for 4.14.71-v6

I am trying to install kernel headers version 4.14.71-v6 (uname -r) for Kali Linux. I already did the common commands... apt update apt upgrade apt dist-upgrade apt install linux-headers-generic alt ...
user avatar
0 votes
1 answer
745 views

kernel headers linux not found [duplicate]

I can't get past the : apt install linux-headers-$(uname -r) Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package linux-headers-4....
user avatar
  • 11
6 votes
1 answer
3k views

Why are there multiple copies of header files in /usr/include?

I've been browsing my /usr/include folder trying to get acquainted with the layout and I've noticed that there are multiple copies of header files (at least by name, I didn't actually diff them to see ...
user avatar
2 votes
0 answers
57 views

Installing Kernel Headers

I have built, installed, and am now running a recent 4.18.0-rc1+ kernel from kernel.org on a Xubuntu machine. The machine used to run 4.13.0-45. I am now trying to compile programs against it with gcc ...
user avatar
  • 121
1 vote
1 answer
5k views

How do I find kernel headers for a specific version of Linux kernel?

I need to write a kernel module for a Linux system as shown below. # uname -a Linux (none) 3.7.1 #1 SMP Mon Dec 23 06:07:19 PST 2013 i686 GNU/Linux # cat /proc/cpuinfo processor : 0 vendor_id ...
user avatar
  • 516
-2 votes
1 answer
926 views

trying to install linux headers but not found in sources

I have a ts7400v2 sbc and I am trying to install the linux-headers. I run: sudo apt-get install build-essential linux-headers-$(uname -r) but get the following error: sudo: unable to resolve host ...
user avatar
  • 3
-4 votes
1 answer
1k views

Kali Linux VirtualBox Header Problems [duplicate]

I'm trying to install VirtualBox guest additions on Kali Linux 2018.1 with the kernel version 4.14.0 But when I try to install them from the guest additions ISO by running the VBoxLinuxAdditions.run ...
user avatar
2 votes
1 answer
371 views

Should my Linux headers match my running kernel or what glibc was compiled against?

The last time I needed to deal with kernel headers was back in the Pleistocene (2.6 or so) and I remember back then that you needed to match your kernel headers not to the kernel you were running but ...
user avatar
  • 800