Header files missing
Solution 1
I used find / -iname 'wireless.h'
for example, and found that most of the header files are there but the compiler didn't find them
So, I copied them to /usr/include/
directory and it worked fine
Solution 2
Missing Headers and Libs
If you haven't installed the libs on your computer, here are the libs on an Ubuntu system:
ioccom.h
- lib: freebsd-glue
pfvar.h
- lib: linux-headers-generic
wireless.h and sockios.h
- lib: linux-libc-dev
bluetooth.h
- lib: libbluetooth-dev
To install the packages:
sudo apt-get install freebsd-glue libbluetooth-dev linux-headers-generic linux-libc-dev
Related videos on Youtube
loo3y35
Updated on September 18, 2022Comments
-
loo3y35 almost 2 years
I'm trying to compile a source code and I'm getting many errors indicating that header files are missing from my system
checking sys/ioccom.h usability... no checking sys/ioccom.h presence... no checking for sys/ioccom.h... no checking sys/sockio.h usability... no checking sys/sockio.h presence... no checking for sys/sockio.h... no checking for net/pfvar.h... no checking for linux/wireless.h... no checking bluetooth/bluetooth.h usability... no checking bluetooth/bluetooth.h presence... no checking for bluetooth/bluetooth.h... no
So, I'm starting to think I'm missing some important packages
Can you list them for me?
I have Ubuntu 12.04 LTS, 2.6.28-17 kernel and gcc version 4.6.3 and I'm trying to compile this package http://nrg.cs.ucl.ac.uk/mptcp/mptcp_userland_0.1.tar.gz
Thanks in advance
-
Jacob Vlijm over 10 yearsHi Hosam, I think you are missing some "important" packages instead of "impotent", or else this must be the wrong site :)
-
loo3y35 over 10 yearsAn auto-corrected typo :D
-
Danatela over 10 yearsBut you did not say what are you configuring…
-
loo3y35 over 10 yearsAdded a link to the source files (Y)
-
chronitis over 10 yearsThese appear to be kernel headers (
include/net/bluetooth/bluetooth.h
, et al), but you say you are using kernel 2.6.28-17 - which does not match Ubuntu 12.04 (which used 3.2.0, or newer if you installed a HWE stack) - so if you've installed your own kernel, you probably need to ensure for yourself you have the right headers available. -
loo3y35 over 10 yearsI installed the old kernel and its corresponding header files from Ubuntu repository, so, I assume they contain all the necessary files
-
c0rp over 10 yearsCould you run this
dpkg -s linux-headers-$(uname -r)
-
-
Lekensteyn over 10 yearsYou're doing it wrong. Instead of copying the file over, you must add an additional compiler flag:
-I /path/to/net
(the path that includesbluetooth
). For autoconf, run./configure --help
to find out environment variables or options that you can use to specify the include directory for bluetooth.