由 xagcf 在 12-02-2003 20:24 发表:
安装iptraf出错!!
安装iptraf出错!!
[root@hqzxx tmp]# cd iptraf-2.7.0
[root@hqzxx iptraf-2.7.0]# ./Setup
=====================================================================
IPTraf Version 2.7.0 Setup
Target Platform: Linux/i686
---------------------------------------------------------------------
>>>>>> COMPILING IPTRAF 2.7.0 FROM SUPPLIED SOURCE CODE
make: Entering directory `/tmp/iptraf-2.7.0/src'
rm -f *.o *~ core iptraf rvnamed rawtime cfconv
make -C ../support clean
make[1]: Entering directory `/tmp/iptraf-2.7.0/support'
rm -rf *.o *~ libtextbox.a libtextbox.so
make[1]: Leaving directory `/tmp/iptraf-2.7.0/support'
make: Leaving directory `/tmp/iptraf-2.7.0/src'
make: Entering directory `/tmp/iptraf-2.7.0/support'
rm -rf *.o *~ libtextbox.a libtextbox.so
make: Leaving directory `/tmp/iptraf-2.7.0/support'
make: Entering directory `/tmp/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
iptraf.c:26:20: stdlib.h: No such file or directory
iptraf.c:27:20: unistd.h: No such file or directory
iptraf.c:28:20: getopt.h: No such file or directory
iptraf.c:29:20: curses.h: No such file or directory
iptraf.c:30:19: panel.h: No such file or directory
iptraf.c:31:20: signal.h: No such file or directory
iptraf.c:32:20: string.h: No such file or directory
iptraf.c:33:18: time.h: No such file or directory
iptraf.c:34:23: sys/types.h: No such file or directory
iptraf.c:35:22: sys/stat.h: No such file or directory
iptraf.c:36:19: fcntl.h: No such file or directory
iptraf.c:37:20: dirent.h: No such file or directory
iptraf.c:38:19: errno.h: No such file or directory
In file included from iptraf.c:39:
../support/menurt.h:34: syntax error before "WINDOW"
../support/menurt.h:34: warning: no semicolon at end of struct or union
../support/menurt.h:35: warning: type defaults to int' in declaration of menupanel'
../support/menurt.h:35: warning: data definition has no type or storage class
../support/menurt.h:36: syntax error before '*' token
../support/menurt.h:36: warning: type defaults to int' in declaration of descwin'
../support/menurt.h:36: warning: data definition has no type or storage class
../support/menurt.h:37: syntax error before '*' token
../support/menurt.h:37: warning: type defaults to int' in declaration of descpanel'
../support/menurt.h:37: warning: data definition has no type or storage class
../support/menurt.h:45: syntax error before '}' token
In file included from iptraf.c:40:
../support/winops.h:8:20: curses.h: No such file or directory
In file included from iptraf.c:40:
../support/winops.h:11: syntax error before '*' token
../support/winops.h:13: syntax error before '*' token
../support/winops.h:14: syntax error before '*' token
In file included from iptraf.c:43:
deskman.h:11: syntax error before "WINDOW"
deskman.h:13: syntax error before '*' token
deskman.h:15: syntax error before '*' token
deskman.h:19: syntax error before "WINDOW"
In file included from iptraf.c:46:
fltselect.h:10:23: sys/types.h: No such file or directory
fltselect.h:11:25: netinet/udp.h: No such file or directory
In file included from iptraf.c:46:
fltselect.h:26: syntax error before "u_int16_t"
fltselect.h:26: warning: no semicolon at end of struct or union
In file included from iptraf.c:48:
ifstats.h:29: syntax error before "WINDOW"
ifstats.h:29: warning: no semicolon at end of struct or union
ifstats.h:30: warning: type defaults to int' in declaration of borderpanel'
ifstats.h:30: warning: data definition has no type or storage class
ifstats.h:31: syntax error before '*' token
ifstats.h:31: warning: type defaults to int' in declaration of statwin'
ifstats.h:31: warning: data definition has no type or storage class
ifstats.h:32: syntax error before '*' token
ifstats.h:32: warning: type defaults to int' in declaration of statpanel'
ifstats.h:32: warning: data definition has no type or storage class
ifstats.h:33: syntax error before '}' token
In file included from iptraf.c:49:
serv.h:26: syntax error before "time_t"
serv.h:26: warning: no semicolon at end of struct or union
serv.h:27: warning: type defaults to int' in declaration of proto_starttime'
serv.h:27: warning: data definition has no type or storage class
serv.h:31: syntax error before '}' token
serv.h:43: syntax error before "WINDOW"
serv.h:43: warning: no semicolon at end of struct or union
serv.h:44: warning: type defaults to int' in declaration of panel'
serv.h:44: warning: data definition has no type or storage class
serv.h:45: syntax error before '*' token
serv.h:45: warning: type defaults to int' in declaration of borderwin'
serv.h:45: warning: data definition has no type or storage class
serv.h:46: syntax error before '*' token
serv.h:46: warning: type defaults to int' in declaration of borderpanel'
serv.h:46: warning: data definition has no type or storage class
serv.h:47: syntax error before '}' token
In file included from iptraf.c:54:
tcptable.h:9:20: stdlib.h: No such file or directory
tcptable.h:10:20: string.h: No such file or directory
tcptable.h:11:20: unistd.h: No such file or directory
tcptable.h:12:19: fcntl.h: No such file or directory
tcptable.h:13:20: curses.h: No such file or directory
tcptable.h:14:19: panel.h: No such file or directory
tcptable.h:15:19: netdb.h: No such file or directory
tcptable.h:16:18: time.h: No such file or directory
tcptable.h:17:23: sys/types.h: No such file or directory
tcptable.h:18:24: sys/socket.h: No such file or directory
tcptable.h:19:24: netinet/in.h: No such file or directory
tcptable.h:20:23: arpa/inet.h: No such file or directory
tcptable.h:21:24: net/if_arp.h: No such file or directory
tcptable.h:22:23: asm/types.h: No such file or directory
tcptable.h:23:29: linux/if_packet.h: No such file or directory
tcptable.h:24:28: linux/if_ether.h: No such file or directory
tcptable.h:25:27: linux/if_fddi.h: No such file or directory
tcptable.h:26:25: linux/if_tr.h: No such file or directory
tcptable.h:27:20: net/if.h: No such file or directory
tcptable.h:28:24: netinet/ip.h: No such file or directory
tcptable.h:29:25: netinet/udp.h: No such file or directory
In file included from tcptable.h:31,
from iptraf.c:54:
tcphdr.h:7:23: sys/types.h: No such file or directory
tcphdr.h:8:20: endian.h: No such file or directory
In file included from tcptable.h:31,
from iptraf.c:54:
tcphdr.h:11: syntax error before "u_int16_t"
tcphdr.h:11: warning: no semicolon at end of struct or union
tcphdr.h:12: warning: type defaults to int' in declaration of dest'
tcphdr.h:12: warning: data definition has no type or storage class
tcphdr.h:13: syntax error before "seq"
tcphdr.h:13: warning: type defaults to int' in declaration of seq'
tcphdr.h:13: warning: data definition has no type or storage class
tcphdr.h:14: syntax error before "ack_seq"
tcphdr.h:14: warning: type defaults to int' in declaration of ack_seq'
tcphdr.h:14: warning: data definition has no type or storage class
tcphdr.h:16: syntax error before "res1"
tcphdr.h:36: warning: type defaults to int' in declaration of window'
tcphdr.h:36: warning: data definition has no type or storage class
tcphdr.h:37: syntax error before "check"
tcphdr.h:37: warning: type defaults to int' in declaration of check'
tcphdr.h:37: warning: data definition has no type or storage class
tcphdr.h:38: syntax error before "urg_ptr"
tcphdr.h:38: warning: type defaults to int' in declaration of urg_ptr'
tcphdr.h:38: warning: data definition has no type or storage class
In file included from iptraf.c:54:
tcptable.h:47: field `saddr' has incomplete type
tcptable.h:48: field `daddr' has incomplete type
tcptable.h:74: syntax error before "time_t"
tcptable.h:74: warning: no semicolon at end of struct or union
tcptable.h:75: warning: type defaults to int' in declaration of starttime'
tcptable.h:75: warning: data definition has no type or storage class
tcptable.h:76: syntax error before "conn_starttime"
tcptable.h:76: warning: type defaults to int' in declaration of conn_starttime'
tcptable.h:76: warning: data definition has no type or storage class
tcptable.h:79: conflicting types for `prev_entry'
serv.h:29: previous declaration of `prev_entry'
tcptable.h:80: conflicting types for `next_entry'
serv.h:30: previous declaration of `next_entry'
tcptable.h:81: syntax error before '}' token
tcptable.h:112: syntax error before "WINDOW"
tcptable.h:112: warning: no semicolon at end of struct or union
tcptable