LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 09-11-2009, 05:29 PM   #1
fatimap
LQ Newbie
 
Registered: Aug 2009
Posts: 4

Rep: Reputation: 0
Cannot find linux/config.h


Hello,
I am fairly new to the forum. I am trying the build the scull module from LinuxDeviceDriver examples and ran into the following issue:

"
adminuser@VirtualBoxImages-desktop:~/Desktop/examples/scull$ make
make -C /lib/modules/2.6.27-7-generic/build M=/home/adminuser/Desktop/examples/scull LDDINC=/home/adminuser/Desktop/examples/scull/../include modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.27-7-generic'
CC [M] /home/adminuser/Desktop/examples/scull/main.o
/home/adminuser/Desktop/examples/scull/main.c:17:26: error: linux/config.h: No such file or directory
/home/adminuser/Desktop/examples/scull/main.c:674: fatal error: opening dependency file /home/adminuser/Desktop/examples/scull/.main.o.d: Permission denied
compilation terminated.
make[2]: *** [/home/adminuser/Desktop/examples/scull/main.o] Error 1
make[1]: *** [_module_/home/adminuser/Desktop/examples/scull] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-7-generic'
make: *** [modules] Error 2
"

How can I get the config.h for the 2.6.27.7 kernel? Is there a patch file that I could use?

Thanks,
Fatima
 
Old 09-12-2009, 02:52 AM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Wheezy (Fluxbox WM)
Posts: 1,363
Blog Entries: 52

Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
The config.h is now called autoconf.h. You could make a symbolic link to solve this:
Code:
cd /usr/src/linux-headers-2.6.27-7-generic/include/linux
ln -s autoconf.h config.h
 
Old 01-19-2013, 07:46 AM   #3
vinay.bhandwalkar
LQ Newbie
 
Registered: Jan 2013
Posts: 6

Rep: Reputation: Disabled
linux/config.h no such file or directory compilation terminated

Hi Seniors,
I want to implement WrapFS on my Ubuntu Kernel 3.7.1
I downloded wrapfs.tar.gz. from http://faculty.cs.nku.edu/~waldenj/c...labs/lab9.html
I ran following commands
1.tar zxf wrapfs.tar.gz
2.cd wrapfs
3.make

when I run make command the following error occurs

root@Shantai:~# cd wrapfs/
root@Shantai:~/wrapfs# make
make -C /lib/modules/3.7.1/build SUBDIRS=/home/shantai/wrapfs modules
make[1]: Entering directory `/home/shantai/linux-3.7.1'
CC [M] /home/shantai/wrapfs/fist_wrapfs.o
In file included from /home/shantai/wrapfs/fist_wrapfs.c:14:0:
/home/shantai/wrapfs/fist.h:22:26: fatal error: linux/config.h: No such file or directory
compilation terminated.
make[2]: *** [/home/shantai/wrapfs/fist_wrapfs.o] Error 1
make[1]: *** [_module_/home/shantai/wrapfs] Error 2
make[1]: Leaving directory `/home/shantai/linux-3.7.1'
make: *** [all] Error 2

Could you plz help me out
Thank You
 
Old 01-19-2013, 09:27 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,222

Rep: Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381
# 3

'wrapfs.tar.gz' from http://faculty.cs.nku.edu/~waldenj/c...labs/lab9.html
... is an old version from year 2006.
Is for older versions of 'kernel 2.6.xx' only.


Wrapfs : http://wrapfs.filesystems.org/

-
 
Old 01-29-2013, 09:29 AM   #5
vinay.bhandwalkar
LQ Newbie
 
Registered: Jan 2013
Posts: 6

Rep: Reputation: Disabled
Hello sir ,
Thank you for your post.
when I run first command on my terminal it says

shantai@Shantai:~$ git clone http://git.kernel.org/pub/scm/linux/...ezk/wrapfs.git
Cloning into 'wrapfs'...
fatal: http://git.kernel.org/pub/scm/linux/....git/info/refs not found: did you run git update-server-info on the server?

when i run 2nd command on terminal it says

shantai@Shantai:~$ git clone git://git.fsl.cs.sunysb.edu/wrapfs-latest.git
Cloning into 'wrapfs-latest'...
remote: Counting objects: 2334656, done.
remote: Compressing objects: 100% (450553/450553), done.
receiving objects: 3%

cud plz tell me what what is this process all about

thank you
 
Old 01-29-2013, 10:39 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,222

Rep: Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381
$ git clone git://git.fsl.cs.sunysb.edu/wrapfs-latest.git
... Works OK here :

Cloning into 'wrapfs-latest'...
remote: Counting objects: 2334656, done.
remote: Compressing objects: 100% (450553/450553), done.
remote: Total 2334656 (delta 1949123), reused 2247079 (delta 1861596)
Receiving objects: 100% (2334656/2334656), 562.92 MiB | 751 KiB/s, done.
Resolving deltas: 100% (1949123/1949123), done.
Checking out files: 100% (38178/38178), done.


You will need some space (and speed ?) :
Total size of wrapfs-latest/ = 1 GB !

-
 
Old 01-29-2013, 11:33 AM   #7
vinay.bhandwalkar
LQ Newbie
 
Registered: Jan 2013
Posts: 6

Rep: Reputation: Disabled
Hello Sir,
thank you for the reply...
in the end I got this msg

shantai@Shantai:~$ git clone git://git.fsl.cs.sunysb.edu/wrapfs-latest.git
Cloning into 'wrapfs-latest'...
remote: Counting objects: 2334656, done.
remote: Compressing objects: 100% (450553/450553), done.
remote: Total 2334656 (delta 1949123), reused 2247079 (delta 1861596)
Receiving objects: 100% (2334656/2334656), 562.92 MiB | 86 KiB/s, done.
Resolving deltas: 100% (1949123/1949123), done.

Sir what shud be the step for installing WrapFs on my 3.7.1 Kernel
Shall I follow the steps on the following link
http://faculty.cs.nku.edu/~waldenj/c...labs/lab9.html

Please help
Looking forward for your reply
Thank You
 
Old 01-29-2013, 12:44 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,222

Rep: Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381
# 7

I have no idea. But I'd guess, it's like any kernel build.

Guessing again : Add the "wrapfs entry" ( WRAP_FS = YES ?)
to your config file, and 'make oldconfig', etc.


-

Last edited by knudfl; 01-29-2013 at 12:47 PM.
 
Old 02-06-2013, 10:03 AM   #9
vinay.bhandwalkar
LQ Newbie
 
Registered: Jan 2013
Posts: 6

Rep: Reputation: Disabled
Hello Sir,
I used following commands for Wrapfs

shantai@Shantai:~$ git clone git://git.fsl.cs.sunysb.edu/wrapfs-latest.git
Cloning into 'wrapfs-latest'...
remote: Counting objects: 2334656, done.
remote: Compressing objects: 100% (450553/450553), done.
remote: Total 2334656 (delta 1949123), reused 2247079 (delta 1861596)
Receiving objects: 100% (2334656/2334656), 562.92 MiB | 86 KiB/s, done.
Resolving deltas: 100% (1949123/1949123), done.

Now for INstalling Wrapfs
I followed

1. cd wrpafs-latest
2.make oldconfig ---- created .config file
3.make-- compiled it successfully
4. ctags *.[ch] for this get error n skipped this step
5.cat /proc/filesystems
6.insmod wrapfs.ko
insmod: can't read 'wrapfs.ko': No such file or directory

Could u plz help me forward
Thank You
 
Old 02-06-2013, 11:53 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,222

Rep: Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381
# 9

'make oldconfig' :
That's when you use the config file from your currently installed kernel.
..There are a couple of methods to get "the old .config file".
Please see the kernel documentation.
( There is usually a 'config' for your kernel in the /boot/ directory.
And one in /proc/ : /proc/config.gz ).

My guess was that you could add like CONFIG_WRAP_FS=y to the old '.config'.
(see #8)

-
 
  


Reply

Tags
configh


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't find | key in Kurumin Linux and need to change Keyboard config. issinho Linux - Laptop and Netbook 2 03-30-2006 01:54 PM
WINE - CONFIG File, can't find it to do first config Hero Doug Linux - Software 1 09-06-2005 11:03 AM
How do i find the proper linux config file? justinfl General 2 10-08-2003 11:01 PM
Cannot find gtk-config and glib-config NOT_Skeletor Linux - Software 3 06-27-2003 09:39 AM


All times are GMT -5. The time now is 12:18 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