ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: [Wireshark-dev] Link problem

From: philippe alarcon <philippe.alarcon@xxxxxxx>
Date: Tue, 16 Dec 2008 14:12:05 +0100
Hello,

I am trying to generate Wireshark under Windows XP using Visual Express.
My problem is the following :
if I leave in the config file the option ENABLE_LIBWIRESHARK=USE, I get this error :

Linking libwireshark.dll
    link  /INCREMENTAL:NO /NOLOGO -entry:_DllMainCRTStartup@12 -dll kernel32.lib  ws2_32.lib mswsock.lib advapi32.lib shell32.lib  /DEBUG /MACHINE:X86  /DEF:libwireshark.def /OUT:libwireshark.dll  /IMPLIB:libwireshark.lib addr_and_mask.obj         addr_resolv.obj         adler32.obj         afn.obj             asn1.obj             atalk-utils.obj         base64.obj         bitswap.obj         camel-persistentdata.obj     charsets.obj         circuit.obj         codecs.obj         column.obj         column-utils.obj         conversation.obj         crc10.obj             crc16.obj             crc32.obj             crc6.obj             crcdrm.obj         dissector_filters.obj     emem.obj             epan.obj             ex-opt.obj         except.obj         expert.obj         filesystem.obj         follow.obj         frame_data.obj         frequency-utils.obj     funnel.obj             gcp.obj             geoip.obj             golay.obj             guid-utils.obj         h225-persistentdata.obj     in_cksum.obj         ipproto.obj         ipv4.obj             next_tvb.obj         nstime.obj         oids.obj             osi-utils.obj         packet.obj         plugins.obj         prefs.obj             proto.obj             range.obj             reassemble.obj         reedsolomon.obj         report_err.obj         req_resp_hdrs.obj         sigcomp_state_hdlr.obj     sigcomp-udvm.obj         sminmpec.obj         sna-utils.obj         stat_cmd_args.obj         stats_tree.obj         strutil.obj         stream.obj         t35.obj             tap.obj             tcap-persistentdata.obj     timestamp.obj         tfs.obj             to_str.obj         tvbparse.obj         tvbuff.obj         uat.obj             value_string.obj         xdlc.obj      dtd_grammar.obj  diam_dict.obj         dtd_parse.obj          dtd_preparse.obj          radius_dict.obj          uat_load.obj  C:\wireshark-win32-libs\glib\lib\glib-2.0.lib  C:\wireshark-win32-libs\glib\lib\gmodule-2.0.lib  C:\wireshark-win32-libs\glib\lib\gobject-2.0.lib                       ..\wsutil\libwsutil.lib  ..\wiretap\wiretap-0.3.1.lib  crypt\airpdcap.lib  ftypes\ftypes.lib  dfilter\dfilter.lib    dissectors\dissectors.lib ..\image\libwireshark.res  dissectors\register.obj  inet_aton.obj     inet_pton.obj     inet_ntop.obj     mkstemp.obj     strptime.obj     asm_utils.obj
libwireshark.def : error LNK2001: unresolved external symbol read_keytab_file
libwireshark.lib : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\link.EXE"' : return code '0x460'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.

If I choose to remove the option, I get the following error :

Linking wireshark.exe

    link @d:\palarcon\LOCALS~1\Temp\nmCD.tmp
LINK : fatal error LNK1181: cannot open input file 'epan\wireshark.lib'
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\link.EXE"' : return code '0x49d'

I think I have followed the developper guide.
But may be I have missed something.

Could somebody help me to solve this issue ?

Thank you in advance.
Philippe



Discutez sur Messenger où que vous soyez ! Mettez Messenger sur votre mobile !