Build Problems

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

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

make bzImage error

Shifani (not verified)
on
June 27, 2005 - 10:59am

Hi,

I am running FC 3 with a 2.6 kernel. I am trying to compile a 2.4.20-8 it returns a problem when I try to build

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

[root@localhost linux-2.4]# make bzImage
make -r -f tmp_include_depends all
make[1]: Entering directory `/usr/src/linux-2.4.20-8'
make[1]: Circular /usr/src/linux-2.4.20-8/include/asm/smplock.h <- /usr/src/linux-2.4.20-8/include/linux/interrupt.h dependency dropped.
make[1]: Circular /usr/src/linux-2.4.20-8/include/linux/netfilter_ipv4/ip_conntrack.h <- /usr/src/linux-2.4.20-8/include/linux/netfilter_ipv4/ip_conntrack_helper.h dependency dropped.
make[1]: Leaving directory `/usr/src/linux-2.4.20-8'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-8/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.20-8/include/linux/sched.h:25,
from /usr/src/linux-2.4.20-8/include/linux/mm.h:22,
from /usr/src/linux-2.4.20-8/include/linux/slab.h:14,
from /usr/src/linux-2.4.20-8/include/linux/proc_fs.h:5,
from init/main.c:15:
/usr/src/linux-2.4.20-8/include/linux/smp.h:29: error: conflicting types for 'smp_send_reschedule'
/usr/src/linux-2.4.20-8/include/asm/smp.h:41: error: previous declaration of 'smp_send_reschedule' was here
/usr/src/linux-2.4.20-8/include/linux/smp.h:29: error: conflicting types for 'smp_send_reschedule'
/usr/src/linux-2.4.20-8/include/asm/smp.h:41: error: previous declaration of 'smp_send_reschedule' was here
In file included from /usr/src/linux-2.4.20-8/include/linux/unistd.h:9,
from init/main.c:17:
/usr/src/linux-2.4.20-8/include/asm/unistd.h:377: warning: conflicting types for built-in function '_exit'
make: *** [init/main.o] Error 1

Any help is highly appriciated.

Regards
Shifani

Comment viewing options

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