LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 499|回复: 0

安装iptraf出错,是gcc问题吗?

[复制链接]
发表于 2005-6-18 08:49:03 | 显示全部楼层 |阅读模式
=====================================================================
IPTraf Version 2.7.0 Setup
Target Platform: Linux/i686
---------------------------------------------------------------------

>>>>>> COMPILING IPTRAF 2.7.0 FROM SUPPLIED SOURCE CODE

make: Entering directory `/home/kit/Desktop/iptraf-2.7.0/src'
rm -f *.o *~ core iptraf rvnamed rawtime cfconv
make -C ../support clean
make[1]: Entering directory `/home/kit/Desktop/iptraf-2.7.0/support'
rm -rf *.o *~ libtextbox.a libtextbox.so
make[1]: Leaving directory `/home/kit/Desktop/iptraf-2.7.0/support'
make: Leaving directory `/home/kit/Desktop/iptraf-2.7.0/src'
make: Entering directory `/home/kit/Desktop/iptraf-2.7.0/support'
rm -rf *.o *~ libtextbox.a libtextbox.so
make: Leaving directory `/home/kit/Desktop/iptraf-2.7.0/support'
make: Entering directory `/home/kit/Desktop/iptraf-2.7.0/src'
gcc -Wall  -DWORKDIR=\"/var/local/iptraf\" -DLOGDIR=\"/var/log/iptraf\" -DEXECDIR=\"/usr/local/bin\" -I/usr/include/ncurses -I../support -DVERSION=\"2.7.0\" -DPLATFORM=\"Linux/i386\"  -g    -c -o iptraf.o iptraf.c
In file included from tcptable.h:27,
                 from iptraf.c:54:
/usr/include/net/if.h:45: error: syntax error before numeric constant
/usr/include/net/if.h:111: error: redefinition of `struct ifmap'
/usr/include/net/if.h:126: error: redefinition of `struct ifreq'
/usr/include/net/if.h:176: error: redefinition of `struct ifconf'
make: *** [iptraf.o] Error 1
make: Leaving directory `/home/kit/Desktop/iptraf-2.7.0/src'

=====================================================================

Thank you for installing IPTraf.  You can now start IPTraf by issuing
the command

    /usr/local/bin/iptraf

at your shell prompt.  You can also add /usr/local/bin to your PATH environment
variable to avoid having to type the pathname when invoking the program.

make: Leaving directory `/home/kit/Desktop/iptraf-2.7.0/src'
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表