Linux Newbie help
 help / color / mirror / Atom feed
* unable to make dep; limit.h
@ 2003-02-03  2:12 Richard Spencer
  2003-02-03 17:49 ` Ray Olszewski
  2003-02-03 19:58 ` pa3gcu
  0 siblings, 2 replies; 4+ messages in thread
From: Richard Spencer @ 2003-02-03  2:12 UTC (permalink / raw)
  To: linux-newbie


I hope someone can point me in the right direction. I tried to compile a new kernel (version 2.4.20) and I ended up with the following error message:

[root@jetty linux-2.4.20]# make dep
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mkdep scripts/mkdep.c
In file included from /usr/include/bits/posix1_lim.h:126,
                 from /usr/include/limits.h:30,
                 from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/limits.h:117,
                 from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/syslimits.h:7,
                 from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/limits.h:11,
                 from scripts/mkdep.c:35:
/usr/include/bits/local_lim.h:27: linux/limits.h: No such file or directory
make: *** [scripts/mkdep] Error 1

I currently run Linux kernel 2.2.22 on a pentium laptop and RedHat 6.2 and I would appreciate any help or suggestions as to where to look. Thank you!



-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: unable to make dep; limit.h
  2003-02-03  2:12 unable to make dep; limit.h Richard Spencer
@ 2003-02-03 17:49 ` Ray Olszewski
  2003-02-03 19:54   ` Ken Moffat
  2003-02-03 19:58 ` pa3gcu
  1 sibling, 1 reply; 4+ messages in thread
From: Ray Olszewski @ 2003-02-03 17:49 UTC (permalink / raw)
  To: Richard Spencer, linux-newbie

I didn't see any other replies to this. So while I'm sort of guessing here, 
I'm reply in the belief that my suggestion is at least better than nothing.

I notice that you are doing the compile from "linux-2.4.20". Normally, 
scripts expect to find kernel source in /usr/src/linux . If you  do not 
have it in such a directory (typically, you would actually put it in 
/usr/src/linux-2.4.20 and make a symlink), then the script that looks for 
"/usr/src/linux/include/linux/limits.h" would be unable to find it ... as 
the last line of the error report you quote indicates (but without the full 
include path).

I'm not certain that this is the source of your problem, but it is probably 
worth a look.

At 09:12 PM 2/2/03 -0500, Richard Spencer wrote:

>I hope someone can point me in the right direction. I tried to compile a 
>new kernel (version 2.4.20) and I ended up with the following error message:
>
>[root@jetty linux-2.4.20]# make dep
>gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mkdep 
>scripts/mkdep.c
>In file included from /usr/include/bits/posix1_lim.h:126,
>                  from /usr/include/limits.h:30,
>                  from 
> /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/limits.h:117,
>                  from 
> /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/syslimits.h:7,
>                  from 
> /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/limits.h:11,
>                  from scripts/mkdep.c:35:
>/usr/include/bits/local_lim.h:27: linux/limits.h: No such file or directory
>make: *** [scripts/mkdep] Error 1
>
>I currently run Linux kernel 2.2.22 on a pentium laptop and RedHat 6.2 and 
>I would appreciate any help or suggestions as to where to look. Thank you!


--
-------------------------------------------"Never tell me the odds!"--------
Ray Olszewski					-- Han Solo
Palo Alto, California, USA			  ray@comarre.com
-------------------------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: unable to make dep; limit.h
  2003-02-03 17:49 ` Ray Olszewski
@ 2003-02-03 19:54   ` Ken Moffat
  0 siblings, 0 replies; 4+ messages in thread
From: Ken Moffat @ 2003-02-03 19:54 UTC (permalink / raw)
  To: Ray Olszewski; +Cc: Richard Spencer, linux-newbie

On Mon, 3 Feb 2003, Ray Olszewski wrote:

> I didn't see any other replies to this. So while I'm sort of guessing here, 
> I'm reply in the belief that my suggestion is at least better than nothing.
> 
> I notice that you are doing the compile from "linux-2.4.20". Normally, 
> scripts expect to find kernel source in /usr/src/linux . If you  do not 
> have it in such a directory (typically, you would actually put it in 
> /usr/src/linux-2.4.20 and make a symlink), then the script that looks for 
> "/usr/src/linux/include/linux/limits.h" would be unable to find it ... as 
> the last line of the error report you quote indicates (but without the full 
> include path).
> 
> I'm not certain that this is the source of your problem, but it is probably 
> worth a look.
> 

 Ray,

 if you download the full tar for a current kernel (well, 2.4 and 2.5
anyway), you should find that it extracts into linux-2.4.20 (or
wherever), so its own scripts *ought* to work.  I wonder if Richard has
inadvertently deleted /usr/src/linux in preparation for the build, in
which case recreating it might work (but if it's necessary, it kind of
sounds like it should contain the headers used to build glibc).

Ken
-- 
 Out of the darkness a voice spake unto me, saying "smile, things could be
worse". So I smiled, and lo, things became worse.




-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: unable to make dep; limit.h
  2003-02-03  2:12 unable to make dep; limit.h Richard Spencer
  2003-02-03 17:49 ` Ray Olszewski
@ 2003-02-03 19:58 ` pa3gcu
  1 sibling, 0 replies; 4+ messages in thread
From: pa3gcu @ 2003-02-03 19:58 UTC (permalink / raw)
  To: Richard Spencer, linux-newbie

On Monday 03 February 2003 02:12, Richard Spencer wrote:
> I hope someone can point me in the right direction. I tried to compile a
> new kernel (version 2.4.20) and I ended up with the following error
> message:
>
> [root@jetty linux-2.4.20]# make dep
> gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mkdep
> scripts/mkdep.c In file included from /usr/include/bits/posix1_lim.h:126,
>                  from /usr/include/limits.h:30,
>                  from
> /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/limits.h:117, from
> /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/syslimits.h:7, from
> /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/limits.h:11, from
> scripts/mkdep.c:35:
> /usr/include/bits/local_lim.h:27: linux/limits.h: No such file or directory
> make: *** [scripts/mkdep] Error 1
>
> I currently run Linux kernel 2.2.22 on a pentium laptop and RedHat 6.2 and
> I would appreciate any help or suggestions as to where to look. Thank you!

To add to Ray's advice, try running make mrproper before anthing else, it 
only needs to be run once after installing the source.
Before you do that now, copy .config into /usr/src otherwise it will get 
deleted.
mrproper creates the needed symlinks.

-- 
Regards Richard
pa3gcu@zeelandnet.nl
http://people.zeelandnet.nl/pa3gcu/

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-02-03 19:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-03  2:12 unable to make dep; limit.h Richard Spencer
2003-02-03 17:49 ` Ray Olszewski
2003-02-03 19:54   ` Ken Moffat
2003-02-03 19:58 ` pa3gcu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox