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

Hi

Wireshark Version: 2.0.2, I tried building latest wireshark code on my Windows 7, MSVC2013 Compiler Please find the below error asking for shell32.lib extension. alt text

I tried in changing extension(.lib) to MSVC, Notepad .... But no use stucked up with different error, [Error: Could not make libwershark.lib] Please suggets me. If anyone came out of these error.

Text Form for the above Error

cd dissectors
        "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\nmake.exe" /
                   -f Makefile.nmake

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

'dissectors.lib' is up-to-date
        cd ..
Linking libwireshark.dll
           shell32.lib psapi.lib  /DEBUG /MACHINE:x86 /RELEASE /SafeSEH /DYNAMICBASE /FIXED:no   /OUT:libwireshark.dll  /IMPLIB:libwireshark.lib addr_and_mask.o
bj               addr_resolv.obj                 address_types.obj       afn.obj                         aftypes.obj             app_mem_usage.obj
asn1.obj                        charsets.obj            circuit.obj
column.obj              column-utils.obj                conversation.obj
         conversation_table.obj  crc10-tvb.obj           crc16-tvb.obj
         crc32-tvb.obj           crc6-tvb.obj            crc8-tvb.obj            decode_
as.obj           disabled_protos.obj     dissector_filters.obj   dvb_chartbl.obj                 dwarf.obj                       epan.obj
ex-opt.obj              except.obj              expert.obj              exported_pdu.obj                plugin_if.obj           filter_expressions.obj  follow.
obj              frame_data.obj          frame_data_sequence.obj         funnel.obj              g_int64_hash_routines.obj       gcp.obj
geoip_db.obj            golay.obj                       guid-utils.obj
in_cksum.obj            ipproto.obj             ipv4.obj
next_tvb.obj            oids.obj                        osi-utils.obj
oui.obj                         packet-range.obj                packet.obj
         prefs.obj                       print.obj                       print_stream.obj                proto.obj                       range.obj
         reassemble.obj          reedsolomon.obj                 req_resp_hdrs.obj               rtd_table.obj   show_exception.obj      sminmpec.obj
srt_table.obj   stat_tap_ui.obj                 stats_tree.obj          strutil.obj             stream.obj              t35.obj                         tap.obj
                         timestamp.obj           timestats.obj           tfs.obj                         to_str.obj              tvbparse.obj            tvbuff_base64.obj               tvbuff_composite.obj    tvbuff_real.obj
                         tvbuff_subset.obj               tvbuff_zlib.obj                 tvbuff.obj         uat.obj                         value_string.obj                xdlc.obj        diam_dict.obj           dtd_parse.obj           dtd_preparse.obj         radius_dict.obj                 uat_load.obj  dtd_grammar.obj
         ps.obj  C:\Wireshark-win32-libs-2.0\gtk2\lib\glib-2.0.lib  C:\Wireshark-win32-libs-2.0\gtk2\lib\gmodule-2.0.lib  C:\Wireshark-win32-libs-2.0\gtk2\lib\gobject-2.0.lib   C:\Wireshark-win32-libs-2.0\c-ares-1.9.1-1-win32ws\lib\libcares-2.lib    C:\Wireshark-win32-libs-2.0\kfw-3-2-2-i386-ws-vc6\lib\krb5_32.lib  C:\Wireshark-win32-libs-2.0\zlib-1.2.8-ws\lib\zdll.lib   C:\Wireshark-win32-libs-2.0\gnutls-3.2.15-2.7-win32ws\bin\libtasn1-6.lib   C:\Wireshark-win32-libs-2.0\gnutls-3.2.15-2.7-win32ws\bin\libgpg-error-0.lib    C:\Wireshark-win32-libs-2.0\gnutls-3.2.15-2.7-win32ws\bin\libgcrypt-20.lib  C:\Wireshark-win32-libs-2.0\gnutls-3.2.15-2.7-win32ws\bin\libgnutls-28.lib  C:\Wireshark-win32-libs-2.0\lua5.2.3\lua52.lib  C:\Wireshark-win32-libs-2.0\libsmi-svn-40773-win32ws\lib\libsmi-2.lib
C:\Wireshark-win32-libs-2.0\GeoIP-1.6.6-win32ws\lib\libGeoIP-1.lib  ..\wsutil\libwsutil.lib  ..\wiretap\wiretap-2.0.0.lib  compress\lzxpress.lib  crypt\airpdcap.lib  ftypes\ftypes.lib  dfilter\dfilter.lib  wmem\wmem.lib  wslua\wslua.lib  nghttp2\nghttp2.lib  dissectors\dissectors.lib ..\image\libwireshark.res  dissectors\register.obj  asm_utils_win32_x86.obj
The system cannot execute the specified program.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib\shell32.lib"' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.

Thanks Dinesh Sadu

asked 25 Apr '16, 04:28

Dinesh%20Babu%20Sadu's gravatar image

Dinesh Babu ...
16131517
accept rate: 0%

edited 25 Apr '16, 06:26

grahamb's gravatar image

grahamb ♦
19.8k330206


You obscured screenshot looks as though you're building with nmake. Note that support for nmake will be dropped in 2.2.x, so you should switch to using CMake as per the Developer's Guide as soon as you can.

Please post the output from nmake (as text not a screenshot) to allow inspection of the actual output causing the error. Note that renaming "things" is unlikely to fix the issue.

permanent link

answered 25 Apr '16, 04:46

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

Hi Grahamb

Updated the question with the output text form for the shell32.lib error

Thanks Dinesh Sadu

(25 Apr '16, 05:35) Dinesh Babu ...

Something has gone wrong with your build environment. If you look at the buildbots for 1.12.x (as neither 2.0 or master build with nmake anymore), then you can see the link command line should start:

Linking libwireshark.dll
link  /INCREMENTAL:NO /NOLOGO -entry:_DllMainCRTStartup -dll kernel32.lib  ws2_32.lib mswsock.lib advapi32.lib shell32.lib psapi.lib  /DEBUG

The bits between the link command and shell32.lib are provided by the nmake variables dlllflags and conlibsdll, which are in turn sourced from win32.mak. This file isn't provided by more recent installations of Visual Studio and has to be copied from an earlier version. I vaguely remember nmake objecting if it couldn't find this file. You might want to modify epan\Makefile.nmake to print out the contents of those variables.

(25 Apr '16, 07:01) grahamb ♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×1,620
×254
×1

question asked: 25 Apr '16, 04:28

question was seen: 1,132 times

last updated: 25 Apr '16, 07:01

p​o​w​e​r​e​d by O​S​Q​A