免费注册 查看新帖 |

Chinaunix

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

在aix5.3下安装flow-tools0.68 make时报错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-01-09 09:44 |只看该作者 |倒序浏览
在aix5.3下安装flow-tools0.68 make时报错;gcc 4.02
[root@m3:/netflow/flow-tools-0.68]make
Making all in lib
        make  all-am
        source='ftio.c' object='ftio.o' libtool=no  depfile='.deps/ftio.Po' tmpdepfile='.deps/ftio.TPo'  depmode=gcc3 /bin/sh ../depcomp  gcc -I. -I./lib -I. -I. -I.     -g -Wall -g -Wall -c `test -f 'ftio.c' || echo './'`ftio.c
In file included from ftio.c:30:
ftlib.h:477: warning: no semicolon at end of struct or union
ftlib.h:477: error: syntax error before '.' token
ftlib.h:494: error: syntax error before '}' token
make: 1254-004 The error code from the last command is 1.


Stop.
make: 1254-004 The error code from the last command is 2.


Stop.
make: 1254-004 The error code from the last command is 1.


Stop.

ftlib.h的这段代码:
  +474
  +475  struct ftnet {
  +476    struct sockaddr_in loc_addr;    /* local side */
  +477    struct sockaddr_in rem_addr;    /* remote side (exporter) */
  +478    u_int32 loc_ip;                 /* local IP */
  +479    u_int32 rem_ip;                 /* remote IP */
  +480    u_int16 dst_port;               /* exporter UDP destination port */
  +481    int fd;                         /* fd receiving flows on */
  +482    struct mymsghdr msg;            /* recvmsg data */
  +483    struct {
  +484      struct cmsghdr hdr;
  +485  #ifdef IP_RECVDSTADDR
  +486      struct in_addr ip;
  +487  #else
  +488  #ifdef IP_PKTINFO
  +489      struct in_pktinfo pktinfo;
  +490  #endif /* else */
  +491  #endif /* IP RECVDSTADDR */
  +492    } msgip;
  +493    struct iovec iov[1];            /* msg buffer */
  +494  };
  +495

哪位知道是怎么会事呀?

论坛徽章:
6
2015年迎新春徽章
日期:2015-03-04 09:48:00IT运维版块每日发帖之星
日期:2015-06-11 22:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00数据库技术版块每日发帖之星
日期:2015-10-24 06:20:00IT运维版块每日发帖之星
日期:2015-12-24 06:20:00IT运维版块每日发帖之星
日期:2016-04-15 06:20:00
2 [报告]
发表于 2006-01-09 13:52 |只看该作者
要用NetFlow的话搞个Linux就行了,Windows也可以(我用的就是Windows),没必要弄个AIX这么复杂的东东来用吧?

论坛徽章:
0
3 [报告]
发表于 2006-01-09 14:30 |只看该作者
原帖由 apen 于 2006-1-9 13:52 发表
要用NetFlow的话搞个Linux就行了,Windows也可以(我用的就是Windows),没必要弄个AIX这么复杂的东东来用吧?


thx. 通过改程序已经解决了,不过不明白是怎么会事,呵呵;

Windows上怎么安装哪些工具呀;通过Cygwin么?

论坛徽章:
0
4 [报告]
发表于 2006-01-21 21:48 |只看该作者
建议linux
不会有撒问题
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP