Wireshark-dev: [Wireshark-dev] Custom plugin: warning, error
From: Nilesh Bhadule <[email protected]>
Date: Mon, 29 Jan 2018 08:14:36 +0000

Hi,

I have attached screenshots of error message got when I run the newly build wireshark.exe.

 

Hi, I am using below command line statements,

1) Cmake custom plugin generation step

CMake -DCUSTOMPLUGINSRCDIR="plugins/75fwireless" -DENABLECHMGUIDES=on -G "Visual Studio 14 2015 Win64"

 

2) normal Wireshark build step,

 

"c:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" /m /p:Configuration=RelWithDebInfo Wireshark.sln

 

 

 

Also I am getting warnings messages after doing Wireshark build step as per following,

 

"C:\Development\wireshark\Wireshark.sln" (default target) (1) ->

       "C:\Development\wireshark\ALL_BUILD.vcxproj.metaproj" (default target) (2) ->

       "C:\Development\wireshark\copy_data_files.vcxproj.metaproj" (default target) (10) ->

       "C:\Development\wireshark\copy_data_files.vcxproj" (default target) (95) ->

       (CustomBuild target) ->

         C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): warning MSB8017: A

       circular dependency has been detected while executing custom build commands for item "C:\Development\wireshark\C

       MakeFiles\9            977e0a1dc4e3bfac0f880578d54d5f2\README.txt.rule". This may cause incremental build to work incorrectl

       y. [C:\Development\wireshark\copy_data_files.vcxproj]

 

 

       "C:\Development\wireshark\Wireshark.sln" (default target) (1) ->

       "C:\Development\wireshark\ALL_BUILD.vcxproj.metaproj" (default target) (2) ->

       "C:\Development\wireshark\epan\epan.vcxproj.metaproj" (default target) (20) ->

       "C:\Development\wireshark\epan\epan.vcxproj" (default target) (121) ->

       (ClCompile target) ->

         dtd_parse.c(1846): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [C:\Developmen

       t\wireshark\epan\epan.vcxproj]

         diam_dict.c(2495): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [C:\Developmen

       t\wireshark\epan\epan.vcxproj]

         C:/Development/wireshark/epan/uat_load.c(1623): warning C4267: '=': conversion from 'size_t' to 'int', possibl

       e loss of data [C:\Development\wireshark\epan\epan.vcxproj]

 

 

       "C:\Development\wireshark\Wireshark.sln" (default target) (1) ->

       "C:\Development\wireshark\ALL_BUILD.vcxproj.metaproj" (default target) (2) ->

       "C:\Development\wireshark\plugins\wimaxasncp\wimaxasncp.vcxproj.metaproj" (default target) (51) ->

       "C:\Development\wireshark\plugins\wimaxasncp\wimaxasncp.vcxproj" (default target) (134) ->

         wimaxasncp_dict.c(2250): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [C:\Deve

       lopment\wireshark\plugins\wimaxasncp\wimaxasncp.vcxproj]

 

 

       "C:\Development\wireshark\Wireshark.sln" (default target) (1) ->

       "C:\Development\wireshark\ALL_BUILD.vcxproj.metaproj" (default target) (2) ->

       "C:\Development\wireshark\wireshark.vcxproj.metaproj" (default target) (53) ->

       "C:\Development\wireshark\wireshark.vcxproj" (default target) (145) ->

       (ResourceCompile target) ->

         C:\Development\wireshark-win64-libs\gtk2\include\glib-2.0\glib/gatomic.h(85): warning RC4011: identifier trunc

      ated to '__GCC_HAVE_SYNC_COMPARE_AND_SWA' [C:\Development\wireshark\wireshark.vcxproj]

 

 

       "C:\Development\wireshark\Wireshark.sln" (default target) (1) ->

       "C:\Development\wireshark\ALL_BUILD.vcxproj.metaproj" (default target) (2) ->

       "C:\Development\wireshark\wireshark.vcxproj.metaproj" (default target) (53) ->

       "C:\Development\wireshark\wireshark.vcxproj" (default target) (145) ->

       (Link target) ->

         qtmain.lib(qtmain_win.obj) : warning LNK4099: PDB 'qtmain.pdb' was not found with 'qtmain.lib(qtmain_win.obj)'

        or at 'C:\Development\wireshark\run\RelWithDebInfo\qtmain.pdb'; linking object as if no debug info [C:\Developm

       ent\wireshark\wireshark.vcxproj]

 

How can I remove these warnings.?

 

Thanks,

Nilesh

 

 

From: Nilesh Bhadule
Sent: Monday, January 29, 2018 1:36 PM
To: '[email protected]' <[email protected]>
Subject: error occurred WSLDFLAG_VALID0 - Failed

 

 

hi,

While doing Custom plugin Cmake generation step following error occurred WSLDFLAG_VALID0 - Failed,

 

-- Performing Test CXX_w34295w34189wd4200VALID

-- Performing Test CXX_w34295w34189wd4200VALID

- Success statuscheck linker flag - test linker flags: -Wl,--as-needed

-- Performing Test WSLDFLAGVALID0

-- Performing Test WSLDFLAGVALID0 - Failed

statuscheck linker flag - test linker flags: -pie

-- Performing Test WSLDFLAGVALID1

-- Performing Test WSLDFLAGVALID1 - Failed

-- Looking for sys/types.h

-- Looking for sys/types.h - found -- Looking for stdint.h

 

How can remove this error?

Thanks,

Nilesh

 

Attachment: WiresharkPlugin.jpg
Description: WiresharkPlugin.jpg

Attachment: WiresharkPlugin_1.png
Description: WiresharkPlugin_1.png