换了新主板 双网卡 intel 82579v 和 82583v,openSUSE 10.3 安装后不能设别 eth0/eth1 只有lo0。从 intel 官网下载驱动后 按照 readme 进行解压缩和 make install 。但是 make install 发生错误。shell 检查也没找到问题点
/bin/sh: line 0: [: -ge: unary operator expected
make -C /lib/modules/2.6.22.5-31-bigsmp/build CC=gcc SUBDIRS=/root/e1000e-3.4.2.4/src modules
make[1]: Entering directory `/usr/src/linux-2.6.22.5-31-obj/i386/bigsmp'
make -C ../../../linux-2.6.22.5-31 O=../linux-2.6.22.5-31-obj/i386/bigsmp modules
/bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
/bin/sh: -c: line 1: syntax error: unexpected end of file
expr: syntax error
/bin/sh: line 0: [: -ge: unary operator expected
CC [M] /root/e1000e-3.4.2.4/src/netdev.o
In file included from /root/e1000e-3.4.2.4/src/e1000.h:14,
from /root/e1000e-3.4.2.4/src/netdev.c:30:
/root/e1000e-3.4.2.4/src/kcompat.h:892:31: error: operator '&&' has no right operand
/root/e1000e-3.4.2.4/src/kcompat.h:903:31: error: operator '==' has no left operand
/root/e1000e-3.4.2.4/src/kcompat.h:916:31: error: operator '==' has no left operand
/root/e1000e-3.4.2.4/src/kcompat.h:922:31: error: operator '==' has no left operand
/root/e1000e-3.4.2.4/src/kcompat.h:931:30: error: operator '&&' has no right operand
/root/e1000e-3.4.2.4/src/kcompat.h:5605:31: error: operator '>=' has no left operand
$ rpm -qa |grep ^kernel
kernel-source-2.6.22.5-31
kernel-bigsmp-2.6.22.5-31
kernel-xenpae-2.6.22.5-31
$ rpm -qa |grep ^gcc
gcc42-c++-4.2.1_20070724-17
gcc42-4.2.1_20070724-17
$ ls -l /bin/*sh
-rwxr-xr-x 1 root root 604040 Sep 22 2007 bash
lrwxrwxrwx 1 root root 4 Sep 15 13:18 sh -> bash