Re: Kernel recompiling error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/31/06, Neil Cherry <ncherry@xxxxxxxxxxx> wrote:
> Chethiya K Ranaweera wrote:
> > On 3/31/06, Neil Cherry <ncherry@xxxxxxxxxxx> wrote:
> >> Chethiya K Ranaweera wrote:
> >>> I am trying to recompile the 2.6.16-1.2080_FC5 kernel. I followed the
> >>> instructions given in the fedora core website but I get a bunch of
> >>> errors in scripts/basic/fixdep.c file. Has anybody else experienced
> >>> this problem??
> >> What did you install and how? Give the full commands please.
> >>
> >> --
> >> Linux Home Automation         Neil Cherry       ncherry@xxxxxxxxxxx
> >> http://www.linuxha.com/                         Main site
> >> http://linuxha.blogspot.com/                    My HA Blog
> >> http://home.comcast.net/~ncherry/               Backup site
> >>
> > First I installed rpmdevtools so that I can build the tree later.
> >>> fedora-buildrpmtree
> >
> > After that, I installed the kernel-devel package first using yum. Then
> > I used yumdownloader to down load and install the kernel-source. Upto
> > this point everything worked fine.
> >
> > Then I changed directoty to /rpmbuild/SPECS and gave the following command
> >>> rpmbuild -bp --target $(uname -m) kernel-2.6.spec
> >
> > after sometime it gave me the above error I mentioned(errors in
> > scripts/basic/fixdep.c)
> >
> > I also tried to go to /usr/src/kernel/<kernel-ver> directory  and then
> > located the .config file. Then I changed the extraversion of the
> > Makefile and try to use
> >>> make xconfig
> > It compiled for sometime and gave me the "EXACT" error like before.
> > Does this mean anything? What should I do now?
>
> I think I got burned by this too. Some one suggested that the
> devel package is for building modules. I'd recommend downloading
> the kernel source and using that instead. I'm not sure if that's
> the correct way or not but it does work. You can get the kernel
> source from the mirrors.
>
> --
> Linux Home Automation         Neil Cherry       ncherry@xxxxxxxxxxx
> http://www.linuxha.com/                         Main site
> http://linuxha.blogspot.com/                    My HA Blog
> http://home.comcast.net/~ncherry/               Backup site
>


This is the output I get when I try to recompile

  HOSTCC  scripts/basic/fixdep
scripts/basic/fixdep.c:105:23: error: sys/types.h: No such file or directory
scripts/basic/fixdep.c:106:22: error: sys/stat.h: No such file or directory
scripts/basic/fixdep.c:107:22: error: sys/mman.h: No such file or directory
scripts/basic/fixdep.c:108:20: error: unistd.h: No such file or directory
scripts/basic/fixdep.c:109:19: error: fcntl.h: No such file or directory
scripts/basic/fixdep.c:110:20: error: string.h: No such file or directory
scripts/basic/fixdep.c:111:20: error: stdlib.h: No such file or directory
scripts/basic/fixdep.c:112:19: error: stdio.h: No such file or directory
In file included from
/usr/lib/gcc/i386-redhat-linux/4.1.0/include/syslimits.h:7,
                 from /usr/lib/gcc/i386-redhat-linux/4.1.0/include/limits.h:11,
                 from scripts/basic/fixdep.c:113:
/usr/lib/gcc/i386-redhat-linux/4.1.0/include/limits.h:122:61: error:
limits.h: No such file or directory
scripts/basic/fixdep.c:114:19: error: ctype.h: No such file or directory
scripts/basic/fixdep.c:115:23: error: arpa/inet.h: No such file or directory
scripts/basic/fixdep.c: In function 'usage':
scripts/basic/fixdep.c:129: error: implicit declaration of function 'fprintf'
scripts/basic/fixdep.c:129: warning: incompatible implicit declaration
of built-in function 'fprintf'
scripts/basic/fixdep.c:129: error: 'stderr' undeclared (first use in
this function)
scripts/basic/fixdep.c:129: error: (Each undeclared identifier is
reported only once
scripts/basic/fixdep.c:129: error: for each function it appears in.)
scripts/basic/fixdep.c:130: error: implicit declaration of function 'exit'
scripts/basic/fixdep.c:130: warning: incompatible implicit declaration
of built-in function 'exit'
scripts/basic/fixdep.c: In function 'print_cmdline':
scripts/basic/fixdep.c:142: error: implicit declaration of function 'printf'
scripts/basic/fixdep.c:142: warning: incompatible implicit declaration
of built-in function 'printf'
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:151: error: 'NULL' undeclared here (not in a function)
scripts/basic/fixdep.c: In function 'grow_config':
scripts/basic/fixdep.c:164: error: implicit declaration of function 'realloc'
scripts/basic/fixdep.c:164: warning: assignment makes pointer from
integer without a cast
scripts/basic/fixdep.c:166: error: implicit declaration of function 'perror'
scripts/basic/fixdep.c:166: warning: incompatible implicit declaration
of built-in function 'exit'
scripts/basic/fixdep.c: In function 'is_defined_config':
scripts/basic/fixdep.c:182: error: implicit declaration of function 'memcmp'
scripts/basic/fixdep.c: In function 'define_config':
scripts/basic/fixdep.c:195: error: implicit declaration of function 'memcpy'
scripts/basic/fixdep.c:195: warning: incompatible implicit declaration
of built-in function 'memcpy'
scripts/basic/fixdep.c: In function 'use_config':
scripts/basic/fixdep.c:214: error: 'PATH_MAX' undeclared (first use in
this function)
scripts/basic/fixdep.c:222: warning: incompatible implicit declaration
of built-in function 'memcpy'
scripts/basic/fixdep.c:228: error: implicit declaration of function 'tolower'
scripts/basic/fixdep.c:230: warning: incompatible implicit declaration
of built-in function 'printf'
scripts/basic/fixdep.c:214: warning: unused variable 's'
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:233: error: expected declaration specifiers or
'...' before 'size_t'
scripts/basic/fixdep.c: In function 'parse_config_file':
scripts/basic/fixdep.c:235: error: 'len' undeclared (first use in this function)
scripts/basic/fixdep.c:241: error: implicit declaration of function 'ntohl'
scripts/basic/fixdep.c:252: error: implicit declaration of function 'isalnum'
scripts/basic/fixdep.c: In function 'strrcmp':
scripts/basic/fixdep.c:265: error: implicit declaration of function 'strlen'
scripts/basic/fixdep.c:265: warning: incompatible implicit declaration
of built-in function 'strlen'
scripts/basic/fixdep.c: In function 'do_config_file':
scripts/basic/fixdep.c:276: error: storage size of 'st' isn't known
scripts/basic/fixdep.c:280: error: implicit declaration of function 'open'
scripts/basic/fixdep.c:280: error: 'O_RDONLY' undeclared (first use in
this function)
scripts/basic/fixdep.c:282: warning: incompatible implicit declaration
of built-in function 'fprintf'
scripts/basic/fixdep.c:282: error: 'stderr' undeclared (first use in
this function)
scripts/basic/fixdep.c:284: warning: incompatible implicit declaration
of built-in function 'exit'
scripts/basic/fixdep.c:286: error: implicit declaration of function 'fstat'
scripts/basic/fixdep.c:288: error: implicit declaration of function 'close'
scripts/basic/fixdep.c:291: error: implicit declaration of function 'mmap'
scripts/basic/fixdep.c:291: error: 'PROT_READ' undeclared (first use
in this function)
scripts/basic/fixdep.c:291: error: 'MAP_PRIVATE' undeclared (first use
in this function)
scripts/basic/fixdep.c:291: warning: assignment makes pointer from
integer without a cast
scripts/basic/fixdep.c:298: error: too many arguments to function
'parse_config_file'
scripts/basic/fixdep.c:300: error: implicit declaration of function 'munmap'
scripts/basic/fixdep.c:276: warning: unused variable 'st'
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:305: error: expected declaration specifiers or
'...' before 'size_t'
scripts/basic/fixdep.c: In function 'parse_dep_file':
scripts/basic/fixdep.c:308: error: 'len' undeclared (first use in this function)
scripts/basic/fixdep.c:310: error: 'PATH_MAX' undeclared (first use in
this function)
scripts/basic/fixdep.c:312: error: implicit declaration of function 'strchr'
scripts/basic/fixdep.c:312: warning: incompatible implicit declaration
of built-in function 'strchr'
scripts/basic/fixdep.c:314: warning: incompatible implicit declaration
of built-in function 'fprintf'
scripts/basic/fixdep.c:314: error: 'stderr' undeclared (first use in
this function)
scripts/basic/fixdep.c:315: warning: incompatible implicit declaration
of built-in function 'exit'
scripts/basic/fixdep.c:317: warning: incompatible implicit declaration
of built-in function 'memcpy'
scripts/basic/fixdep.c:318: warning: incompatible implicit declaration
of built-in function 'printf'
scripts/basic/fixdep.c:310: warning: unused variable 's'
scripts/basic/fixdep.c: In function 'print_deps':
scripts/basic/fixdep.c:347: error: storage size of 'st' isn't known
scripts/basic/fixdep.c:351: error: 'O_RDONLY' undeclared (first use in
this function)
scripts/basic/fixdep.c:353: warning: incompatible implicit declaration
of built-in function 'fprintf'
scripts/basic/fixdep.c:353: error: 'stderr' undeclared (first use in
this function)
scripts/basic/fixdep.c:355: warning: incompatible implicit declaration
of built-in function 'exit'
scripts/basic/fixdep.c:359: warning: incompatible implicit declaration
of built-in function 'fprintf'
scripts/basic/fixdep.c:363: error: 'PROT_READ' undeclared (first use
in this function)
scripts/basic/fixdep.c:363: error: 'MAP_PRIVATE' undeclared (first use
in this function)
scripts/basic/fixdep.c:363: warning: assignment makes pointer from
integer without a cast
scripts/basic/fixdep.c:370: error: too many arguments to function
'parse_dep_file'
scripts/basic/fixdep.c:347: warning: unused variable 'st'
scripts/basic/fixdep.c: In function 'traps':
scripts/basic/fixdep.c:382: warning: incompatible implicit declaration
of built-in function 'fprintf'
scripts/basic/fixdep.c:382: error: 'stderr' undeclared (first use in
this function)
scripts/basic/fixdep.c:384: warning: incompatible implicit declaration
of built-in function 'exit'
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2

What could be the problem?


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux