This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Nmake fatal error U1023 while doing a distclean

0

I'm getting a error (U1023) while executing nmake -f Makefile.nmake distclean. Error code U1023 appears to be a syntax error. Can someone point me in the right direction to fix this? Is there any log I should look at to find out where distclean is failing? I'm pasting the last few lines of the output here

        "C:\Program Files\Microsoft Visual Studio 10.0\VC\Bin\nmake.exe" /
             -f Makefile.nmake distclean

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

    rm -rf *.chm                     *.fo                    *.hhc
     *.hhp                   *.pdf                   *.validated  developer-guide.xml  wsdg_chm           wsdg_html.zip       wsdg_html_chunk ed.zip   wsug_chm      wsug_html.zip           wsug_html_chunked.zip  htmlhelp.*      release_notes_chm       release-notes.html      release

-notes.txt git_version.xml user-guide.zip wsluarm wsdg_html wsdg_html_chunked wsug_html wsug_ht ml_chunked wsluarm_src cd ../help "C:\Program Files\Microsoft Visual Studio 10.0\VC\Bin\nmake.exe" / -f Makefile.nmake distclean

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

    rm -rf faq.txt
    cd ../packaging/nsis
    "C:\Program Files\Microsoft Visual Studio 10.0\VC\Bin\nmake.exe" /
         -f Makefile.nmake distclean

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

Makefile.nmake(201) : fatal error U1023: syntax error in expression Stop. NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 10.0\VC\Bi n\nmake.exe"' : return code '0x2' Stop.

asked 27 Aug ‘14, 00:30

shishir127's gravatar image

shishir127
16224
accept rate: 0%

Where are your source file from, e.g. git or source package and which branch or version?

Have you made any changes to the sources?

(27 Aug ‘14, 02:50) grahamb ♦

I had downloaded the source tarball a few weeks ago because git is blocked. The file name is wireshark-1.12.1rc0-37-gafce994.tar.bz2 if that gives you a clue about the revision.

(27 Aug ‘14, 03:31) shishir127


One Answer:

0

It appears somethings up with the commands in the distclean target of packaging\nsis\Makefile.nmake which does a simple rm of the built installers and also calls the clean target which rm's some other files.

There are a few expressions in the two targets, you can insert simple echo '-$(EXPRESSION)-' statements in those targets to see whats up with them.

answered 27 Aug '14, 02:51

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

Inserting the echo statements didn't help much because there is a syntax error in including the sources for dftest_LIBS. The syntax error is in the 11th line from the top, "epan\dfilter\dfilter.lib \"

dftest_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \

wsock32.lib user32.lib psapi.lib \

$(GLIB_LIBS) \

wsutil\libwsutil.lib \

$(GNUTLS_LIBS) </code>

!IFDEF ENABLE_LIBWIRESHARK

epan\libwireshark.lib </code>

!ELSE epan\dissectors\dissectors.lib </p>

epan\wireshark.lib \

epan\dfilter\dfilter.lib \

epan\ftypes\ftypes.lib \

$(C_ARES_LIBS) \

$(ADNS_LIBS) \

$(ZLIB_LIBS) \

$(SMI_LIBS)

!ENDIF

(27 Aug ‘14, 03:55) shishir127