免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3374 | 回复: 1
打印 上一主题 下一主题

安装软件提示/usr/include/linux/ethtool.h错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-08-20 23:21 |只看该作者 |倒序浏览
安装集群软件perceus,提示下面的错误,大家帮我看看可能是哪里配置错了,谢谢
我在2台新安装的系统上试都提示这个错误,但在另一台机器上安装时却没有……

[root@localhost perceus-1.3.0]# ./configure --prefix=/usr/local/perceus/`cat VERSION`/ --localstatedir=/var --sysconfdir=/etc
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-caos-linux-gnu
checking host system type... i686-caos-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking kernel headers for proper namespace functionality... error
In file included from ethtest.c:3:
/usr/include/linux/ethtool.h:15: error: syntax error before "u32"
/usr/include/linux/ethtool.h:17: error: syntax error before "advertising"
/usr/include/linux/ethtool.h:18: error: syntax error before "speed"
/usr/include/linux/ethtool.h:19: error: syntax error before "duplex"
/usr/include/linux/ethtool.h:20: error: syntax error before "port"
/usr/include/linux/ethtool.h:21: error: syntax error before "phy_address"
/usr/include/linux/ethtool.h:22: error: syntax error before "transceiver"
/usr/include/linux/ethtool.h:23: error: syntax error before "autoneg"
/usr/include/linux/ethtool.h:24: error: syntax error before "maxtxpkt"
/usr/include/linux/ethtool.h:25: error: syntax error before "maxrxpkt"
/usr/include/linux/ethtool.h:26: error: syntax error before "reserved"
/usr/include/linux/ethtool.h:27: error: syntax error before '}' token
/usr/include/linux/ethtool.h:32: error: syntax error before "u32"
/usr/include/linux/ethtool.h:40: error: syntax error before "eedump_len"
/usr/include/linux/ethtool.h:41: error: syntax error before "regdump_len"
/usr/include/linux/ethtool.h:47: error: syntax error before "u32"
/usr/include/linux/ethtool.h:49: error: syntax error before "wolopts"
/usr/include/linux/ethtool.h:50: error: syntax error before "sopass"
/usr/include/linux/ethtool.h:51: error: syntax error before '}' token
/usr/include/linux/ethtool.h:55: error: syntax error before "u32"
/usr/include/linux/ethtool.h:61: error: syntax error before "u32"
/usr/include/linux/ethtool.h:62: error: conflicting types for 'version'
/usr/include/linux/ethtool.h:34: error: previous declaration of 'version' was here
/usr/include/linux/ethtool.h:63: error: syntax error before "len"
/usr/include/linux/ethtool.h:64: error: syntax error before "data"
/usr/include/linux/ethtool.h:64: error: conflicting types for 'data'
/usr/include/linux/ethtool.h:56: error: previous declaration of 'data' was here
/usr/include/linux/ethtool.h:65: error: syntax error before '}' token
/usr/include/linux/ethtool.h:69: error: syntax error before "u32"
/usr/include/linux/ethtool.h:71: error: syntax error before "offset"
/usr/include/linux/ethtool.h:72: error: syntax error before "len"
/usr/include/linux/ethtool.h:73: error: syntax error before "data"
/usr/include/linux/ethtool.h:74: error: syntax error before '}' token

You can test compile with 'gcc -o ethtest ethtest.c' in this directory

论坛徽章:
0
2 [报告]
发表于 2007-08-26 19:01 |只看该作者
解决了
redhat企业版4的这个文件有错的

别的版本上拷过来就好了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP