安装软猫出错。
以前在slackware91里可以正常装上猫。现在换用Fedora1.0 自动编译进内核时会出错。
驱动用的是hsflinmodem-5.03.03.L3mbsibeta02061800.tar.gz
好像是说Fedora有两个gcc 那个gcc323已经安装了。
出错的log文件:
../modules/kernelcompiler.sh: using gcc; cannot find compiler matching:
../modules/kernelcompiler.sh: gcc version 3.2.3 20030422 (Red Hat Linux 3.2.3-6)
rm -f *.o *.a
../../modules/kernelcompiler.sh: using gcc; cannot find compiler matching:
../../modules/kernelcompiler.sh: gcc version 3.2.3 20030422 (Red Hat Linux 3.2.3-6)
make: Entering directory `/usr/lib/hsf/modules/osspec'
rm -f *.o *.a
make: Leaving directory `/usr/lib/hsf/modules/osspec'
* compiling (gcc) mod_osspec.c
make -C osspec all
../../modules/kernelcompiler.sh: using gcc; cannot find compiler matching:
../../modules/kernelcompiler.sh: gcc version 3.2.3 20030422 (Red Hat Linux 3.2.3-6)
make: Entering directory `/usr/lib/hsf/modules/osspec'
* compiling (gcc) osmemory.c
* compiling (gcc) osstring.c
* compiling (gcc) osdebug.c
* compiling (gcc) osfloat.c
* compiling (gcc) osstdio.c
* compiling (gcc) osmodule.c
* compiling (gcc) osnvm.c
* compiling (gcc) ostime.c
* compiling (gcc) linuxres.c
ar cr libosspec.a osmemory.o osstring.o osdebug.o osfloat.o osstdio.o osmodule.o osnvm.o ostime.o linuxres.o
make: Leaving directory `/usr/lib/hsf/modules/osspec'
> linking kernel module hsfosspec.o
* compiling (gcc) mod_basic2.c
> linking kernel module hsfbasic2.o
* compiling (gcc) mod_ich.c
> linking kernel module hsfich.o
* compiling (gcc) mod_via.c
> linking kernel module hsfvia.o
* compiling (gcc) mod_ali.c
> linking kernel module hsfali.o
* compiling (gcc) mod_yukon.c
> linking kernel module hsfyukon.o
* compiling (gcc) mod_engine.c
> linking kernel module hsfengine.o
* compiling (gcc) serial_hsf.c
In file included from serial_hsf.c:897:
serial_core.c: In function `uart_close':
serial_core.c:1073: error: invalid operands to binary ==
make: *** Error 1
Fedora 的 kernel 是用 gcc 3.2.3 编译的。看看你有没有装 gcc32 这个包。然后尝试设定环境变量 CC 来使用 /usr/bin/gcc32 来编译你的驱动 我的gcc 3.2.3 已经安装了。
怎样设定环境呢? export CC=/usr/bin/gcc32
页:
[1]