Wireshark mailing list archives

Re: Windows packaging fails with master


From: Anders Broman <anders.broman () ericsson com>
Date: Fri, 15 Aug 2014 14:29:45 +0000



From: wireshark-dev-bounces () wireshark org [mailto:wireshark-dev-bounces () wireshark org] On Behalf Of Graham Bloice
Sent: den 15 augusti 2014 16:20
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] Windows pacaging fails with master

On 15 August 2014 15:13, Anders Broman <anders.broman () ericsson com<mailto:anders.broman () ericsson com>> wrote:


From: wireshark-dev-bounces () wireshark org<mailto:wireshark-dev-bounces () wireshark org> 
[mailto:wireshark-dev-bounces () wireshark org<mailto:wireshark-dev-bounces () wireshark org>] On Behalf Of Graham 
Bloice
Sent: den 15 augusti 2014 16:05
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] Windows pacaging fails with master

On 15 August 2014 14:15, Anders Broman <anders.broman () ericsson com<mailto:anders.broman () ericsson com>> wrote:
Hi,
I get ( Win7 64 and Visual studio 2012 )
:
0 File(s) copied
       xcopy ".\pdml2html.xsl" wireshark-gtk2 /d
0 File(s) copied
       powershell -executionpolicy bypass -File tools/textify.ps1 -Destination wireshark-gtk2  ./COPYING  ./NEWS  
./README  ./README.windows
Get-ChildItem : A parameter cannot be found that matches parameter name 'File'.
At C:\ewireshark2\trunk\tools\textify.ps1:71 char:42
+ foreach ($src_file in Get-ChildItem -File <<<<  $SourceFiles) {
    + CategoryInfo          : InvalidArgument: (:) [Get-ChildItem], ParameterB
   indingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Comm
   ands.GetChildItemCommand
       xcopy ".\cfilters" wireshark-gtk2 /d
0 File(s) copied
       xcopy ".\colorfilters" wireshark-gtk2 /d
0 File(s) copied
       xcopy ".\dfilters" wireshark-gtk2 /d
0 File(s) copied
       xcopy ".\smi_modules" wireshark-gtk2 /d
0 File(s) copied
       xcopy ".\epan\wslua\init.lua" wireshark-gtk2 /d
0 File(s) copied
       xcopy ".\epan\wslua\console.lua" wireshark-gtk2 /d
0 File(s) copied
       xcopy ipmap.html wireshark-gtk2 /d
0 File(s) copied
       xcopy doc\*.html wireshark-gtk2 /d
0 File(s) copied
       if not exist wireshark-gtk2\help mkdir wireshark-gtk2\help
       xcopy ".\help\toc" wireshark-gtk2\help /d
0 File(s) copied
       powershell -executionpolicy bypass -File tools/textify.ps1 -Destination wireshark-gtk2\help help\*.txt
Get-ChildItem : A parameter cannot be found that matches parameter name 'File'.
At C:\ewireshark2\trunk\tools\textify.ps1:71 char:42
+ foreach ($src_file in Get-ChildItem -File <<<<  $SourceFiles) {
    + CategoryInfo          : InvalidArgument: (:) [Get-ChildItem], ParameterB
   indingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Comm
   ands.GetChildItemCommand
ands.GetChildItemCommand
:
NMAKE : fatal error U1073: don't know how to make '..\..\wireshark-gtk2/help/cap
ture_filters.txt'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0
\VC\BIN\nmake.exe"' : return code '0x2'
Stop.

Any ideas?


On Win7 x64 (VS2013 but that shouldn't matter for this bit) I get:

        powershell -executionpolicy bypass -File tools/textify.ps1 -Destination wireshark-gtk2  ./COPYING  ./NEWS  
./README  ./README.windows
Textified E:\Wireshark\wireshark\COPYING to wireshark-gtk2\COPYING.txt
Textified E:\Wireshark\wireshark\NEWS to wireshark-gtk2\NEWS.txt
Textified E:\Wireshark\wireshark\README to wireshark-gtk2\README.txt
Textified E:\Wireshark\wireshark\README.windows to wireshark-gtk2\README.windows.txt

and

        powershell -executionpolicy bypass -File tools/textify.ps1 -Destination wireshark-gtk2\help help\*.txt
Skipping E:\Wireshark\wireshark\help\capture_filters.txt
Skipping E:\Wireshark\wireshark\help\capturing.txt
Skipping E:\Wireshark\wireshark\help\display_filters.txt
Skipping E:\Wireshark\wireshark\help\faq.txt
Skipping E:\Wireshark\wireshark\help\getting_started.txt

and both the windows buildbots and the petri-dish get the same.

The error looks like a problem with line 71 of the script, where all the source files are enumerated.  Get-ChildItem 
returns the leaf node of the supplied path.

From the top level source you could just try to run the command line shown, e.g.

powershell -executionpolicy bypass -File tools/textify.ps1 -Destination wireshark-gtk2  ./COPYING  ./NEWS  ./README  
./README.windows


--
Graham Bloice

Gives the same result ☹
C:\ewireshark2\trunk>powershell -executionpolicy bypass -File tools/textify.ps1
-Destination wireshark-gtk2  ./COPYING  ./NEWS  ./README  ./README.windows
Get-ChildItem : A parameter cannot be found that matches parameter name 'File'.
At C:\ewireshark2\trunk\tools\textify.ps1:71 char:42
+ foreach ($src_file in Get-ChildItem -File <<<<  $SourceFiles) {
    + CategoryInfo          : InvalidArgument: (:) [Get-ChildItem], ParameterB
   indingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Comm
   ands.GetChildItemCommand


And you do have those files listed in the current directory?

--
Graham Bloice

Yes and if fails just giving one file too …


C:\ewireshark2\trunk>dir
Volume in drive C is System
Volume Serial Number is 723D-2EED

Directory of C:\ewireshark2\trunk

2014-08-15  15:07    <DIR>          .
2014-08-15  15:07    <DIR>          ..
2014-02-03  14:30                10 .bzrignore
2014-06-19  19:37               176 .gitattributes
2014-08-03  22:37             3 852 .gitignore
2014-02-13  11:44               114 .gitreview
2014-02-03  14:30               373 abi-descriptor.template
2014-08-05  09:30            65 523 acinclude.m4
2014-08-15  13:59    <DIR>          aclocal-fallback
2014-04-01  09:18             5 338 aclocal-flags
2014-02-06  10:23             1 652 adns_dll.dep
2014-02-06  10:23             2 753 adns_dll.rc
2014-07-29  20:42           154 683 airpcap_loader.obj
2014-08-15  13:59    <DIR>          asn1
2014-08-05  09:30           108 421 AUTHORS
2014-02-10  11:29             4 478 autogen.sh
2014-08-15  14:11    <DIR>          capchild
2014-08-06  09:59            46 560 capinfos.c
2014-08-15  14:47           317 440 capinfos.exe
2014-08-15  14:16           112 638 capinfos.obj
2014-08-15  14:47           314 368 capinfos.pdb
2014-07-03  15:19            36 994 capture-pcap-util.obj
2014-07-03  15:19            83 661 capture-wpcap.obj
2014-07-01  15:52            62 825 capture.obj
2014-06-23  17:21            33 673 capture_ifinfo.obj
2014-06-01  20:18            12 654 capture_info.c
2014-07-04  14:16             2 454 capture_info.h
2014-08-15  14:15            36 970 capture_info.obj
2014-07-27  21:28            47 277 capture_opts.c
2014-07-27  21:28            13 035 capture_opts.h
2014-08-15  14:15            82 235 capture_opts.obj
2014-03-06  15:37             7 936 capture_stop_conditions.c
2014-03-06  15:37             1 111 capture_stop_conditions.h
2014-08-15  14:16            19 175 capture_stop_conditions.obj
2014-06-23  17:21           106 098 capture_sync.obj
2014-07-01  15:52            33 700 capture_ui_utils.obj
2014-07-03  15:19            31 934 capture_win_ifnames.obj
2014-07-03  15:19            32 044 capture_wpcap_packet.obj
2014-08-06  09:59             7 377 captype.c
2014-08-15  14:47           300 032 captype.exe
2014-08-15  14:16            32 017 captype.obj
2014-08-15  14:47           240 640 captype.pdb
2014-08-15  14:11    <DIR>          caputils
2014-05-19  09:35             1 908 cfile.c
2014-03-24  18:20             6 512 cfile.h
2014-08-15  14:15            15 429 cfile.obj
2014-02-03  14:30               528 cfilters
2014-02-03  14:30                 0 ChangeLog
2014-07-01  15:52            12 742 clopts_common.obj
2014-08-15  13:59    <DIR>          cmake
2014-08-14  09:37            12 620 cmakeconfig.h.in
2014-08-14  09:37            43 637 CMakeLists.txt
2014-06-18  21:44             3 268 CMakeOptions.txt
2014-08-15  14:07    <DIR>          codecs
2014-03-06  15:37             2 054 color.h
2014-02-03  14:30             1 944 colorfilters
2014-03-06  15:37            25 271 color_filters.c
2014-03-06  15:37             6 357 color_filters.h
2014-08-15  14:15            57 419 color_filters.obj
2014-03-06  15:37             7 121 conditions.c
2014-03-06  15:37             4 462 conditions.h
2014-08-15  14:16            19 569 conditions.obj
2014-02-03  14:30            46 855 config.guess
2014-08-15  14:06             7 879 config.h
2014-07-07  08:13             8 035 config.h.win32
2014-08-15  13:55            58 287 config.nmake
2014-02-03  14:30            37 309 config.sub
2014-08-14  09:37            90 169 configure.ac
2014-07-07  08:13             5 819 ConfigureChecks.cmake
2014-08-15  13:54            28 498 COPYING
2014-04-01  09:18             3 537 CPackConfig.txt
2014-08-15  13:59    <DIR>          debian
2014-04-09  09:25               674 dfilters
2014-02-03  14:30                 0 dfilter_macros
2014-03-06  15:37             5 508 dftest.c
2014-08-15  14:16            11 264 dftest.exe
2014-08-15  14:16            24 046 dftest.obj
2014-08-15  14:16           248 832 dftest.pdb
2014-08-15  13:59    <DIR>          diameter
2014-08-15  14:16    <DIR>          doc
2014-08-15  13:59    <DIR>          docbook
2014-08-15  14:07             3 499 doxygen.cfg
2014-04-01  09:18             3 590 doxygen.cfg.in
2014-04-15  09:01            82 647 doxygen_global.cfg
2014-08-15  13:59    <DIR>          dtds
2014-08-06  09:59           199 451 dumpcap.c
2014-08-15  14:47           382 464 dumpcap.exe
2014-08-15  14:16           202 959 dumpcap.obj
2014-08-15  14:47           560 128 dumpcap.pdb
2014-08-15  13:59    <DIR>          echld
2014-06-23  08:17            10 252 echld_test.c
2014-08-06  09:59            69 896 editcap.c
2014-08-15  14:47           324 096 editcap.exe
2014-08-15  14:16           119 110 editcap.obj
2014-08-15  14:47           330 752 editcap.pdb
2014-08-15  14:11    <DIR>          epan
2014-05-05  13:05    <DIR>          ericsson
2014-08-03  22:37           170 860 file.c
2014-06-01  20:18            21 403 file.h
2014-08-15  14:15           221 922 file.obj
2014-03-06  15:37            10 893 fileset.c
2014-03-06  15:37             2 202 fileset.h
2014-08-15  14:15            31 429 fileset.obj
2014-08-15  14:00    <DIR>          filetap
2014-07-01  15:52            30 624 filters.obj
2014-08-15  14:00    <DIR>          fix
2014-08-03  22:37             9 092 frame_tvbuff.c
2014-03-06  15:37             1 463 frame_tvbuff.h
2014-08-15  14:15            34 774 frame_tvbuff.obj
2014-03-06  15:37             1 169 globals.h
2014-08-15  14:11    <DIR>          help
2014-08-15  14:00    <DIR>          idl
2014-07-11  13:42             1 798 iface_monitor.obj
2014-08-15  14:07    <DIR>          image
2014-08-14  09:37            10 342 INSTALL
2014-02-03  14:30             8 013 INSTALL.configure
2014-02-03  14:30             4 253 ipmap.html
2014-02-03  14:44    <DIR>          isdn-sup
2014-07-29  20:50       108 081 222 list_of_value_strings.txt
2014-03-06  15:37             1 385 log.h
2014-07-27  23:17            58 125 macosx-setup.sh
2014-08-15  14:00    <DIR>          macosx-support-lib-patches
2014-03-06  19:07            20 973 make-version.pl
2014-08-07  10:07            38 207 Makefile.am
2014-04-01  09:18             1 919 Makefile.am.inc
2014-08-03  22:37             3 531 Makefile.common
2014-08-15  13:53            52 184 Makefile.nmake
2014-04-01  09:18               990 Makefile.nmake.inc
2014-08-15  13:53         1 432 227 manuf
2014-04-22  10:11             3 543 manuf.tmpl
2014-08-06  09:59            19 043 mergecap.c
2014-08-15  14:47           307 712 mergecap.exe
2014-08-15  14:16            57 009 mergecap.obj
2014-08-15  14:47           289 792 mergecap.pdb
2014-03-06  15:37            19 147 mkcap.c
2014-08-14  09:37             9 405 NEWS
2014-08-15  14:00    <DIR>          packaging
2014-08-15  15:08            38 768 packaging.log.txt
2014-06-30  16:32             4 078 patch.patch
2014-08-06  09:59            30 075 pcapio.c
2014-04-15  09:01             5 690 pcapio.h
2014-08-15  14:16            33 742 pcapio.obj
2014-06-09  09:26             7 183 pdml2html.xsl
2014-08-15  14:00    <DIR>          plugins
2014-02-03  14:30    <DIR>          profiles
2014-07-01  15:52            26 340 proto_hier_stats.obj
2014-08-15  14:00    <DIR>          radius
2014-06-01  20:18            16 949 randpkt.c
2014-08-15  14:16            13 312 randpkt.exe
2014-08-15  14:16            43 562 randpkt.obj
2014-08-15  14:16           257 024 randpkt.pdb
2014-07-28  00:26            59 895 rawshark.c
2014-08-15  14:47           341 504 rawshark.exe
2014-08-15  14:16           124 920 rawshark.obj
2014-08-15  14:47           519 168 rawshark.pdb
2014-08-14  09:37             9 918 README
2014-03-31  18:01            12 363 README.aix
2014-03-31  18:01             3 772 README.bsd
2014-08-03  22:37             6 808 README.cmake
2014-03-31  18:01             1 312 README.DECT
2014-03-31  18:01            12 473 README.hpux
2014-03-31  18:01             5 451 README.linux
2014-06-16  01:15             6 954 README.macos
2014-03-31  18:01             1 742 README.tru64
2014-03-31  18:01             1 452 README.vmware
2014-03-31  18:01               866 README.windows
2014-03-06  15:37             2 137 register.h
2014-08-06  09:59            12 336 reordercap.c
2014-08-15  14:47           303 104 reordercap.exe
2014-08-15  14:16            31 278 reordercap.obj
2014-08-15  14:47           265 216 reordercap.pdb
2014-03-06  15:37             9 941 ringbuffer.c
2014-03-06  15:37             1 857 ringbuffer.h
2014-08-15  14:16            39 039 ringbuffer.obj
2013-12-05  14:36                62 safety.key
2014-08-11  09:55           945 467 services
2014-02-03  14:30               333 smi_modules
2014-07-04  14:16             7 079 summary.c
2014-07-04  14:16             4 719 summary.h
2014-08-15  14:15            21 459 summary.obj
2014-03-06  15:37             3 328 sync_pipe.h
2014-04-11  09:11             3 336 sync_pipe_write.c
2014-08-15  14:15            12 997 sync_pipe_write.obj
2014-08-15  14:00    <DIR>          test
2014-06-25  17:20            14 579 test.log
2014-08-15  14:16            47 724 text2pcap-scanner.c
2014-03-06  15:37             2 662 text2pcap-scanner.l
2014-08-15  14:16            44 805 text2pcap-scanner.obj
2014-08-06  09:59            72 713 text2pcap.c
2014-08-15  14:47           335 872 text2pcap.exe
2014-03-06  15:37             1 419 text2pcap.h
2014-08-15  14:16           110 800 text2pcap.obj
2014-08-15  14:47           330 752 text2pcap.pdb
2014-08-06  09:59            94 921 tfshark.c
2014-08-15  15:07           338 432 tfshark.exe
2014-08-15  14:16           156 584 tfshark.obj
2014-08-15  15:07           461 824 tfshark.pdb
2014-08-15  14:00    <DIR>          tools
2014-08-15  14:00    <DIR>          tpncp
2014-03-06  15:37             8 198 trigcap.c
2014-08-15  13:55           150 648 tshark.c
2014-08-15  15:07           530 432 tshark.exe
2014-08-15  14:16           246 673 tshark.obj
2014-08-15  15:07         1 313 792 tshark.pdb
2014-04-28  10:57             8 605 tvb_always_inline.patch
2014-08-15  14:11    <DIR>          ui
2014-08-07  17:34       108 182 244 value_strings.txt
2014-08-15  14:16           258 048 vc110.pdb
2013-12-05  14:43               737 version.conf
2014-08-15  14:13                75 version.h
2014-07-04  14:16             3 743 version_info.c
2014-06-23  08:17             1 934 version_info.h
2014-08-15  14:15            14 137 version_info.obj
2014-08-15  14:00    <DIR>          wimaxasncp
2014-08-15  15:35    <DIR>          wireshark-gtk2
2014-04-01  09:18             4 504 wireshark-mime-package.xml
2014-08-15  14:20    <DIR>          wireshark-qt-release
2014-04-01  09:18             3 388 wireshark.desktop
2014-02-03  14:30                64 wireshark.dox
2014-08-15  15:07         3 062 272 Wireshark.exe
2014-03-10  11:38               383 wireshark.pc.in
2014-08-15  15:07         8 670 208 Wireshark.pdb
2014-08-15  14:07    <DIR>          wiretap
2014-08-15  13:53            10 826 wka.tmpl
2014-07-03  15:19            13 364 ws80211_utils.obj
2014-08-15  14:07    <DIR>          wsutil
2014-07-04  14:16             6 438 ws_symbol_export.h
2014-08-15  14:06                 0 _libs_check_
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

Current thread: