Skip to main content

Questions tagged [header-file]

Filter by
Sorted by
Tagged with
0 votes
0 answers
164 views

Missing header files for linux development

I am new to linux development and I want to develop a linux module, but I am running into an issue. Some header files, notably <linux/init.h>, are missing (/not found) I am currently using ...
Dennis Solomon's user avatar
0 votes
1 answer
348 views

How to defer kernel updates until the corresponding "linux-headers" package is available?

I'm using Debian 12 Bookworm, and currently, when I run uname -a, it shows: Linux pctxd 6.1.0-20-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.85-1 (2024-04-11) x86_64 GNU/Linux The package linux-image-6....
gh57.at's user avatar
  • 13
2 votes
2 answers
107 views

Does GRUB 2.12 now support detached headers?

In GRUB's project status update, at FOSDEM 2022, they talked about adding detached headers support in GRUB 2.12 (for decryption) : Add cryptodisk detached headers and key files support, Denis 'GNUtoo'...
ChennyStar's user avatar
  • 1,805
0 votes
1 answer
195 views

Missing EXTERN.h file when installing claws-mail on Fedora 37

I've trying to compile Claws-mail but got error: perl_plugin.c:54:10: fatal error: EXTERN.h: No such file or directory 54 | #include <EXTERN.h> I've installed perl-core perl-devel was ...
jcubic's user avatar
  • 10k
7 votes
2 answers
1k views

Detached LUKS-header on Debian-based GNU/Linux

There is scattered information on how to set up a detached header for a LUKS-encrypted disk on Stack Exchange.  And by searching the web using Google, I found limited information.  Some of the best ...
Mikkel Rev's user avatar
1 vote
1 answer
374 views

Why should copying luks headers with dd cause errors on the drive I am reading?

Summary of the problem. I want to use a detached luks header for a luks-encrypted block device, /dev/nvme0n1p1, by making it into a USB flash drive partition, and afterwards erasing the keys that are ...
Mikkel Rev's user avatar
9 votes
2 answers
1k views

Why is there no WORD_BIT in limits.h on Linux?

From the manpage man limits.h: {WORD_BIT} Number of bits in an object of type int. Minimum Acceptable Value: 32 However if I run a simple program: #include <limits....
rahmu's user avatar
  • 20.2k
0 votes
1 answer
503 views

How to make a path available for the entire system in Ubuntu

My tflite directory is as follows: /home/me/tensorflow_src/tensorflow/lite/ However, I fail to import it in my C++ project: #include "tensorflow/lite/interpreter.h" // getting a not found ...
Levent Ozbek's user avatar
0 votes
1 answer
4k views

How to find all possible locations for libraries and header files on any distro?

I found that the location of libraries and header files are very different on different distributions. For Example on Fedora you have /usr/lib64/libbfd.a while on Ubuntu you have /usr/lib/x86_64-linux-...
Forivin's user avatar
  • 927
3 votes
1 answer
4k views

Detached LUKS header (on USB) for an existing full-disk encryption device with Ubuntu

I already have a /boot partition on a USB stick and a LUKS partition on my computer, which correspond to a fulldisk encryption scheme with Ubuntu 21 I want to put the header of my LUKS partition onto ...
Ben W's user avatar
  • 113
0 votes
1 answer
255 views

How to tell 'find' command to jump to a position and search? [duplicate]

I'm preparing headers for a C++ project and I decided to use find to get include option to other header files. To list the right path, I need to use cd with it, like: cd 'PATH/TO/HEADER/FILE' find ../....
ArchBug's user avatar
  • 15
1 vote
0 answers
319 views

squashed then re-squashed give different size?

I extracted a firmware.bin using fmk mod kit and gave me 3 files: header.img , rootfs.img and footer.img now whenever I cat and repack all the files together in firmware2.bin again, it works and it ...
Abrahim Hussein's user avatar
0 votes
1 answer
454 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 /...
AFP_555's user avatar
  • 301
3 votes
0 answers
605 views

<filesystem> header library for gcc-c++ on AIX

I'm working on porting some code to AIX from Linux. The code makes use of c++17's header. #include <filesystem> ... std::ifstream is(path); if (!is.is_open() && std::filesystem::path(...
Oliver Jackson's user avatar
0 votes
1 answer
503 views

Install matching Linux header files after Linux kernel upgrade

I recently upgraded my Linux kernel from 4.19.20 to 5.5.0-0.bpo.2-amd64. sudo apt install linux-headers-$(uname -r) outputs: Reading package lists... Done Building dependency tree Reading ...
rplee's user avatar
  • 377
0 votes
1 answer
1k views

How can I compile pacat-simple.c?

I want to try writing some code to do audio playback with pulseaudio. There is a simple example program included in the official docs: pacat-simple.c. I made sure the libpulse-dev package was ...
Ryan1729's user avatar
  • 611
0 votes
1 answer
3k views

How to set compiler specific standard headers #include paths?

What is a smart way to tell two compilers to look for their #include headers? Running on a standard Linux 86x64 system, my standard compiler is gcc (currently v9.3). Now I'd like to compile some ...
Jona Engel's user avatar
3 votes
1 answer
6k views

Nvidia driver installation error

I'm new to the Linux world and I have a problem that is ruining my experience right now. I have installed Linux Mint 19.3 on my Laptop and immediately noticed a lot more battery drainage compared to ...
Stan's user avatar
  • 33
0 votes
1 answer
3k views

How enable content-length header using .htaccess?

I have a seriously big problem, when i download any file for example: myfile.zip, or when i load a page for example: myserver.com/welcome.html, the response headers not include content-length and the ...
Arthur Lincohn's user avatar
-3 votes
1 answer
2k views

How do I count all the lines of code in all headers and source files in a folder? *.cpp *.h [duplicate]

Say I have a project folder containing a number of header and source files for c++; How would I count the total number of lines of all of these?
Anon's user avatar
  • 215
1 vote
2 answers
353 views

vim: open file under cursor in read-only (no swapfile)

so, we all know of gf, :find, etc, but is there a read-only equivalent, the :view to their :edit? i just want an easy shortcut to open system headers without creating a swapfile :find +set\ noma\ ro ...
landfill baby's user avatar
0 votes
1 answer
502 views

How to access kernel header files? [closed]

I'm a student working with the Linux kernel, and was wondering how to access methods and macros in the kernel header files from outside the kernel in an OS. I apologize if this is an ignorant question,...
Ramsey Alsheikh's user avatar
-1 votes
1 answer
128 views

Did I Mess Up My Computer with Recursive rm of '*.h"

So I was basically trying to print all files with a .h file extention out of curiosity, and so I simply googled how to do that. Unfortunatley, I didn't pay close enough attention to the answer and ...
John-'s user avatar
  • 1
1 vote
1 answer
139 views

Solaris 11 - PAM application

I'm trying to compile an application which interacts with the PAM system on Solaris 11, however everytime I try compile the code I get "fatal error: security/pam_appl.h: No such file or directory" ...
Ice Phoenix's user avatar
0 votes
2 answers
15k views

Curl : Read headers from a file and use them in a cURL command

I have a bash script with the following curl command : curl -v -X GET https://example.com -H ~/Desktop/headers.txt -o ~/Desktop/file.txt When i run the bash script i am getting unothorized 401. ...
Thanos M's user avatar
  • 183
1 vote
1 answer
894 views

What Debian/Ubuntu package has the documentation for the standard C headers?

On the back of this question, but Debian/Ubuntu specific that has C-standard library headers like (taken from Wikipedia) assert.h , complex.h , ctype.h , errno.h , fenv.h , float.h , inttypes.h , ...
Evan Carroll's user avatar
  • 32.4k
0 votes
0 answers
34 views

Looking up docs for C header files? [duplicate]

On Ubuntu if I type man 2 time I get, NAME time - get time in seconds SYNOPSIS #include <time.h> time_t time(time_t *tloc); ... I get that this works because time is the ...
Evan Carroll's user avatar
  • 32.4k
-1 votes
2 answers
706 views

Getting strange LD_PRELOAD errors and missing include files - is my distro busted?

For the past half-day or so, I've been having at least the following problems: I get errors about missing LD_PRELOAD entries: My LD_PRELOAD contains /lib64/libstdc++.so.6 (not sure if that makes ...
einpoklum's user avatar
  • 9,828
4 votes
2 answers
667 views

Undoing C syntax mangling macros to make exctags able to create prototype tags

I can successfully create a tags file for vim with exctags (Exuberant Ctags). However, creating tags allowing to jump to the prototype of a function does not work, due the system headers using a ...
Jens's user avatar
  • 1,787
1 vote
2 answers
4k views

VBox Guest Additions installation can't find headers for Kali kernal 4.14.0-kali1-amd64

I have installed Kali in VirtualBox and now trying to install Guest Additions to get full screen view. I updated and installed my packages and installed dkms. When I try to install linux-headers I ...
Chris Fgl's user avatar
1 vote
1 answer
226 views

How to use development package installed by sys package manager?

I'm confused as to how to use *-dev packages in Ubuntu. I want to use the libxml2 library, in Ubuntu, for my own code development. I installed libxml2-dev using apt-get, which put the header files ...
codechimp's user avatar
  • 207
0 votes
1 answer
65 views

Barman >1.5.1 for Ubuntu 16.04

I use Barman 1.5.1 on Ubuntu 16.04. For several weeks, barman has been working smoothly. Some days ago I noticed something strange. Instead of backups I find other files in the <SERVER>/base/ ...
mcb's user avatar
  • 111
-1 votes
1 answer
997 views

Include a header file into multiple C files

I am modifying the linux kernel for a device locally and I added a header file, say a.h inside /include/linux and referenced it in two C files inside the kernel directory. The header file contains a ...
Vishal Khopkar's user avatar
-2 votes
1 answer
2k views

Read standard library header file in terminal [closed]

is there any way to read a standard header file, say float.h , in terminal ? Sometimes it would be nice to know what are the names of some values, say max value of float or something like that.
Tuấn Phạm's user avatar
1 vote
1 answer
495 views

problem on zlib

I'm trying to install a package (named FIESTA). When I run make, I get a error message "zlib.h is required". I'm pretty sure that zlib1g is installed, and zlib.h can be found in /usr/include. How ...
Wen Chern's user avatar
  • 117
3 votes
0 answers
1k views

How to install Linux 3.2.40 headers on Synology DS214 with DSM 6.1?

Since I'm tired of cross-compiling and already have a working (cross-compiled) gcc on my Synology DiskStation DS214 with DSM 6.1, I'd like to install the Linux headers of the Linux version running on ...
Kalle Richter's user avatar
5 votes
2 answers
11k views

configure: error: libcurl >= 7.28.0 library and headers are required with support for https

Hi I met an issue when I tried to configure for R installation. Basically, I tried to follow my previous installation process, (For some reason, I need to reinstall the same R in CentOS6 instead of ...
Jun's user avatar
  • 541
1 vote
1 answer
3k views

Reliably detect Python 3 development files

I have a shell script which installs all required packages for a project. Some of those packages are Python 3 based and require to compile things and for this the Python sources need to be installed1 (...
phk's user avatar
  • 5,983
4 votes
2 answers
5k views

fatal error: mcrypt.h: No such file or directory

I am trying to cross compile a C code which uses a header file mcrypt.h. I am compiling my code in Ubuntu distribution and my target is an openwrt distribution. I am getting the below error while ...
Ahmed202's user avatar
  • 151
0 votes
2 answers
247 views

Restore original string.h after accidental overwrite [closed]

I was reading the header files for c and by accident, i changed something (i deleted some stuff by accident) I closed out of sublime text editor, expecting it to ask me to save, but it saved ...
yasgur99's user avatar
  • 205
2 votes
1 answer
5k views

Installing Kernel Headers offline - Linux Kali

I need to install Kernel Headers to install nvidia graphics driver to run linux kali. Now here is the tricky part, it must be done completely offline. I have no idea how to do it. Kali is freshly ...
Thomas Christopher Davies's user avatar
1 vote
1 answer
854 views

Automatic generation of LDFLAGS, CPPFLAGS and other from error messages [closed]

While integration, merging, porting and cross-compilation of various projects I encounter many errors caused by missing headers or undefined symbols. Then I manually search headers and libraries to ...
Costa's user avatar
  • 552
1 vote
1 answer
3k views

Path to x86_64 linux kernel headers

I want to compile program using some linux kernel headers. But, if I just add -I/usr/src/linux-headers-4.4.0-36/include it can't find linux/export.h. I saw files with same name in arch/architecture, ...
val - disappointed in SE's user avatar
2 votes
3 answers
2k views

What is BTN_TRIGGER_HAPPY?

I'm writing kinda virtual keyboard using uinput and during looking into what all should I put into ioctl(fd, UI_SET_KEYBIT, ???); I found input-event-codes.h. Some constants there are pretty self-...
graywolf's user avatar
  • 951
4 votes
1 answer
3k views

How to compile against a custom kernel (Debian)?

There is a file version.h in /usr/include/linux. Many header files include this file and use the defines in there for their own ifdefs. However, when I compile my own kernel, I cannot see how this ...
Martin Drautzburg's user avatar
0 votes
1 answer
982 views

Linux Crypto API headers missing

As soon as headers are essential to deal with crypto algorithms, provided by kernel, I've installed linux-headers-4.4.0-1-amd64. However, this did not added files like crypto.h, module.h and init.h ...
im_infamous's user avatar
1 vote
3 answers
35k views

Installing VMware. Error : Kernel headers for version 4.3.0-kali1-amd64 were not found

Trying to install VMware Player on Kali Rolling (debian Wheezy). When running VMware Player for first time after installation I get: Error: C header files matching your running kernel were not ...
tur11ng's user avatar
  • 157
3 votes
2 answers
3k views

How to get the absolute position (x, y coordinates) of a finger on a touchpad?

Main question: How to get the absolute finger position on the touchpad? I would like to get the absolute position (x, y coordinates) of a finger on a touchpad? I believe it is possible to extract it ...
Mateusz Piotrowski's user avatar
1 vote
1 answer
1k views

Why do the Linux kernel headers contain references to nonexistent headers?

I'm trying to build IBCS (source here) on Ubuntu 15.10 (Linux 4.2.35). This module is obviously pretty old, because its CONFIG.i386 file gives gcc an option -m486, which doesn't exist anymore, but ...
cat's user avatar
  • 3,498
4 votes
1 answer
344 views

No stdlib in UNIX v7?

Browsing through the v7 UNIX Sources I noticed there is no "stdlib" directory - further more using a v7 UNIX Emulator, there is no such file as <stdlib.h>. However functions like exit() and ...
Ankush's user avatar
  • 137