Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] Compilation errors while building the Wireshark sources

From: Anonymous Anonymous <a.master.blaster@xxxxxxxxx>
Date: Fri, 1 May 2009 20:28:13 +0300
I'm still stuck at this. Here is the complete build log I've managed to extract using the command: nmake -f Makefile.nmake all > build-log.txt 2>&1


Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

    cd tools
    "C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" /                   -f Makefile.nmake

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

    cd lemon
    "C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" /                   -f Makefile.nmake

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

    cd ..
    cd ..
    cd image
    "C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" /                   -f Makefile.nmake

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

    cd ..
    cd codecs
    "C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" /                   -f Makefile.nmake

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

'codecs.lib' is up-to-date
    cd ..
    cd wiretap
    "C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" /                   -f Makefile.nmake

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

    cd ..
    cd epan
    "C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" /                   -f Makefile.nmake

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

    cd crypt
    "C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" /                   -f Makefile.nmake

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

'airpdcap.lib' is up-to-date
    cd ..
    cd ftypes
    "C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" /                   -f Makefile.nmake

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

'ftypes.lib' is up-to-date
    cd ..
    cd dfilter
    "C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" /                   -f Makefile.nmake

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

'dfilter.lib' is up-to-date
    cd ..
    cd wslua
    "C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" /                   -f Makefile.nmake

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

'wslua.lib' is up-to-date
    cd ..
    cd dissectors
    "C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" /                   -f Makefile.nmake

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

'dissectors.lib' is up-to-date
    cd ..
Linking libwireshark.dll
    link  /INCREMENTAL:NO /NOLOGO -entry:_DllMainCRTStartup@12 -dll kernel32.lib  ws2_32.lib mswsock.lib advapi32.lib shell32.lib  /DEBUG  /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             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             privileges.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             unicode-utils.obj         value_string.obj         ws_strsplit.obj          xdlc.obj             xmlstub.obj      dtd_grammar.obj  diam_dict.obj         dtd_parse.obj          dtd_preparse.obj          radius_dict.obj          uat_load.obj  C:\wireshark-libs-1.0\glib\lib\glib-2.0.lib  C:\wireshark-libs-1.0\glib\lib\gmodule-2.0.lib  C:\wireshark-libs-1.0\glib\lib\gobject-2.0.lib     C:\wireshark-libs-1.0\MSVC2008EE\adns\adns_dll.lib  C:\wireshark-libs-1.0\pcre-7.0\lib\pcre.lib  C:\wireshark-libs-1.0\kfw-2.5\lib\krb5_32.lib    C:\wireshark-libs-1.0\zlib123\lib\zdll.lib   C:\wireshark-libs-1.0\gnutls-2.6.3-1\bin\libtasn1-3.lib     C:\wireshark-libs-1.0\gnutls-2.6.3-1\bin\libgpg-error-0.lib     C:\wireshark-libs-1.0\gnutls-2.6.3-1\bin\libgcrypt-11.lib     C:\wireshark-libs-1.0\gnutls-2.6.3-1\bin\libgnutls-26.lib  C:\wireshark-libs-1.0\lua5.1\lib\dll\lua5.1.lib  C:\wireshark-libs-1.0\libsmi-0.4.8\lib\smi.lib  ..\wiretap\wiretap-0.3.1.lib  crypt\airpdcap.lib  ftypes\ftypes.lib  dfilter\dfilter.lib  wslua\wslua.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_win32_x86.obj
   Creating library libwireshark.lib and object libwireshark.exp
dissectors.lib(packet-ncp-sss.obj) : error LNK2001: unresolved external symbol _ett_nds
libwireshark.dll : 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.

Also, I've noticed that I'm currently using Python 3.0.1 as opposed to the 2.6 version suggested by the developers guide. Can that be the source to the problems?

Thanks.

On Thu, Apr 30, 2009 at 5:25 PM, Bill Meier <wmeier@xxxxxxxxxxx> wrote:
> On Thu, Apr 30, 2009 at 5:59 AM, Abhik Sarkar <sarkar.abhik@xxxxxxxxx>wrote:
>
>> Hi Rohan,
>>
>> The distclean target cleans up any files made for a distribution... this
>> removes any generated stuff and keeps the sources untouched.
>>
>> You can't compile a single file if you are changing the in-built dissectors
>> because all of the functionality is part of one big shared library and that
>> library needs to be relinked. I would like to point out however that the
>> build system "compiles" only changed sources (and a few other files) and
>> only re-links them... so, I normally find that if I change only a particular
>> dissector the re-build takes a only about a minute, but after a distclean it
>> takes a good 5-10 minutes (on my system).
>>
>> Regards,
>> Abhik.
>>
>>

Just for the record:

The Windows build does *not* handle changed .h files and .h fie
dependencies when deciding what needs to be recompiled.

So: if a .h file is changed, then either a complete rebuild is needed or
 you must manually force a recompile for any .c files using the .h file
(E.G.: by deleting the .obj files corresponding to the .c files).

Doing this manually can easily miss something so use the manual
procedure only if you are exactly sure what needs to be recompiled when
a .h file changes.



___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
            mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe