Kernel compile: 'make dep' errors: .h files are not being found...

Kernel compile: 'make dep' errors: .h files are not being found...

Post by H. Michael Smith, Jr » Mon, 05 Jul 1999 04:00:00



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

My world (virtually):  OpenLinux 2.2 (2.2.5)

Installed w/ minimum install (tiny HDD)...

recompiling kernel to get IPMASQ / firewall capability (to install IP
Chains)..

(compiling 2.2.5; source from ftp.us.kernel.org)

'make config' seems to go ok  (using Kernel HOWTO and IP MASQ
miniHOWTO)

'make dep' : all files in #include's in mkdep.c cannot be found;

in Makefile:
 TOPDIR= .... echo $$pwd ...
HPATH = $TOPDIR/include
FINDPATH=$HPATH/asm $HPATH/linux $HPATH/scsi $HPATH/net

HOSTCC = gcc

(seems ok, right ?!?)
I went into mkdep.c and fully qualified the #includes and gcc found
most of them, but then other src files were not.  What am I missing
here?

Is my problem w/ gcc or make, or ... uh... my brain?

This is my 1st 'manual' kernel compile... the term 'crash course' has
new meaning to me...

Thanks for ANY help!!!!!!

// Michael

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.0.2 for non-commercial use <http://www.pgp.com>

iQA/AwUBN3+OiH63VjIQ5dxwEQJGrQCg+jGQh2F12XwpsMNqmdcuiG4oWZwAnR/h
FJzlW+p4AM57RT0YdDsFOtTQ
=wSpN
-----END PGP SIGNATURE-----

 
 
 

Kernel compile: 'make dep' errors: .h files are not being found...

Post by Tobias Anderbe » Mon, 05 Jul 1999 04:00:00


Quote:>Installed w/ minimum install (tiny HDD)...

[...]

Quote:>'make dep' : all files in #include's in mkdep.c cannot be found;

Did you install the kernel source and header files?

/tobias

 
 
 

Kernel compile: 'make dep' errors: .h files are not being found...

Post by Michael Smit » Tue, 06 Jul 1999 04:00:00


Quote:

>Did you install the kernel source and header files?

>/tobias

I believe so... I ran

'/usr/src/linux/tar zxpvf linux-2.2.5.tar.gz'      and now
/usr/src/linux/include/linux (as well as other dir's) is loaded with header
files.  I 'rm -r'ed /usr/src/linux a couple of times, but the results are
the same.  The files un-tar seemingly ok, and 'make config' seems to work.
Then, when I run 'make dep', the files in #include of mkdep.c are not
found.

I am wondering if it is something with gcc, or my clibs, or something, but I
am not sure where to start.

Thanks.

// Michael

(I have posted this reply 3 times, but it hasn't made it to the group, yet.
Hopefully, all three won't hit at once :))

 
 
 

Kernel compile: 'make dep' errors: .h files are not being found...

Post by Marc Mut » Tue, 06 Jul 1999 04:00:00


There is somewhere a symlink to be done. I don't have it handy, but it
should be in the kernel HOWTO.

Marc

--

University of Bielefeld, Dep. of Mathematics / Dep. of Physics

PGP-keyID's:   0xd46ce9ab (RSA), 0x7ae55b9e (DSS), 0x31748570 (DH)

 
 
 

Kernel compile: 'make dep' errors: .h files are not being found...

Post by H. Michael Smith, Jr » Tue, 06 Jul 1999 04:00:00


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


>There is somewhere a symlink to be done. I don't have it handy, but
it
>should be in the kernel HOWTO.

>Marc

Thanks for the reply!

/usr/inlclude/linux->/usr/src/linux/include/linux   is there.

This is the only symlink that I can find mentioned in the Kernel
HOWTO.  The author makes a reference to links mentioned in Linus'
README, but I do not see this mentioned in /usr/src/linux/README.  If
there should be other links, or you know of something else that I can
check, please let know.

// Michael

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.0.2 for non-commercial use <http://www.pgp.com>

iQA/AwUBN4E8SH63VjIQ5dxwEQKZbACgqnrO7L5a378SPgzhPQ/1lsU4zSEAnjQq
/73IVbHE4ZJ4x2d+egcqD4cu
=vB0t
-----END PGP SIGNATURE-----

 
 
 

Kernel compile: 'make dep' errors: .h files are not being found...

Post by Larr » Wed, 07 Jul 1999 04:00:00




Quote:

>'/usr/src/linux/tar zxpvf linux-2.2.5.tar.gz'      and now

did you actually untar linux-2.2.5.tar.gz inside /usr/src/linux instead of
/usr/src, or am I misunderstanding what you wrote there?

Do you now have /usr/src/linux/linux ?
Sorry if this is obvious, that just looks funny.   (:

 
 
 

Kernel compile: 'make dep' errors: .h files are not being found...

Post by Michael Smit » Wed, 07 Jul 1999 04:00:00


That was a typo...

I un-tar'ed the source in /usr/src, which created /usr/src/linux...

Please point out the obvious.  If I am missing something that should be
obvious, it wouldn't be the first time.  I appreciate the tips...

I really think that something is wrong with my gcc configuration and/or my
clibs.  I don't know what I should check with these.  I will probably
seek-out the latest ver of c and c++ lib's and install them (hopefully they
have good HOWTO's (: ).

// Michael




>>'/usr/src/linux/tar zxpvf linux-2.2.5.tar.gz'      and now

>did you actually untar linux-2.2.5.tar.gz inside /usr/src/linux instead of
>/usr/src, or am I misunderstanding what you wrote there?

>Do you now have /usr/src/linux/linux ?
>Sorry if this is obvious, that just looks funny.   (:

 
 
 

Kernel compile: 'make dep' errors: .h files are not being found...

Post by Gergo Bara » Wed, 07 Jul 1999 04:00:00



Quote:>Installed w/ minimum install (tiny HDD)...

>recompiling kernel to get IPMASQ / firewall capability (to install IP
>Chains)..

>(compiling 2.2.5; source from ftp.us.kernel.org)

>'make config' seems to go ok  (using Kernel HOWTO and IP MASQ
>miniHOWTO)

>'make dep' : all files in #include's in mkdep.c cannot be found;

Forget the advice about symlinking someone gave you, what you need is
libc. The headers included in mkdep.c are all pretty standard stuff, as
far as I can tell. On my system, the package owning those headers is
called libc-99.1.14-0 (which seems like a pretty strange version
number), look for something similar in your distribution and install it.

Gergo

--
Collaboration, n.:
        A literary partnership based on the false assumption that the
other fellow can spell.

GU d- s:+ a--- C++>$ UL+++ P>++ L+++ E>++ W+ N++ o? K- w--- !O !M !V
PS+ PE+ Y+ PGP+ t* 5+ X- R>+ tv++ b+>+++ DI+ D+ G>++ e* h! !r !y+

 
 
 

Kernel compile: 'make dep' errors: .h files are not being found...

Post by Marc Mut » Thu, 08 Jul 1999 04:00:00



Quote:

> /usr/inlclude/linux->/usr/src/linux/include/linux   is there.

>  If
> there should be other links, or you know of something else that I can
> check, please let know.

That was the one I was thinking about :-( Sorry.

Marc

--

University of Bielefeld, Dep. of Mathematics / Dep. of Physics

PGP-keyID's:   0xd46ce9ab (RSA), 0x7ae55b9e (DSS), 0x31748570 (DH)

 
 
 

Kernel compile: 'make dep' errors: .h files are not being found...

Post by Michael Smit » Thu, 08 Jul 1999 04:00:00


Quote:>Forget the advice about symlinking someone gave you, what you need is
>libc

Thanks a lot.  I am happy to know about the symlinks, but they were not the
problem....

I issued:  rpm -i /mnt/cdrom/col/install/RPMS/glibc-2.1-3.i386.rpm
and returned was a message, 'could not install; already installed'

just in case, I entered:  cd /usr/src/linux; make dep
and it worked!!!

I noticed a couple of 'no such file or directory's, but make and gcc kept
plugging away.  I am 'make bzImage'ing right now.

Thanks again!!!

// Michael

 
 
 

Kernel compile: 'make dep' errors: .h files are not being found...

Post by Michael Smit » Fri, 09 Jul 1999 04:00:00


Thanks to all of you guys for the help!!!  After 're-installing' these c
libs, make dep worked, but a few files were still not located.  make bzImage
ran for a long time, then bombed with little indication as to why.

Well, I booted to my Caldera Lisa / fdd install img, and formatted by little
300MB hdd.  To make a LONG story short I got base installed, recompiled
kernel with ipmasq support, etc.  My LAN
(http://www.awtechnologies.net/mynet.html) has Internet access!  There is
still some strangeness going on: many modules (that I did NOT select in make
config) attempt, and fail, to load.  Everything that I intended to install
works fine, but from every filesystem supported to every 3com nic driver and
everything in between, all of these modules 'fail to load'.

Oh, well...  my wife and I have shared access to the Net, and I have a new
challenge!

// Michael

 
 
 

1. 'make dep' not finding a file for 1.1.54

I recetly upgraded my system (slackware 2.0.1 I think..) and downloaded
the 1.1.52 kernel and the patch53 and patch54 files to get up to
1.1.54.   When doing a 'make dep' after doing the config, it gives
me an error message to the effect:

can't find file /usr/src/linux/drivers/char/uni_to_437.c

It is not in that directory, or any file with a simalar name (uni_to* or
*437*) exists in the tree.  I have two other kernel trees and searched
them as well, and there isn't a file like that there either.

Is this an oversight in the Makefile?  Help!  

Eric

2. Miscellaneous XFree86 4.0.2 questions

3. I could not find the FAQ, so I am asking (I think) FA Q's

4. S3 Savage3D

5. Error When Compiling - Don't Know What I Am Missing

6. SimGates: The Voice of Redmond (Bill simulator)

7. Why am I not 'Logged in' ?

8. remote NT printer

9. mysterious kernel 'make dep' error

10. Kernel Compile Problems - 'as86 command not found'

11. Error '/bin/sh: no: command not found' while compiling Enlightenment

12. kernel 2.2.2 - 'make dep' - won't!

13. I am with the following error, when i am running lilo...