Chinaunix首页 | 论坛 | 博客
  • 博客访问: 437882
  • 博文数量: 126
  • 博客积分: 35
  • 博客等级: 民兵
  • 技术积分: 1262
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-19 16:39
文章分类

全部博文(126)

文章存档

2017年(2)

2016年(20)

2015年(64)

2014年(24)

2013年(16)

我的朋友

分类: Windows平台

2013-09-02 16:13:40



编译wireshark 1.2.7出错,Python版本2.7.5
  1. Linking libwireshark.dll
  2. link /INCREMENTAL:NO /NOLOGO -entry:_DllMainCRTStartup@12 -dll kernel32
  3. .lib ws2_32.lib mswsock.lib advapi32.lib bufferoverflowu.lib shell32.lib /DEBU
  4. G /MACHINE:x86 /MANIFEST:no /DEF:libwireshark.def /OUT:libwireshark.dll /IMPLI
  5. B:libwireshark.lib addr_and_mask.obj addr_resolv.obj
  6. adler32.obj afn.obj asn1.obj
  7. atalk-utils.obj base64.obj bitswap.obj
  8. camel-persistentdata.obj charsets.obj circuit.obj
  9. codecs.obj column.obj column-utils.obj
  10. conversation.obj crc10.obj crc16.o
  11. bj crc32.obj crc6.obj
  12. crcdrm.obj dissector_filters.obj emem.obj
  13. epan.obj ex-opt.obj except.obj
  14. expert.obj filesystem.obj follow.obj
  15. frame_data.obj frequency-utils.obj funnel.obj gcp.obj
  16. geoip_db.obj golay.obj
  17. guid-utils.obj h225-persistentdata.obj in_cksum.obj
  18. ipproto.obj ipv4.obj next_tvb.obj
  19. nstime.obj oids.obj osi-utils.obj
  20. packet.obj plugins.obj prefs.obj
  21. proto.obj range.obj reassemble.obj
  22. reedsolomon.obj report_err.obj req_resp_hdrs.o
  23. bj sigcomp_state_hdlr.obj sigcomp-udvm.obj sminmpe
  24. c.obj sna-utils.obj stat_cmd_args.obj stats_t
  25. ree.obj strutil.obj stream.obj t35.obj
  26. tap.obj tcap-persistentdata.obj
  27. timestamp.obj tfs.obj to_str.obj
  28. tvbparse.obj tvbuff.obj uat.obj
  29. value_string.obj xdlc.obj dtd_grammar.obj diam_dict.obj
  30. dtd_parse.obj dtd_preparse.obj radius_dict.obj
  31. uat_load.obj C:\wireshark-win32-libs-1.2\gtk2\lib\glib-2.0.lib
  32. C:\wireshark-win32-libs-1.2\gtk2\lib\gmodule-2.0.lib C:\wireshark-win32-libs-
  33. 1.2\gtk2\lib\gobject-2.0.lib C:\wireshark-win32-libs-1.2\c-ares-1.7.0-win32w
  34. s\lib\libcares-2.lib C:\wireshark-win32-libs-1.2\kfw-3-2-2-i386-ws-vc6\lib\
  35. krb5_32.lib C:\wireshark-win32-libs-1.2\zlib123\lib\zdll.lib C:\wireshark-w
  36. in32-libs-1.2\gnutls-2.8.5-4.12-win32ws\bin\libtasn1-3.lib C:\wireshark-wi
  37. n32-libs-1.2\gnutls-2.8.5-4.12-win32ws\bin\libgpg-error-0.lib C:\wireshark-wi
  38. n32-libs-1.2\gnutls-2.8.5-4.12-win32ws\bin\libgcrypt-11.lib C:\wireshark-wi
  39. n32-libs-1.2\gnutls-2.8.5-4.12-win32ws\bin\libgnutls-26.lib C:\wireshark-win32-
  40. libs-1.2\lua5.1.4\lua5.1.lib C:\wireshark-win32-libs-1.2\libsmi-0.4.8\lib\smi.l
  41. ib C:\wireshark-win32-libs-1.2\GeoIP-1.4.6-win32ws\libGeoIP\GeoIP.lib ..\wsuti
  42. l\libwsutil.lib ..\wiretap\wiretap-0.3.1.lib crc\crc.lib crypt\airpdcap.lib
  43. ftypes\ftypes.lib dfilter\dfilter.lib wslua\wslua.lib dissectors\dissectors.l
  44. ib ..\image\libwireshark.res dissectors\register.obj inet_aton.obj inet_pt
  45. on.obj inet_ntop.obj strptime.obj asm_utils_win32_x86.obj
  46. Creating library libwireshark.lib and object libwireshark.exp
  47. cd ..
  48. cd help
  49. "D:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe" /
  50. -f Makefile.nmake
  51. Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
  52. Copyright (C) Microsoft Corporation. All rights reserved.
  53. faq.py | ..\tools\html2text.py --width=72 --no-links > faq.txt
  54. Traceback (most recent call last):
  55. File "E:\Projects\wireshark-1.2.7\help\faq.py", line 2104, in
  56. sys.exit(main())
  57. File "E:\Projects\wireshark-1.2.7\help\faq.py", line 247, in main
  58. create_output(header, footer)
  59. File "E:\Projects\wireshark-1.2.7\help\faq.py", line 218, in create_output
  60. create_index()
  61. File "E:\Projects\wireshark-1.2.7\help\faq.py", line 208, in create_index
  62. sec.print_index()
  63. File "E:\Projects\wireshark-1.2.7\help\faq.py", line 53, in print_index
  64. print '%s %s\n' % (id, id, question)
  65. IOError: [Errno 22] Invalid argument
  66. close failed in file object destructor:
  67. sys.excepthook is missing
  68. lost sys.stderr
  69. Traceback (most recent call last):
  70. File "E:\Projects\wireshark-1.2.7\tools\html2text.py", line 502, in
  71. data = sys.stdin.read().decode(options.INPUT_ENCODING)
  72. IOError: [Errno 9] Bad file descriptor
  73. NMAKE : fatal error U1077: 'faq.py' : return code '0x1'
  74. Stop.
  75. NMAKE : fatal error U1077: '"D:\Program Files\Microsoft Visual Studio 8\VC\BIN\n
  76. make.exe"' : return code '0x2'
  77. Stop.

phtyon 2.4.2 报错:
  1. capture_if_details_dlg_win32.c
  2. capture_if_details_dlg_win32.c(512) : error C2065: 'Ndis802_11AuthModeWPA2' : un
  3. declared identifier
  4. capture_if_details_dlg_win32.c(512) : error C2099: initializer is not a constant
  5. capture_if_details_dlg_win32.c(512) : warning C4047: 'initializing' : 'guint32'
  6. differs in levels of indirection from 'char [5]'
  7. capture_if_details_dlg_win32.c(513) : error C2065: 'Ndis802_11AuthModeWPA2PSK' :
  8. undeclared identifier
  9. capture_if_details_dlg_win32.c(513) : error C2099: initializer is not a constant
  10. capture_if_details_dlg_win32.c(513) : warning C4047: 'initializing' : 'guint32'
  11. differs in levels of indirection from 'char [26]'
  12. capture_if_details_dlg_win32.c(524) : error C2065: 'Ndis802_11Automode' : undecl
  13. ared identifier
  14. capture_if_details_dlg_win32.c(524) : error C2099: initializer is not a constant
  15. capture_if_details_dlg_win32.c(524) : warning C4047: 'initializing' : 'guint32'
  16. differs in levels of indirection from 'char [5]'
  17. capture_if_details_dlg_win32.c(732) : error C2065: 'OID_802_11_CAPABILITY' : und
  18. eclared identifier
  19. capture_if_details_dlg_win32.c(732) : error C2099: initializer is not a constant
  20. capture_if_details_dlg_win32.c(732) : warning C4047: 'initializing' : 'guint32'
  21. differs in levels of indirection from 'char [39]'
  22. capture_if_details_dlg_win32.c(733) : error C2065: 'OID_802_11_PMKID' : undeclar
  23. ed identifier
  24. capture_if_details_dlg_win32.c(733) : error C2099: initializer is not a constant
  25. capture_if_details_dlg_win32.c(733) : warning C4047: 'initializing' : 'guint32'
  26. differs in levels of indirection from 'char [34]'
  27. file_dlg_win32.c
  28. print_win32.c
  29. afp_stat.c
  30. ansi_a_stat.c
  31. ansi_map_stat.c
  32. bootp_stat.c
  33. camel_counter.c
  34. camel_srt.c
  35. Generating Code...
  36. Compiling...
  37. compare_stat.c
  38. conversations_eth.c
  39. conversations_fc.c
  40. conversations_fddi.c
  41. conversations_ip.c
  42. conversations_ipx.c
  43. conversations_jxta.c
  44. conversations_ncp.c
  45. conversations_rsvp.c
  46. conversations_sctp.c
  47. conversations_tcpip.c
  48. conversations_tr.c
  49. conversations_udpip.c
  50. conversations_usb.c
  51. conversations_wlan.c
  52. dcerpc_stat.c
  53. diameter_stat.c
  54. expert_comp_dlg.c
  55. expert_dlg.c
  56. fc_stat.c
  57. Generating Code...
  58. Compiling...
  59. flow_graph.c
  60. funnel_stat.c
  61. gsm_a_stat.c
  62. gsm_map_stat.c
  63. gsm_map_summary.c
  64. gtp_stat.c
  65. h225_counter.c
  66. h225_ras_srt.c
  67. hostlist_eth.c
  68. hostlist_fc.c
  69. hostlist_fddi.c
  70. hostlist_ip.c
  71. hostlist_ipx.c
  72. hostlist_jxta.c
  73. hostlist_ncp.c
  74. hostlist_rsvp.c
  75. hostlist_sctp.c
  76. hostlist_tcpip.c
  77. hostlist_tr.c
  78. hostlist_udpip.c
  79. Generating Code...
  80. Compiling...
  81. hostlist_usb.c
  82. hostlist_wlan.c
  83. iax2_analysis.c
  84. io_stat.c
  85. ldap_stat.c
  86. mac_lte_stat_dlg.c
  87. mcast_stream_dlg.c
  88. megaco_stat.c
  89. mgcp_stat.c
  90. mtp3_stat.c
  91. mtp3_summary.c
  92. ncp_stat.c
  93. radius_stat.c
  94. rpc_progs.c
  95. rpc_stat.c
  96. rtp_analysis.c
  97. rtp_stream_dlg.c
  98. scsi_stat.c
  99. sctp_assoc_analyse.c
  100. sctp_chunk_stat.c
  101. Generating Code...
  102. Compiling...
  103. sctp_chunk_stat_dlg.c
  104. sctp_stat_dlg.c
  105. sip_stat.c
  106. smb_stat.c
  107. smb2_stat.c
  108. stats_tree_stat.c
  109. t38_analysis.c
  110. tcp_graph.c
  111. voip_calls_dlg.c
  112. wlan_stat_dlg.c
  113. wsp_stat.c
  114. Generating Code...
  115. NMAKE : fatal error U1077: '"D:\Program Files\Microsoft Visual Studio 8\VC\BIN\c
  116. l.EXE"' : return code '0x2'
  117. Stop.
  118. NMAKE : fatal error U1077: '"D:\Program Files\Microsoft Visual Studio 8\VC\BIN\n
  119. make.exe"' : return code '0x2'
  120. Stop.


参考:
《wireshark源代码分析》
http://blog.csdn.net/zx824/article/details/7207713

解决未定义的宏:
《【求救】编译wireshark-1.2.0的错误(估计是库文件安装不正确引起) 》



wireshark 1.2.7:
conversations_table.c
1757~1759
  1. duration_s = nstime_to_sec(&conversation->start_time) - nstime_to_sec(&conversation->stop_time);
  2.         g_snprintf(start_time, COL_STR_LEN, "%s", rel_time_to_secs_str(&conversation->start_time));
  3.         g_snprintf(duration, COL_STR_LEN, "%.4f", duration_s);



阅读(9445) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~