Can't compile RedHat 2.4.20-13.7 kernel

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

 



Hello!

During compilation this error comes up:

make -C net modules
make[2]: Wechsel in das Verzeichnis Verzeichnis Â/home/sources/linux-2.4.20-13.7/drivers/netÂ
gcc -D__KERNEL__ -I/home/sources/linux-2.4.20-13.7/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include /home/sources/linux-2.4.20-13.7/include/linux/modversions.h -nostdinc -iwithprefix include -DKBUILD_BASENAME=dummy -c -o dummy.o dummy.c
In file included from /home/sources/linux-2.4.20-13.7/include/linux/prefetch.h:13,
from /home/sources/linux-2.4.20-13.7/include/linux/list.h:6,
from /home/sources/linux-2.4.20-13.7/include/linux/module.h:12,
from dummy.c:34:
/home/sources/linux-2.4.20-13.7/include/asm/processor.h:51: warning: parameter names (without types) in function declaration
/home/sources/linux-2.4.20-13.7/include/asm/processor.h:51: field `loops_per_jiffy_R_ver_str' declared as a function
/home/sources/linux-2.4.20-13.7/include/asm/processor.h:74: nondigits in number and not hexadecimal
/home/sources/linux-2.4.20-13.7/include/asm/processor.h:74: parse error before `0657d037'
/home/sources/linux-2.4.20-13.7/include/asm/processor.h:74: warning: function declaration isn't a prototype
/home/sources/linux-2.4.20-13.7/include/asm/processor.h:261: warning: parameter names (without types) in function declaration



plus some more.



Due to some limitations from the previous MS Windows installations I have a lot more disk space in /home so I'm compiling there. I made a few kernel version 2.4.9, 2.4.18, and 2.4.19 in this area.


Pre-processing dummy.c (-E -dD) leeds to these excerpts:

64 # 1 "/home/sources/linux-2.4.20-13.7/include/linux/modsetver.h" 1
65 #define __SYMBOL_VERSION(x) __ver_ ## x
66 #define __VERSIONED_SYMBOL2(x, v) x ## _R ## v
67 #define __VERSIONED_SYMBOL1(x, v) __VERSIONED_SYMBOL2(x,v)
68 #define __VERSIONED_SYMBOL(x) __VERSIONED_SYMBOL1(x,__SYMBOL_VERSION(x))
69 #define _set_ver(x) __VERSIONED_SYMBOL(x)



1825 # 1492 "/home/sources/linux-2.4.20-13.7/include/linux/modules/ksyms.ver"
1826 #define __ver_do_execve _ver_str(9c62098f)
1827 #define do_execve _set_ver(do_execve)
1828 # 1523 "/home/sources/linux-2.4.20-13.7/include/linux/modules/ksyms.ver"
1829 #define __ver_loops_per_jiffy _ver_str(ba497f13)
1830 #define loops_per_jiffy _set_ver(loops_per_jiffy)


4106 # 20 "/home/sources/linux-2.4.20-13.7/include/asm/processor.h" 2
4107 #define current_text_addr() ({ void *pc; __asm__("movl $1f,%0\n1:":"=g" (pc)); pc; })
4108 struct cpuinfo_x86 {
4109 __u8 x86;
4110 __u8 x86_vendor;
4111 __u8 x86_model;
4112 __u8 x86_mask;
4113 char wp_works_ok;
4114 char hlt_works_ok;
4115 char hard_math;
4116 char rfu;
4117 int cpuid_level;
4118 __u32 x86_capability[4];
4119 char x86_vendor_id[16];
4120 char x86_model_id[64];
4121 int x86_cache_size;
4122 int fdiv_bug;
4123 int f00f_bug;
4124 int coma_bug;
4125 unsigned long loops_per_jiffy_R_ver_str(ba497f13);
4126 unsigned long *pgd_quick;
4127 unsigned long *pmd_quick;
4128 unsigned long *pte_quick;
4129 unsigned long pgtable_cache_sz;
4130 } __attribute__((__aligned__((1 << ((7))))));
4131 #define X86_VENDOR_INTEL 0
4132 #define X86_VENDOR_CYRIX 1
4133 #define X86_VENDOR_AMD 2
4134 #define X86_VENDOR_UMC 3
4135 #define X86_VENDOR_NEXGEN 4
4136 #define X86_VENDOR_CENTAUR 5
4137 #define X86_VENDOR_RISE 6
4138 #define X86_VENDOR_TRANSMETA 7
4139 #define X86_VENDOR_NSC 8
4140 #define X86_VENDOR_SIS 9
4141 #define X86_VENDOR_UNKNOWN 0xff
4142 extern struct cpuinfo_x86 boot_cpu_data_R_ver_str(0657d037);


15534 extern int do_execve_R_ver_str(9c62098f)(char *, char **, char **, struct pt_regs *);

gcc --version ==> 2.96

Do I need to run a RedHat kernel to compile successfully?

--
Mit freundlichen GrÃÃen

Pete                                            Nols GES AG
                                               GervinusstraÃe 18-22
(Peter Dyballa)         069-92024Â795           60322 Frankfurt am Main


- : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux