/usr/linux-2.4.20/include/linux/smp.h:29: error: conflicting types for 'smp_send_reschedule'
/usr/linux-2.4.20/include/asm/smp.h:42: error: previous declaration of 'smp_send_reschedule' was here
In file included from /usr/linux-2.4.20/include/linux/unistd.h:9,
from init/main.c:17:
/usr/linux-2.4.20/include/asm/unistd.h:375: warning: conflicting types for built-in function '_exit'
make: *** [init/main.o] Error 1
到网上查了查,发现是FC5下的GCC版本太新(gcc4.1),无法编译linux-2.4.20?????????
在一个国外网站上也发现了类似的 问题,他们的建议是使用 gcc 2.95或者gcc3.2进行编译(Dave Thompson),心想难道要要把gcc的 版本降下去不成?
在网上寻找了一会,发现其实FC5下可以安装一个pachage,就可以使用gcc3.2,同时不会影响当前的gcc4.1。于是就在ftp://rpmfind.net/linux/fedora/c ... 2.3-55.fc5.i386.rpm里下载了一个,该包的大致描述为:The compatibility GNU Compiler Collection Fedora Core 5 for i386,马上进行安装
{standard input}: Assembler messages:
{standard input}:936: Error: suffix or operands invalid for `mov'
{standard input}:937: Error: suffix or operands invalid for `mov'
{standard input}:1031: Error: suffix or operands invalid for `mov'
{standard input}:1032: Error: suffix or operands invalid for `mov'
{standard input}:1083: Error: suffix or operands invalid for `mov'
{standard input}:1084: Error: suffix or operands invalid for `mov'
{standard input}:1086: Error: suffix or operands invalid for `mov'
{standard input}:1098: Error: suffix or operands invalid for `mov'
cd /lib/modules/2.4.20; \
mkdir -p pcmcia; \
find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{} pcmcia
if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.4.20; fi
Version requires old depmod, but couldn't run /sbin/depmod.old: No such file or directory