LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 04-06-2004, 01:24 PM   #1
designguy79
LQ Newbie
 
Registered: Nov 2003
Distribution: Slack
Posts: 7

Rep: Reputation: 0
Kernel compile; missing packages, maybe?


Hi,

My friend installed Slack 9.1 off the CD and is asking that I do a kernel compile of the latest stable kernel release, 2.6.5. I am a "newbie" at kernel compiling, but am definitely more *nix informed than he is.

I have read many of the threads on compiling the kernel, but I am having problems finding an answer still. Hopefully I am not asking too much! :-)

I have no idea what packages he installed with the initial setup. I downloaded the kernel from a kernel.org mirror and stuck it in /usr/src/linux/linux-2.6.5.tar.gz and have a symbolic link to it named /usr/src/linux

After following the instructions on the sticky threads (and some other useful ones I found regading 2.6.5), I get stuck on the step of 'make oldconfig' or 'make config' (depending on what config file to use)

It looks like there are a bunch of files missing! I am assuming that there are some development packages that need to be installed first. Is there a tutorial or other documentation on this, or can someone answer?

I really appreciate the help!

-- Jeremy
 
Old 04-06-2004, 01:31 PM   #2
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,090

Rep: Reputation: 41
Im hoping you typoed where you placed the file.. but I will go over it to be sure..

extract kernel-2.6.5.tar.gz to /usr/src/linux-2.6.5

in /usr/src

rm linux

ln -s linux-2.6.5 linux

cd linux

make mrproper
(copy your old config file to current directory... it is better to go from scratch)
make *config (* being the config of your choice)

make bzImage

make modules

make modules_install

cp System.map /boot/System.map-2.6.5
cp arch/i386/boot/bzImage /boot/bzImage-2.6.5

make lilo.conf or grub changes and add another kernel too boot (bzImage-2.6.5)

That is the basics to get compile a new kernel
 
Old 04-06-2004, 01:36 PM   #3
designguy79
LQ Newbie
 
Registered: Nov 2003
Distribution: Slack
Posts: 7

Original Poster
Rep: Reputation: 0
Yes, I did mis-type the src directory... I extracted it to /usr/src/linux-

Okay, 'make mrproper' runs fine... I think, there is no output.

'make oldconfig' gives so many errors that I cannot scroll back far enough in PuTTY to see the beginning:

======
/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/basic/fixdep.c:104:
/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"
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/basic/fixdep.c:105:
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/limits.h:132:75: limits.h: No such file or directory
scripts/basic/fixdep.c:106:19: ctype.h: No such file or directory
scripts/basic/fixdep.c:107:24: netinet/in.h: No such file or directory
scripts/basic/fixdep.c:114: syntax error before "char"
scripts/basic/fixdep.c: In function `usage':
scripts/basic/fixdep.c:121: warning: implicit declaration of function `fprintf'
scripts/basic/fixdep.c:122: warning: implicit declaration of function `exit'
scripts/basic/fixdep.c: In function `print_cmdline':
scripts/basic/fixdep.c:127: warning: implicit declaration of function `printf'
scripts/basic/fixdep.c: In function `grow_config':
scripts/basic/fixdep.c:143: warning: implicit declaration of function `realloc'
scripts/basic/fixdep.c:143: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:145: warning: implicit declaration of function `perror'
scripts/basic/fixdep.c: In function `is_defined_config':
scripts/basic/fixdep.c:161: warning: implicit declaration of function `memcmp'
scripts/basic/fixdep.c: In function `define_config':
scripts/basic/fixdep.c:174: warning: implicit declaration of function `memcpy'
scripts/basic/fixdep.c: In function `use_config':
scripts/basic/fixdep.c:193: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:193: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:193: for each function it appears in.)
scripts/basic/fixdep.c:207: warning: implicit declaration of function `tolower'
scripts/basic/fixdep.c:193: warning: unused variable `s'
scripts/basic/fixdep.c: In function `parse_config_file':
scripts/basic/fixdep.c:220: warning: implicit declaration of function `ntohl'
scripts/basic/fixdep.c:231: warning: implicit declaration of function `isalnum'
scripts/basic/fixdep.c: In function `strrcmp':
scripts/basic/fixdep.c:244: warning: implicit declaration of function `strlen'
scripts/basic/fixdep.c: In function `do_config_file':
scripts/basic/fixdep.c:255: storage size of `st' isn't known
scripts/basic/fixdep.c:259: warning: implicit declaration of function `open'
scripts/basic/fixdep.c:259: `O_RDONLY' undeclared (first use in this function)
scripts/basic/fixdep.c:265: warning: implicit declaration of function `fstat'
scripts/basic/fixdep.c:267: warning: implicit declaration of function `close'
scripts/basic/fixdep.c:270: warning: implicit declaration of function `mmap'
scripts/basic/fixdep.c:270: `PROT_READ' undeclared (first use in this function)
scripts/basic/fixdep.c:270: `MAP_PRIVATE' undeclared (first use in this function)
scripts/basic/fixdep.c:270: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:279: warning: implicit declaration of function `munmap'
scripts/basic/fixdep.c:255: warning: unused variable `st'
scripts/basic/fixdep.c: In function `parse_dep_file':
scripts/basic/fixdep.c:289: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:291: warning: implicit declaration of function `strchr'
scripts/basic/fixdep.c:289: warning: unused variable `s'
scripts/basic/fixdep.c: In function `print_deps':
scripts/basic/fixdep.c:325: storage size of `st' isn't known
scripts/basic/fixdep.c:329: `O_RDONLY' undeclared (first use in this function)
scripts/basic/fixdep.c:341: `PROT_READ' undeclared (first use in this function)
scripts/basic/fixdep.c:341: `MAP_PRIVATE' undeclared (first use in this function)
scripts/basic/fixdep.c:341: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:325: warning: unused variable `st'
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
=====

I know my problem is something glaring obvious. Thanks for the help!
 
Old 04-06-2004, 02:54 PM   #4
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,090

Rep: Reputation: 41
what does make menuconfig give you?
 
Old 04-06-2004, 03:04 PM   #5
designguy79
LQ Newbie
 
Registered: Nov 2003
Distribution: Slack
Posts: 7

Original Poster
Rep: Reputation: 0
Doesnt 'make menuconfig' require X?

I gave it a shot... looks like alot of the same errors...

=====

/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/basic/fixdep.c:104:
/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"
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/basic/fixdep.c:105:
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/include/limits.h:132:75: limits.h: No such file or directory
scripts/basic/fixdep.c:106:19: ctype.h: No such file or directory
scripts/basic/fixdep.c:107:24: netinet/in.h: No such file or directory
scripts/basic/fixdep.c:114: syntax error before "char"
scripts/basic/fixdep.c: In function `usage':
scripts/basic/fixdep.c:121: warning: implicit declaration of function `fprintf'
scripts/basic/fixdep.c:122: warning: implicit declaration of function `exit'
scripts/basic/fixdep.c: In function `print_cmdline':
scripts/basic/fixdep.c:127: warning: implicit declaration of function `printf'
scripts/basic/fixdep.c: In function `grow_config':
scripts/basic/fixdep.c:143: warning: implicit declaration of function `realloc'
scripts/basic/fixdep.c:143: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:145: warning: implicit declaration of function `perror'
scripts/basic/fixdep.c: In function `is_defined_config':
scripts/basic/fixdep.c:161: warning: implicit declaration of function `memcmp'
scripts/basic/fixdep.c: In function `define_config':
scripts/basic/fixdep.c:174: warning: implicit declaration of function `memcpy'
scripts/basic/fixdep.c: In function `use_config':
scripts/basic/fixdep.c:193: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:193: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:193: for each function it appears in.)
scripts/basic/fixdep.c:207: warning: implicit declaration of function `tolower'
scripts/basic/fixdep.c:193: warning: unused variable `s'
scripts/basic/fixdep.c: In function `parse_config_file':
scripts/basic/fixdep.c:220: warning: implicit declaration of function `ntohl'
scripts/basic/fixdep.c:231: warning: implicit declaration of function `isalnum'
scripts/basic/fixdep.c: In function `strrcmp':
scripts/basic/fixdep.c:244: warning: implicit declaration of function `strlen'
scripts/basic/fixdep.c: In function `do_config_file':
scripts/basic/fixdep.c:255: storage size of `st' isn't known
scripts/basic/fixdep.c:259: warning: implicit declaration of function `open'
scripts/basic/fixdep.c:259: `O_RDONLY' undeclared (first use in this function)
scripts/basic/fixdep.c:265: warning: implicit declaration of function `fstat'
scripts/basic/fixdep.c:267: warning: implicit declaration of function `close'
scripts/basic/fixdep.c:270: warning: implicit declaration of function `mmap'
scripts/basic/fixdep.c:270: `PROT_READ' undeclared (first use in this function)
scripts/basic/fixdep.c:270: `MAP_PRIVATE' undeclared (first use in this function)
scripts/basic/fixdep.c:270: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:279: warning: implicit declaration of function `munmap'
scripts/basic/fixdep.c:255: warning: unused variable `st'
scripts/basic/fixdep.c: In function `parse_dep_file':
scripts/basic/fixdep.c:289: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:291: warning: implicit declaration of function `strchr'
scripts/basic/fixdep.c:289: warning: unused variable `s'
scripts/basic/fixdep.c: In function `print_deps':
scripts/basic/fixdep.c:325: storage size of `st' isn't known
scripts/basic/fixdep.c:329: `O_RDONLY' undeclared (first use in this function)
scripts/basic/fixdep.c:341: `PROT_READ' undeclared (first use in this function)
scripts/basic/fixdep.c:341: `MAP_PRIVATE' undeclared (first use in this function)
scripts/basic/fixdep.c:341: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:325: warning: unused variable `st'
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2

====

Once again, I cannot scroll back far enough to read all the errors. Thanks for the help, trey85stang!
 
Old 04-06-2004, 07:45 PM   #6
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,090

Rep: Reputation: 41
hmmm, thats odd indeed... you havent happened to of upgraded to gcc 3.3.3??
 
Old 04-06-2004, 07:48 PM   #7
designguy79
LQ Newbie
 
Registered: Nov 2003
Distribution: Slack
Posts: 7

Original Poster
Rep: Reputation: 0
No upgrades... everything, except the kernel 2.6.5 source, is right off the Slack 9.1 CD.

Is there a list of packages that need to be installed for kernel compliation to work properly?
 
Old 04-07-2004, 07:47 PM   #8
geekzen
Member
 
Registered: Mar 2004
Location: Canada. The Great white north.
Distribution: Debian Sid
Posts: 183

Rep: Reputation: 30
Yes. ../linux/Documentation/Changes. In there is a list.

It sounds like an out of date gcc to me.... make sure you have (i think... check changes) 2.95.4

Last edited by geekzen; 04-07-2004 at 07:49 PM.
 
Old 04-07-2004, 08:02 PM   #9
frandalla
Member
 
Registered: Oct 2003
Location: Tokyo - Japan
Distribution: Slackware
Posts: 348
Blog Entries: 1

Rep: Reputation: 37
Appears to me that your friend didn't install the standard C++ library... the make file isn't finding even stdio.h which is a really basic file for almost anything you wanna compile....
you should check for the glibc packages...
 
Old 04-07-2004, 08:04 PM   #10
frandalla
Member
 
Registered: Oct 2003
Location: Tokyo - Japan
Distribution: Slackware
Posts: 348
Blog Entries: 1

Rep: Reputation: 37
ah... and the gcc is ok...I use the same distro and have the 2.6.4 installed
 
Old 04-07-2004, 08:58 PM   #11
subgenius
Member
 
Registered: Mar 2004
Distribution: Slackware 9.1
Posts: 41

Rep: Reputation: 15
The first missing file, "bits/types.h", is in the glibc package.

Is glibc installed?

Plus, to compile the text-based interface presented by "make menuconfig"
ncurses needs to be installed. Check that too. But glibc has to be there first.
 
Old 04-07-2004, 09:14 PM   #12
frandalla
Member
 
Registered: Oct 2003
Location: Tokyo - Japan
Distribution: Slackware
Posts: 348
Blog Entries: 1

Rep: Reputation: 37
subgenius: well remembered about ncurses....he might not have that if he didn't install glibc
 
  


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
Missing 'module-info-2.6.12.2' after kernel compile. mr_mccabe Linux - General 1 07-14-2005 03:46 PM
Want to compile kernel, missing include/linux/autoconf.h pjz Linux - Software 4 06-17-2005 09:06 AM
Missing Packages doctorwebbox Debian 2 05-29-2005 10:02 AM
Missing Packages Snipersnest Fedora 1 01-28-2005 09:44 AM
What packages are required for xconfig for 2.6 kernel compile? Nigel_Tufnel Debian 15 07-29-2004 08:50 AM


All times are GMT -5. The time now is 08:27 PM.

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