2.4.21/22/23 build problems

Submitted by kewlemer
on April 2, 2005 - 11:02pm

Folks,

I am running FC 3 with a 2.6 kernel. To run this program called ext3cow, I am trying to compile a 2.4.21/22/23 and all of them return a similar problem when I try to build them:

Here is the log after I have done a 'make dep' and 'make clean'.


[root@postel linux-2.4.22]#
[root@postel linux-2.4.22]# make bzImage
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/split-include scripts/split-include.c
scripts/split-include include/linux/autoconf.h include/config
gcc -D__KERNEL__ -I/usr/src/linux-2.4.22/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
In file included from /usr/src/linux-2.4.22/include/linux/sched.h:23,
from /usr/src/linux-2.4.22/include/linux/mm.h:4,
from /usr/src/linux-2.4.22/include/linux/slab.h:14,
from /usr/src/linux-2.4.22/include/linux/proc_fs.h:5,
from init/main.c:15:
/usr/src/linux-2.4.22/include/linux/smp.h:29: error: conflicting types for 'smp_send_reschedule'
/usr/src/linux-2.4.22/include/asm/smp.h:42: error: previous declaration of 'smp_send_reschedule' was here
/usr/src/linux-2.4.22/include/linux/smp.h:29: error: conflicting types for 'smp_send_reschedule'
/usr/src/linux-2.4.22/include/asm/smp.h:42: error: previous declaration of 'smp_send_reschedule' was here
In file included from /usr/src/linux-2.4.22/include/linux/unistd.h:9,
from init/main.c:17:
/usr/src/linux-2.4.22/include/asm/unistd.h:375: warning: conflicting types for built-in function '_exit'
make: *** [init/main.o] Error 1
[root@postel linux-2.4.22]#

make zImage, make zdisk, make all - all give the same problem.

Any help will be greatly appreciated.

Thanks,
Kewlemer

I'm having the same problem,

Ricardo (not verified)
on
September 17, 2005 - 2:40pm

I'm having the same problem, did you find a way to compile the kernel??

more info?

on
September 17, 2005 - 5:35pm

To not exclude people who don't happen to have 2.4.2[123] sources lying around from the group of possible helpers, can you tell us the conflicting prototypes? That is, some lines around the lines mentioned in the errors, e.g.
/usr/src/linux-2.4.22/include/linux/smp.h:29: error: conflicting types for 'smp_send_reschedule' ==> lines 23 to 35 of /usr/src/linux-2.4.22/include/linux/smp.h, and /usr/src/linux-2.4.22/include/asm/smp.h:42: error: previous declaration of 'smp_send_reschedule' was here ==> lines 35 to 47 of this file. Have you tried to simply remove the differences by editing the files?

Checking the gcc version may be important as well, does FC3 even include the 'official' linux-2.4 compiler gcc-2.95.3 ? Later compilers were not tested by the developers (they aren't clairvoyant) and may not work.

Have you done 'make oldconfig' before the other make commands?

2.4.21/22/23 build problems

on
July 22, 2007 - 7:16pm

I have gcc-3.x and gcc-4.x instaled in my host and when I did make bzImage the same problem ocours. I solved it by editing Makefile and substitute gcc to gcc-3.0. gcc --version show (GCC) 4.1.2.

Humberto

hi,Humberto. i have the

anyzixin (not verified)
on
August 17, 2007 - 3:25am

hi,Humberto.
i have the same problem too. could you tell me how to solve the problem for detail! for example,you change which part of Makefile?

Thanks!

I solved the problem by

anyzixin (not verified)
on
August 19, 2007 - 9:37pm

I solved the problem by deleting all the files that are not source files(.h,.c ,makefile and so on), and then re-make the source files.It didn't report any error,but some warnings.you can find .exe file in your direction.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.