LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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
  Search this Thread
Old 03-11-2004, 07:22 PM   #1
DragonDon
LQ Newbie
 
Registered: Mar 2004
Location: Toronto, ON
Posts: 29

Rep: Reputation: 15
Can't compile new kernel


Slackware 9.1

When I do so, it seems that some NCurses libraries are missing.

I seem to be unable to find the libraries on the 1st but thought I had installed the necessary development tools.

For details, please see the 'missing modules.dep' thread.
 
Old 03-12-2004, 04:12 AM   #2
spec6635
Member
 
Registered: Feb 2004
Location: Yokosuka Japan
Distribution: Arch, Kali, Slackware 14, Lubuntu, Raspbian
Posts: 58

Rep: Reputation: 15
i use slack 9.1 and was able to recompile to kernel 2.6.3 if you think something is missing just reinstall slack with just the "base" or "required" (not everything like kde and gnome) files .. and remember NOT to format your drive just let it replace the files after that you can see if you can compile.. another thing, you might be using "make menuconfig" you can always try "make xconfig" and if its kernel 2.6.3 you are compiling you can use "make gconfig" if you dont want to go thru the reinstall stuff
 
Old 03-12-2004, 04:18 AM   #3
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
What does your output say? I'm curious.... If you are seeing errors, post them so we can help.
 
Old 03-12-2004, 06:56 AM   #4
DragonDon
LQ Newbie
 
Registered: Mar 2004
Location: Toronto, ON
Posts: 29

Original Poster
Rep: Reputation: 15
The last line said:

"make: *** [scripts/mkdep] Error 1"

It sounds like something may hev been missing from my initial install.

Suggestions?

I just recently tried to see if there was anything on CD2 of slackware and saw some glib 'extras' there. I installed them.

I did a make config afterwards, and it worked. Make Menu config did not work, can post error message later.

Currently still going through make config command.

Once done, I'll try the make dep... again.
 
Old 03-14-2004, 07:10 PM   #5
DragonDon
LQ Newbie
 
Registered: Mar 2004
Location: Toronto, ON
Posts: 29

Original Poster
Rep: Reputation: 15
Make dep still not working.

Guys, I'm dying here. Got a linux system and can't do a damn thing with it.

What the heck does that error message mean, and most importatnly, how can I fix it?
 
Old 03-14-2004, 07:20 PM   #6
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Well we'll need more than just the last line! "Error 1" could be any one of a number of things. If it's complaining about missing ncurses then try installing ncurses from the slackware CD, the first one I should think. Or download the ncurses slackpack from www.linuxpackages.net
 
Old 03-14-2004, 07:40 PM   #7
DragonDon
LQ Newbie
 
Registered: Mar 2004
Location: Toronto, ON
Posts: 29

Original Poster
Rep: Reputation: 15
Well, let's start with what is the best way to show you what I have installed?

From what I have tried/seen, NCurses is installed.

I'm guessing that if I make a DOS floppy, find the command to make dep pipe into a text file, copy it to the floppy, and post it up here, then you'll see all.

Any suggestions as how to stop the 'make dep' command from scrolling off the screen? I am betting that the initial error in the first fe lines will help point to where the problem is.
 
Old 03-14-2004, 08:14 PM   #8
DragonDon
LQ Newbie
 
Registered: Mar 2004
Location: Toronto, ON
Posts: 29

Original Poster
Rep: Reputation: 15
Ok, got the output done.

scripts/mkdep.c:33:19: ctype.h: No such file or directory
scripts/mkdep.c:34:19: fcntl.h: No such file or directory
In file included from /usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/syslimits.h:7,
from /usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/limits.h:11,
from scripts/mkdep.c:35:
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/limits.h:132:75: limits.h: No such file or directory
In file included from scripts/mkdep.c:36:
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:37:23: features.h: No such file or directory
In file included from /usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:43,
from scripts/mkdep.c:36:
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stddef.h:213: syntax error before "typedef"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:45:25: bits/types.h: No such file or directory
In file included from scripts/mkdep.c:36:
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:55: syntax error before "typedef"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:71: syntax error before "typedef"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:81:19: libio.h: No such file or directory
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:97: syntax error before "typedef"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:147:28: bits/stdio_lim.h: No such file or directory
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:151: syntax error before "extern"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:161: syntax error before "extern"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:161: syntax error before "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:163: syntax error before "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:167: syntax error before "__BEGIN_NAMESPACE_STD"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:170: syntax error before "extern"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:170: syntax error before "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:180: syntax error before "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:207: syntax error before "__BEGIN_NAMESPACE_STD"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:209: syntax error before "extern"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:209: syntax error before "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:211: syntax error before "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:225: syntax error before "__BEGIN_NAMESPACE_STD"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:228: syntax error before "extern"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:229: syntax error before "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:233: syntax error before "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:280: syntax error before "__BEGIN_NAMESPACE_STD"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:283: syntax error before "extern"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:283: syntax error before "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:288: syntax error before "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:302: syntax error before "__BEGIN_NAMESPACE_STD"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:304: syntax error before "extern"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:305: syntax error before "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:307: syntax error before "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:310: syntax error before "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:314: syntax error before "_G_va_list"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:316: syntax error before "_G_va_list"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:320: syntax error before "_G_va_list"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:358: syntax error before "__BEGIN_NAMESPACE_STD"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:360: syntax error before "extern"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:361: syntax error before "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:363: syntax error before "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:366: syntax error before "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:388: syntax error before "__BEGIN_NAMESPACE_STD"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:390: syntax error before "extern"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:390: syntax error before "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:391: syntax error before "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:394: syntax error before "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:413: syntax error before "__BEGIN_NAMESPACE_STD"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:415: syntax error before "extern"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:415: syntax error before "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:416: syntax error before "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:419: syntax error before "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:447: syntax error before "__BEGIN_NAMESPACE_STD"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:449: syntax error before "extern"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:450: syntax error before "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:454: syntax error before "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:484: syntax error before "__BEGIN_NAMESPACE_STD"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:486: syntax error before "extern"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:487: syntax error before "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:490: syntax error before "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:494: syntax error before "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:499: syntax error before "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:502: syntax error before "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:520: syntax error before "__BEGIN_NAMESPACE_STD"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:522: syntax error before "extern"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:522: syntax error before "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:524: syntax error before "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:526: syntax error before "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:553: syntax error before "__BEGIN_NAMESPACE_STD"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:556: syntax error before "extern"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:556: syntax error before "fpos_t"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:559: syntax error before '*' token
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:582: syntax error before "__BEGIN_NAMESPACE_STD"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:584: syntax error before "extern"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:584: syntax error before "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:586: syntax error before "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:588: syntax error before "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:599: syntax error before "__BEGIN_NAMESPACE_STD"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:601: syntax error before "extern"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:601: syntax error before "__THROW"
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:608:30: bits/sys_errlist.h: No such file or directory
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/stdio.h:686: syntax error before "__END_DECLS"
scripts/mkdep.c:37:20: stdlib.h: No such file or directory
scripts/mkdep.c:38:20: string.h: No such file or directory
scripts/mkdep.c:39:20: unistd.h: No such file or directory
scripts/mkdep.c:41:23: sys/fcntl.h: No such file or directory
scripts/mkdep.c:42:22: sys/mman.h: No such file or directory
scripts/mkdep.c:43:22: sys/stat.h: No such file or directory
scripts/mkdep.c:44:23: sys/types.h: No such file or directory
scripts/mkdep.c:48: syntax error before "char"
scripts/mkdep.c: In function `do_depname':
scripts/mkdep.c:78: warning: implicit declaration of function `printf'
scripts/mkdep.c: In function `grow_config':
scripts/mkdep.c:93: warning: implicit declaration of function `realloc'
scripts/mkdep.c:93: warning: assignment makes pointer from integer without a cast
scripts/mkdep.c:95: warning: implicit declaration of function `perror'
scripts/mkdep.c:95: warning: implicit declaration of function `exit'
scripts/mkdep.c: In function `is_defined_config':
scripts/mkdep.c:111: warning: implicit declaration of function `memcmp'
scripts/mkdep.c: In function `define_config':
scripts/mkdep.c:126: warning: implicit declaration of function `memcpy'
scripts/mkdep.c: In function `grow_precious':
scripts/mkdep.c:163: warning: assignment makes pointer from integer without a cast
scripts/mkdep.c: In function `define_precious':
scripts/mkdep.c:176: warning: implicit declaration of function `strlen'
scripts/mkdep.c: In function `handle_include':
scripts/mkdep.c:204: warning: implicit declaration of function `access'
scripts/mkdep.c:204: `F_OK' undeclared (first use in this function)
scripts/mkdep.c:204: (Each undeclared identifier is reported only once
scripts/mkdep.c:204: for each function it appears in.)
scripts/mkdep.c: In function `add_path':
scripts/mkdep.c:221: `PATH_MAX' undeclared (first use in this function)
scripts/mkdep.c:224: warning: implicit declaration of function `strcmp'
scripts/mkdep.c:225: warning: implicit declaration of function `realpath'
scripts/mkdep.c:225: warning: assignment makes pointer from integer without a cast
scripts/mkdep.c:227: warning: implicit declaration of function `fprintf'
scripts/mkdep.c:235: warning: assignment makes pointer from integer without a cast
scripts/mkdep.c:243: warning: implicit declaration of function `malloc'
scripts/mkdep.c:243: warning: assignment makes pointer from integer without a cast
scripts/mkdep.c:248: warning: implicit declaration of function `strcpy'
scripts/mkdep.c:221: warning: unused variable `resolved_path'
scripts/mkdep.c: In function `use_config':
scripts/mkdep.c:271: warning: implicit declaration of function `isupper'
scripts/mkdep.c:271: warning: implicit declaration of function `tolower'
scripts/mkdep.c: In function `state_machine':
scripts/mkdep.c:493: warning: implicit declaration of function `isalnum'
scripts/mkdep.c: In function `do_depend':
scripts/mkdep.c:526: warning: implicit declaration of function `getpagesize'
scripts/mkdep.c:528: storage size of `st' isn't known
scripts/mkdep.c:531: warning: implicit declaration of function `open'
scripts/mkdep.c:531: `O_RDONLY' undeclared (first use in this function)
scripts/mkdep.c:537: warning: implicit declaration of function `fstat'
scripts/mkdep.c:540: warning: implicit declaration of function `close'
scripts/mkdep.c:546: warning: implicit declaration of function `mmap'
scripts/mkdep.c:546: `PROT_READ' undeclared (first use in this function)
scripts/mkdep.c:546: `MAP_PRIVATE' undeclared (first use in this function)
scripts/mkdep.c:546: warning: assignment makes pointer from integer without a cast
scripts/mkdep.c:562: warning: implicit declaration of function `puts'
scripts/mkdep.c:567: warning: implicit declaration of function `munmap'
scripts/mkdep.c:528: warning: unused variable `st'
scripts/mkdep.c: In function `main':
scripts/mkdep.c:581: warning: implicit declaration of function `getenv'
scripts/mkdep.c:581: warning: assignment makes pointer from integer without a cast
scripts/mkdep.c:583: warning: implicit declaration of function `fputs'
scripts/mkdep.c:591: warning: implicit declaration of function `strncmp'
make: *** [scripts/mkdep] Error 1

***********

So, where do I go from here?
 
Old 03-14-2004, 08:38 PM   #9
DragonDon
LQ Newbie
 
Registered: Mar 2004
Location: Toronto, ON
Posts: 29

Original Poster
Rep: Reputation: 15
Well, finally found the right answer!

I thought I had installed all the Glibc files but guess I missed the important one.

Installed in it, and Make Dep work, make clean worked...not working on make bzlilo

Found info here:

http://nlug.org/mail/nlug__2000_02/0764.html

Will let you know how it goes
 
Old 03-14-2004, 08:41 PM   #10
DragonDon
LQ Newbie
 
Registered: Mar 2004
Location: Toronto, ON
Posts: 29

Original Poster
Rep: Reputation: 15
Ok, make bzlilo is now an issue:

In file included from /usr/include/bits/errno.h:25,
from /usr/include/errno.h:36,
from scripts/split-include.c:26:
/usr/include/linux/errno.h:4:23: asm/errno.h: No such file or directory
make: *** [scripts/split-include] Error 1


Haven't looked for an answer yet, will post it if I do.
 
Old 03-14-2004, 09:04 PM   #11
DragonDon
LQ Newbie
 
Registered: Mar 2004
Location: Toronto, ON
Posts: 29

Original Poster
Rep: Reputation: 15
Well, looks like the /usr/src/linux/asm directory is missing....looking into finding what other package did not get installed.

Suggestions welcome
 
Old 03-14-2004, 09:14 PM   #12
DragonDon
LQ Newbie
 
Registered: Mar 2004
Location: Toronto, ON
Posts: 29

Original Poster
Rep: Reputation: 15
I thiI get it...the asm is a symbolic link to another directory...now if I can just figure out how to properly list that symbolic link, I may be ok.
 
Old 03-16-2004, 06:54 PM   #13
DragonDon
LQ Newbie
 
Registered: Mar 2004
Location: Toronto, ON
Posts: 29

Original Poster
Rep: Reputation: 15
Figured that out now, got it working....new problem....new thread
 
  


Reply


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
upgraded kernel, won't let me compile kernel once Suspend2 patches are applied microsoft/linux Linux - Laptop and Netbook 3 10-02-2005 02:37 PM
I want to compile 2.6 kernel and keep everything from 2.4 intact (dual kernel system) sina_kish Linux - Software 7 02-02-2005 09:01 AM
Kernel Problems. Howto Compile a new kernel from 4.2 with backwards compatibility ? ShoCkwave Linux - General 2 06-19-2004 06:02 AM
can i compile just one kernel module whithout recompiling the whole kernel? edman007 Linux - Software 3 02-17-2004 03:05 PM
Kernel 2.4.23 compile causes kernel panics on ATA RAID-1 (mirror) array Raptor Ramjet Slackware 3 12-18-2003 01:40 PM


All times are GMT -5. The time now is 01:13 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration