Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] win32-setup.sh fails to set executable bit for upx.exe - any

From: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Fri, 30 Nov 2007 03:16:26 +0100
Bill Meier schrieb:
Ulf Lamping wrote:
Although I see a change in the win32-setup.sh file (so I got your changes), there's unfortunately no change in behaviour, upx.exe still lacks the executable bit ...


OK: Let's go to the tape ...

Please add a
	set -x
someplace near the beginning of win32-setup.sh.

Then run the library setup and post the output.
'set -x' should provide enough output to identify the problem.
Unless I'm too blind to see, it seems like find simply ignores upx.exe in the upx301w dir. Output with set -x is as follows:

1>+ PACKAGE_PATH=upx301w.zip
1>++ basename upx301w.zip
1>+ PACKAGE=upx301w.zip
1>+ echo ''
1>+ echo '****** upx301w.zip ******'
1>****** upx301w.zip ******
1>+ '[' -z '' -a -z '' ']'
1>+ echo 'No HTTP proxy specified (http_proxy and HTTP_PROXY are empty).'
1>No HTTP proxy specified (http_proxy and HTTP_PROXY are empty).
1>+ echo 'Downloading upx301w.zip into C:\WIRESH~2, installing into .'
1>Downloading upx301w.zip into C:\WIRESH~2, installing into .
1>+ '[' '!' -d 'C:\WIRESH~2/.' ']'
1>+ cd 'C:\WIRESH~2'
1>+ wget -nc http://anonsvn.wireshark.org/wireshark-win32-libs/tags/2007-11-29a/packages//upx301w.zip
1>File `upx301w.zip' already there; not retrieving.
1>+ cd .
1>+ echo 'Extracting C:\WIRESH~2/upx301w.zip into C:\WIRESH~2/.'
1>Extracting C:\WIRESH~2/upx301w.zip into C:\WIRESH~2/.
1>+ unzip -oq 'C:\WIRESH~2/upx301w.zip'
1>+ echo 'Verifying that the DLLs and EXEs in . are executable.'
1>Verifying that the DLLs and EXEs in . are executable.
1>++ /usr/bin/find . '(' -name '*.dll' -o -name vcredist_x86.exe ')'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./adns-1.0-win32-05/adns_win32/adnslogres/adns_db_dll.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./adns-1.0-win32-05/adns_win32/lib/adns_db_dll.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./adns-1.0-win32-05/adns_win32/lib/adns_dll.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./AirPcap_Devpack_1_0_0_594/Airpcap_Devpack/bin/airpcap.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./gettext-runtime-0.17/bin/intl.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./glib/bin/libglib-2.0-0.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./glib/bin/libgmodule-2.0-0.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./glib/bin/libgobject-2.0-0.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./glib/bin/libgthread-2.0-0.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./gnutls-1.6.1-1/bin/libgcrypt-11.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./gnutls-1.6.1-1/bin/libgnutls-13.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./gnutls-1.6.1-1/bin/libgnutls-extra-13.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./gnutls-1.6.1-1/bin/libgnutls-openssl-13.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./gnutls-1.6.1-1/bin/libgpg-error-0.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./gnutls-1.6.1-1/bin/libtasn1-3.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./gtk+/lib/libgdk-0.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./gtk+/lib/libgtk-0.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./gtk-wimp/gtk-wimp-0.7.0-bin/libwimp.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./gtk2/bin/jpeg62.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./gtk2/bin/libatk-1.0-0.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./gtk2/bin/libcairo-2.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./gtk2/bin/libgdk-win32-2.0-0.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./gtk2/bin/libgdk_pixbuf-2.0-0.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./gtk2/bin/libgtk-win32-2.0-0.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./gtk2/bin/libpango-1.0-0.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./gtk2/bin/libpangocairo-1.0-0.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./gtk2/bin/libpangoft2-1.0-0.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./gtk2/bin/libpangowin32-1.0-0.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./gtk2/bin/libpng13.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./gtk2/bin/libtiff3.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./gtk2/lib/gtk-2.0/2.10.0/engines/libpixmap.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./gtk2/lib/gtk-2.0/2.10.0/engines/libwimp.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./gtk2/lib/gtk-2.0/2.10.0/immodules/im-am-et.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./gtk2/lib/gtk-2.0/2.10.0/immodules/im-cedilla.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./gtk2/lib/gtk-2.0/2.10.0/immodules/im-cyrillic-translit.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./gtk2/lib/gtk-2.0/2.10.0/immodules/im-ime.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./gtk2/lib/gtk-2.0/2.10.0/immodules/im-inuktitut.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./gtk2/lib/gtk-2.0/2.10.0/immodules/im-ipa.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./gtk2/lib/gtk-2.0/2.10.0/immodules/im-multipress.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./gtk2/lib/gtk-2.0/2.10.0/immodules/im-thai.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./gtk2/lib/gtk-2.0/2.10.0/immodules/im-ti-er.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./gtk2/lib/gtk-2.0/2.10.0/immodules/im-ti-et.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./gtk2/lib/gtk-2.0/2.10.0/immodules/im-viqr.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./kfw-2.5/bin/comerr32.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./kfw-2.5/bin/krb5_32.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./libiconv-1.9.1.bin.woe32/bin/charset.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./libiconv-1.9.1.bin.woe32/bin/iconv.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./libsmi-0.4.5/lib/smi.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./lua5.1/lib/dll/lua5.1.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./pcre-6.4/bin/pcre.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./pcre-6.4/bin/pcrecpp.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./pcre-6.4/bin/pcreposix.dll ']'
1>+ for i in '`/usr/bin/find . \( -name *\.dll -o -name *\.exe \)`'
1>+ '[' '!' -x ./vcredist_x86.exe ']'
1>+ exit 0
1>Wireshark is ready to build.