Possibly missing /usr/include/linux header files.. how to fix?
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
uname -a
Linux LinuxAtom 2.6.26-2-amd64 #1 SMP Sun Jul 26 20:35:48 UTC 2009 x86_64 GNU/Linux
Hi All,
The short story (which is still long) is I am trying to install openOCD and it craps out when I try to run config and it runs autoconf. It causes an error when it hits usb.h and that references mod_devicetable.h and it doesn't exist.
I have pulled down the linux source header files and tried copying it to where it would make it happy and it generates more errors.. there is this message at the top of mod_devicetable.h
/*
* Device tables which are exported to userspace via
* scripts/mod/file2alias.c. You must keep that file in sync with this
* header.
*/
I understand this has to do with installing device drivers, but have no clue how this mechanism works or how to fix what at first appeared to be a small problem. I have already tried this
brfindla@LinuxAtom:~$ sudo apt-get -f install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-2.6.26-2-amd64 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
does anyone understand what is going on here or have a suggestion? Any help or suggestions are appreciated..
Distribution: pclos2009.2, slack13, Debian Lenny (+30 others, for test only)
Posts: 2,926
Thanked: 272
The data base still files the package as installed.
1) sudo dpkg -r --force-all <package>
2) sudo apt-get install <package>
I think, that will do the trick, if you really think,
all the headers are missing.
Did you do a 'ls /usr/include/linux' ?
The two headers mentioned, usb.h and mod_devicetable.h
are not supposed to be in /usr/include/linux .
Are they referred to as linux/<header> ?
'usb.h' : requirement will often be the one from libusb-dev.
'mod_devicetable.h' : only to be found in the kernel source. ?
.....
EDIT : openocd-0.2 : ./configure --enable-usbprog
"checking for usb.h... yes" : That's not a kernel header,
you will have to install 'libusb-dev' to get the right one.
.....
I am very, very thankful for your advice. Yes installing the usb lib did the trick! Perhaps I am dense, but I read/reread the info on installing the openOCD and didn't see anything about this anywhere.. if it was there then I apologize for my inability to see it.
Knudfl, I want to tell you that since I have been trying to really dive deeper into linux as of late, I have been extremely impressed by the helpfulness of many with deep knowledge. I thank you again, I am not sure I would have found this without many, many, more hours (or days) of hair pulling.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.