Networking Forums

Networking Forums > Computer Networking > Linux Networking > Cant find config.h [suse64 v9.2]

Reply
Thread Tools Display Modes

Cant find config.h [suse64 v9.2]

 
 
Marshall Kiam-Laine
Guest
Posts: n/a

 
      12-06-2004, 05:18 PM
trying to load a new Ethernet source driver with MAKE
INSTALL
on a directory containing "makefile" [so apparently dont
need to do ./config again ?]

but it said "err 37 sources not configured, cant find
config.h"

the kernel-sources *are* loaded, so where should
config.h be ?


 
Reply With Quote
 
 
 
 
John-Paul Stewart
Guest
Posts: n/a

 
      12-06-2004, 05:40 PM
Marshall Kiam-Laine wrote:
> trying to load a new Ethernet source driver with MAKE
> INSTALL
> on a directory containing "makefile" [so apparently dont
> need to do ./config again ?]
>
> but it said "err 37 sources not configured, cant find
> config.h"
>
> the kernel-sources *are* loaded, so where should
> config.h be ?


config.h doesn't exist until you do 'make config' (or oldconfig, or
menuconfig, or xconfig) in the kernel source tree. It is *not*
sufficient to install the kernel sources; you need a valid
configuration, too.

If you're using a distro-supplied kernel (i.e., not one you've compiled
yourself) look for their config file is /proc/config.gz or
/boot/config.gz. Gunzip it to /usr/src/linux/.config (assuming the
kernel sources are installed in /usr/src/linux), cd to /usr/src/linux
and do 'make oldconfig'. You'll now have a config.h file matching your
currently running kernel.

If you're using a custom kernel, you should still have your own .config
file around. Also, remember *do not* do 'make clean' after builing your
own kernel if you have to build other modules outside the kernel source
tree. 'make clean' will (among other things) get rid of your config.h.
 
Reply With Quote
 
baskitcaise
Guest
Posts: n/a

 
      12-07-2004, 07:27 AM
Marshall Kiam-Laine adjusted his/her tin foil beanie and asbestos
underwear to write:

> trying to load a new Ethernet source driver with MAKE
> INSTALL
> on a directory containing "makefile" [so apparently dont
> need to do ./config again ?]
>
> but it said "err 37 sources not configured, cant find
> config.h"
>
> the kernel-sources *are* loaded, so where should
> config.h be ?


On suse you need to as root:-

cd /usr/src/linux
make cloneconfig
make prepare-all

If the above complains that the config file is a generic one then just:-

mv .config .config.old

and try again

HTH

--
Mark
Illegitimi Non Carborundum!
Twixt hill and high water, N.Wales, UK
onfxvgpnvfr-ng-tzk-qbg-pb-hx
 
Reply With Quote
 
Marshall Kiam-Laine
Guest
Posts: n/a

 
      12-08-2004, 04:04 PM
***thanks john-paul and mr.Beanie (whatever that is ?)

you both sound as tho you know what youre doing,
so ill try all that soon

ive just wiped the disk ready for a multi-distro
load up
so cant try it at the moment, but will get back
to you.

isnt linux FUN ! ive only spent 2 months so far
trying to get it on inet.
whereas this XPro laptop has no trouble at all


--------------------------------------------------------------------------

"John-Paul Stewart" <(E-Mail Removed)> wrote in
message news(E-Mail Removed)...
> Marshall Kiam-Laine wrote:
>> trying to load a new Ethernet source driver with MAKE
>> INSTALL
>> on a directory containing "makefile" [so apparently
>> dont need to do ./config again ?]
>>
>> but it said "err 37 sources not configured, cant
>> find config.h"
>>
>> the kernel-sources *are* loaded, so where should
>> config.h be ?

>
> config.h doesn't exist until you do 'make config' (or
> oldconfig, or menuconfig, or xconfig) in the kernel
> source tree. It is *not* sufficient to install the
> kernel sources; you need a valid configuration, too.
>
> If you're using a distro-supplied kernel (i.e., not one
> you've compiled yourself) look for their config file is
> /proc/config.gz or /boot/config.gz. Gunzip it to
> /usr/src/linux/.config (assuming the kernel sources are
> installed in /usr/src/linux), cd to /usr/src/linux and
> do 'make oldconfig'. You'll now have a config.h file
> matching your currently running kernel.
>
> If you're using a custom kernel, you should still have
> your own .config file around. Also, remember *do not*
> do 'make clean' after builing your own kernel if you
> have to build other modules outside the kernel source
> tree. 'make clean' will (among other things) get rid
> of your config.h.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how can I config pc3? quitono Wireless Networks 6 08-12-2008 04:54 PM
how to config the dns priyank linux admin Linux Networking 2 04-21-2008 11:22 AM
Best Config for LAN Terry Windows Networking 9 10-31-2006 07:08 AM
MN-740 Config Help Alex Roberts Broadband Hardware 1 05-01-2004 01:53 PM
Need help with Lan Config Kevin Linux Networking 2 10-30-2003 10:51 PM



1 2 3 4 5 6 7 8 9 10 11