LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 08-09-2009, 01:49 PM   #1
brfindla
LQ Newbie
 
Registered: Apr 2004
Location: Merrimack, NH
Posts: 13

Rep: Reputation: 0
Possibly missing /usr/include/linux header files.. how to fix?


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..

Thanks!

Brian
 
Old 08-09-2009, 03:56 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
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.
.....

Last edited by knudfl; 08-09-2009 at 04:48 PM.
 
Old 08-10-2009, 11:21 AM   #3
brfindla
LQ Newbie
 
Registered: Apr 2004
Location: Merrimack, NH
Posts: 13

Original Poster
Rep: Reputation: 0
Thumbs up Yes Yes Yes!

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.

Best!

Brian

Last edited by brfindla; 08-10-2009 at 02:22 PM.
 
  


Reply

Tags
headers, installation, missing


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
including /usr/include/linux/ header files throwing errors in SLES 10.2 deedhnd Linux - Server 9 08-19-2008 08:08 AM
C Header files missing in /usr/include zorro_kwh Ubuntu 3 04-12-2008 06:57 PM
sctp.h missing in /usr/include/netinet in RHEL4 64bit mystavros Linux - Enterprise 0 09-18-2007 03:06 AM
Missing /usr/include/GL/gl.h openfun Ubuntu 1 04-24-2006 10:24 AM
Problem with C++ include/header files! Pisces107 Programming 12 12-23-2003 11:06 PM


All times are GMT -5. The time now is 12:08 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration