LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 08-17-2009, 03:13 AM   #1
Richard.Yang
Member
 
Registered: Sep 2008
Posts: 106

Rep: Reputation: 16
Make error for LDD3 Examples


Hi, all

I have just downloaded the examples for
Linux Device Drivers.

While there are so many errors. I just type "make" under the
scull directory.

Anyone got an idea?
 
Old 08-17-2009, 03:39 AM   #2
Richard.Yang
Member
 
Registered: Sep 2008
Posts: 106

Original Poster
Rep: Reputation: 16
the error message is like this

error: linux/malloc.h: No such file or directory

This means I should reconfig the kernel? and compile it?
 
Old 08-17-2009, 07:30 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,536

Rep: Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506
'linux/malloc.h' : not to be found in /usr/include/linux/
nor in the source linux-2.6.xx-x/include/linux/.
( May be present in kernel 2.2 or 2.4 ? )

If you want to use the old files, why not Google .. LDD3 Examples ..
and find e.g.
http://www.mail-archive.com/kernelne.../msg08932.html
" Re: LDD3 examples advice "

... and please look into the other messages
at the bottom of the page, for more info.
.....

Last edited by knudfl; 08-17-2009 at 07:34 AM.
 
Old 08-17-2009, 08:14 AM   #4
Richard.Yang
Member
 
Registered: Sep 2008
Posts: 106

Original Poster
Rep: Reputation: 16
I am not very sure about your suggestion.

and I couldn't open the link
 
Old 08-17-2009, 12:12 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,536

Rep: Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506Reputation: 2506
The link works fine here.
Or use Google, the link is the fourth hit, first page.
And is just an example, there is lots of other info.

'/linux/malloc.h is present in kernel 2.4.xx ,
example : Slackware 10.2 .
 
  


Reply

Tags
driver


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
RH9 make menuconfig error: make[1]: *** [lxdialog] Error 1 rrochele Linux - Kernel 3 02-07-2007 03:39 PM
make bzImage failure: make[1]: *** [init/version.o] Error 1 nmainak Linux - Kernel 2 07-16-2006 05:06 PM
Really, really Weird trouble with make (make error 2) flyeater Suse/Novell 5 06-20-2005 12:05 PM
lopster v1.2.2 make error: No rule to make target `m4/glibc21.m4' Kropotkin Fedora 0 10-31-2004 11:19 AM
make: cc: command not found make: *** [gzip.o]error 127 zyjk Linux - Newbie 5 02-08-2002 09:58 AM


All times are GMT -5. The time now is 03:21 PM.

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