Build plugin using msbuild but getting lot of warnings

asked 2018-01-28 20:13:41 +0000

Hi,

I am trying to plugin . Tried to build using MSBuild but got below mentioned warning,

   "c:\Development\wireshark\Wireshark.sln" (default target) (1) ->
   "c:\Development\wireshark\docbook\generate_user-guide.xml.vcxproj.metaproj" (default target) (71) ->
   "c:\Development\wireshark\docbook\generate_user-guide.xml.vcxproj" (default target) (86) ->
   (CustomBuild target) ->
     asciidoc : warning : WSUG_app_files.asciidoc: line 164: missing style: [tabledef-default]: float [c:\Development\wireshark\docbook\generate_user-guide.xml.vcx
   proj]


   "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) (11) ->
   "c:\Development\wireshark\copy_data_files.vcxproj" (default target) (106) ->
     C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): warning MSB8017: A circular dependency has been detected while exec
   uting custom build commands for item "C:\Development\wireshark\CMakeFiles\9977e0a1dc4e3bfac0f880578d54d5f2\README.txt.rule". This may cause incremental build to
    work incorrectly. [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) (21) ->
   "c:\Development\wireshark\epan\epan.vcxproj" (default target) (139) ->
   (ClCompile target) ->
     dtd_parse.c(1846): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [c:\Development\wireshark\epan\epan.vcxproj]
     diam_dict.c(2495): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [c:\Development\wireshark\epan\epan.vcxproj]
     C:/Development/wireshark/epan/uat_load.c(1623): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [c:\Development\wireshark\epan\ep
   an.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) (53) ->
   "c:\Development\wireshark\plugins\wimaxasncp\wimaxasncp.vcxproj" (default target) (150) ->
     wimaxasncp_dict.c(2250): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data [c:\Development\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) (55) ->
   "c:\Development\wireshark\wireshark.vcxproj" (default target) (163) ->
   (ResourceCompile target) ->
     C:\Development\wireshark-win64-libs\gtk2\include\glib-2.0\glib/gatomic.h(85): warning RC4011: identifier truncated to '__GCC_HAVE_SYNC_COMPARE_AND_SWA' [c:\De
   velopment\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) (55) ->
   "c:\Development\wireshark\wireshark.vcxproj" (default target) (163) ->
   (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\RelWithDebI
   nfo\qtmain.pdb'; linking object as if no debug info [c:\Development\wireshark\wireshark.vcxproj]

8 Warning(s)
0 Error(s)

How can I remove these warnings?

After this I copied my dll named 75f_wireless.dll to Already installed wireshark/plugins ... (more)

edit retag flag offensive close merge delete

Comments

What about these warnings are related to your plugin?

Jaap gravatar imageJaap ( 2018-01-29 06:30:27 +0000 )edit

Hi,

Thanks for reply.

I don't think these warnings are for my plugin. My plugin file name is packet-75fwireless.c and folder is plugins\75fwireless

Looks like there is some linker related issue.

nileshbhadule gravatar imagenileshbhadule ( 2018-01-29 06:47:54 +0000 )edit

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

Thanks, Nilesh

nileshbhadule gravatar imagenileshbhadule ( 2018-01-29 06:55:23 +0000 )edit

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

nileshbhadule gravatar imagenileshbhadule ( 2018-01-29 06:58:57 +0000 )edit

I think you should move over the wireshark-dev mailing list. This is not a forum.

Jaap gravatar imageJaap ( 2018-01-29 07:10:21 +0000 )edit