Skip Menu |

This queue is for tickets about the Alien-wxWidgets CPAN distribution.

Report information
The Basics
Id: 99325
Status: open
Priority: 0/
Queue: Alien-wxWidgets

People
Owner: mdootson [...] cpan.org
Requestors: Ralf.Neubauer [...] wido.bv.aok.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: DLLs not stripped under Windows
Date: Mon, 6 Oct 2014 11:37:52 +0000
To: "bug-Alien-wxWidgets [...] rt.cpan.org" <bug-Alien-wxWidgets [...] rt.cpan.org>
From: "Neubauer, Ralf" <ralf.neubauer [...] wido.bv.aok.de>
Hi, the auto-built libs and DLLs under Windows are very big: c:\>dir C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib Volume in Laufwerk C: hat keine Bezeichnung. Volumeseriennummer: 8666-333F Verzeichnis von C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib 26.06.2014 19:20 <DIR> . 26.06.2014 19:20 <DIR> .. 26.06.2014 19:20 579 build.cfg 27.05.2013 01:58 95.232 libgcc_s_sjlj-1.dll 27.05.2013 01:58 860.160 libstdc++-6.dll 26.06.2014 19:04 4.546.054 libwxbase30u.a 26.06.2014 19:04 421.148 libwxbase30u_net.a 26.06.2014 19:15 141.770 libwxbase30u_xml.a 26.06.2014 19:00 202.080 libwxexpat.a 26.06.2014 19:00 147.598 libwxjpeg.a 26.06.2014 19:14 3.829.006 libwxmsw30u_adv.a 26.06.2014 19:17 1.209.486 libwxmsw30u_aui.a 26.06.2014 19:12 11.270.024 libwxmsw30u_core.a 26.06.2014 19:19 220.466 libwxmsw30u_gl.a 26.06.2014 19:14 1.774.158 libwxmsw30u_html.a 26.06.2014 19:14 286.924 libwxmsw30u_media.a 26.06.2014 19:18 2.027.510 libwxmsw30u_propgrid.a 26.06.2014 19:17 744.170 libwxmsw30u_ribbon.a 26.06.2014 19:18 2.943.190 libwxmsw30u_richtext.a 26.06.2014 19:19 2.420.332 libwxmsw30u_stc.a 26.06.2014 19:15 726.214 libwxmsw30u_webview.a 26.06.2014 19:16 1.459.622 libwxmsw30u_xrc.a 26.06.2014 19:00 229.324 libwxpng.a 26.06.2014 19:00 80.586 libwxregexu.a 26.06.2014 19:00 457.672 libwxtiff.a 26.06.2014 19:00 85.458 libwxzlib.a 26.06.2014 19:20 <DIR> wx 26.06.2014 19:04 4.318.770 wxbase30u_gcc_custom.dll 26.06.2014 19:04 387.638 wxbase30u_net_gcc_custom.dll 26.06.2014 19:15 350.238 wxbase30u_xml_gcc_custom.dll 26.06.2014 19:14 3.305.276 wxmsw30u_adv_gcc_custom.dll 26.06.2014 19:17 1.176.927 wxmsw30u_aui_gcc_custom.dll 26.06.2014 19:12 11.161.717 wxmsw30u_core_gcc_custom.dll 26.06.2014 19:19 329.623 wxmsw30u_gl_gcc_custom.dll 26.06.2014 19:15 1.709.144 wxmsw30u_html_gcc_custom.dll 26.06.2014 19:14 391.571 wxmsw30u_media_gcc_custom.dll 26.06.2014 19:18 1.740.233 wxmsw30u_propgrid_gcc_custom.dll 26.06.2014 19:17 925.681 wxmsw30u_ribbon_gcc_custom.dll 26.06.2014 19:18 3.022.088 wxmsw30u_richtext_gcc_custom.dll 26.06.2014 19:19 3.111.484 wxmsw30u_stc_gcc_custom.dll 26.06.2014 19:15 512.178 wxmsw30u_webview_gcc_custom.dll 26.06.2014 19:16 2.176.565 wxmsw30u_xrc_gcc_custom.dll 39 Datei(en), 70.797.896 Bytes The code and data is smaller: c:\>size C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\*.dll text data bss dec hex filename 90359 1548 1000 92907 16aeb C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\libgcc_s_sjlj-1.dll 826328 30120 3744 860192 d2020 C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\libstdc++-6.dll 2877788 16644 22432 2916864 2c8200 C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxbase30u_gcc_custom.dll 143311 11952 5800 161063 27527 C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxbase30u_net_gcc_custom.dll 195618 6572 968 203158 31996 C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxbase30u_xml_gcc_custom.dll 1649814 73740 9704 1733258 1a728a C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxmsw30u_adv_gcc_custom.dll 558741 31920 3688 594349 911ad C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxmsw30u_aui_gcc_custom.dll 6921746 54948 189068 7165762 6d5742 C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxmsw30u_core_gcc_custom.dll 94098 18008 1192 113298 1ba92 C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxmsw30u_gl_gcc_custom.dll 797925 48976 3244 850145 cf8e1 C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxmsw30u_html_gcc_custom.dll 134885 17316 1132 153333 256f5 C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxmsw30u_media_gcc_custom.dll 832472 52488 3752 888712 d8f88 C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxmsw30u_propgrid_gcc_custom.dll 490937 19332 2892 513161 7d489 C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxmsw30u_ribbon_gcc_custom.dll 1701410 56628 10472 1768510 1afc3e C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxmsw30u_richtext_gcc_custom.dll 2433715 30048 7336 2471099 25b4bb C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxmsw30u_stc_gcc_custom.dll 163698 18948 1192 183838 2ce1e C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxmsw30u_webview_gcc_custom.dll 1003033 59820 6792 1069645 10524d C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxmsw30u_xrc_gcc_custom.dll When I create a perl executable with PAR::Packer (using wxpar), the DLLs are included in the executable and make the executable very big. The corresponding Linux libraries and the (old) libraries from http://www.wxperl.co.uk/repository/package.xml which I used with ActivePerl are much smaller. Is it possible to strip the libraries and DLLs, if I don't want to debug the Wx code? Ralf Neubauer
Hi, Normally on windows the dlls should be stripped by the build process but that is currently failing. To strip your installed DLLs: cd C:\strawberry5.18.1.1-32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib attrib -r *.dll strip *.dll attrib +r *.dll On Mon Oct 06 07:38:07 2014, Ralf.Neubauer@wido.bv.aok.de wrote: Show quoted text
> Hi, > > the auto-built libs and DLLs under Windows are very big: > > c:\>dir C:\strawberry5.18.1.1- > 32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib > Volume in Laufwerk C: hat keine Bezeichnung. > Volumeseriennummer: 8666-333F > > Verzeichnis von C:\strawberry5.18.1.1- > 32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib > > 26.06.2014 19:20 <DIR> . > 26.06.2014 19:20 <DIR> .. > 26.06.2014 19:20 579 build.cfg > 27.05.2013 01:58 95.232 libgcc_s_sjlj-1.dll > 27.05.2013 01:58 860.160 libstdc++-6.dll > 26.06.2014 19:04 4.546.054 libwxbase30u.a > 26.06.2014 19:04 421.148 libwxbase30u_net.a > 26.06.2014 19:15 141.770 libwxbase30u_xml.a > 26.06.2014 19:00 202.080 libwxexpat.a > 26.06.2014 19:00 147.598 libwxjpeg.a > 26.06.2014 19:14 3.829.006 libwxmsw30u_adv.a > 26.06.2014 19:17 1.209.486 libwxmsw30u_aui.a > 26.06.2014 19:12 11.270.024 libwxmsw30u_core.a > 26.06.2014 19:19 220.466 libwxmsw30u_gl.a > 26.06.2014 19:14 1.774.158 libwxmsw30u_html.a > 26.06.2014 19:14 286.924 libwxmsw30u_media.a > 26.06.2014 19:18 2.027.510 libwxmsw30u_propgrid.a > 26.06.2014 19:17 744.170 libwxmsw30u_ribbon.a > 26.06.2014 19:18 2.943.190 libwxmsw30u_richtext.a > 26.06.2014 19:19 2.420.332 libwxmsw30u_stc.a > 26.06.2014 19:15 726.214 libwxmsw30u_webview.a > 26.06.2014 19:16 1.459.622 libwxmsw30u_xrc.a > 26.06.2014 19:00 229.324 libwxpng.a > 26.06.2014 19:00 80.586 libwxregexu.a > 26.06.2014 19:00 457.672 libwxtiff.a > 26.06.2014 19:00 85.458 libwxzlib.a > 26.06.2014 19:20 <DIR> wx > 26.06.2014 19:04 4.318.770 wxbase30u_gcc_custom.dll > 26.06.2014 19:04 387.638 wxbase30u_net_gcc_custom.dll > 26.06.2014 19:15 350.238 wxbase30u_xml_gcc_custom.dll > 26.06.2014 19:14 3.305.276 wxmsw30u_adv_gcc_custom.dll > 26.06.2014 19:17 1.176.927 wxmsw30u_aui_gcc_custom.dll > 26.06.2014 19:12 11.161.717 wxmsw30u_core_gcc_custom.dll > 26.06.2014 19:19 329.623 wxmsw30u_gl_gcc_custom.dll > 26.06.2014 19:15 1.709.144 wxmsw30u_html_gcc_custom.dll > 26.06.2014 19:14 391.571 wxmsw30u_media_gcc_custom.dll > 26.06.2014 19:18 1.740.233 wxmsw30u_propgrid_gcc_custom.dll > 26.06.2014 19:17 925.681 wxmsw30u_ribbon_gcc_custom.dll > 26.06.2014 19:18 3.022.088 wxmsw30u_richtext_gcc_custom.dll > 26.06.2014 19:19 3.111.484 wxmsw30u_stc_gcc_custom.dll > 26.06.2014 19:15 512.178 wxmsw30u_webview_gcc_custom.dll > 26.06.2014 19:16 2.176.565 wxmsw30u_xrc_gcc_custom.dll > 39 Datei(en), 70.797.896 Bytes > > The code and data is smaller: > > c:\>size C:\strawberry5.18.1.1- > 32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\*.dll > text data bss dec hex filename > 90359 1548 1000 92907 16aeb C:\strawberry5.18.1.1- > 32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\libgcc_s_sjlj- > 1.dll > 826328 30120 3744 860192 d2020 C:\strawberry5.18.1.1- > 32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\libstdc++- > 6.dll > 2877788 16644 22432 2916864 2c8200 C:\strawberry5.18.1.1- > 32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxbase30u_gcc_custom.dll > 143311 11952 5800 161063 27527 C:\strawberry5.18.1.1- > 32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxbase30u_net_gcc_custom.dll > 195618 6572 968 203158 31996 C:\strawberry5.18.1.1- > 32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxbase30u_xml_gcc_custom.dll > 1649814 73740 9704 1733258 1a728a C:\strawberry5.18.1.1- > 32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxmsw30u_adv_gcc_custom.dll > 558741 31920 3688 594349 911ad C:\strawberry5.18.1.1- > 32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxmsw30u_aui_gcc_custom.dll > 6921746 54948 189068 7165762 6d5742 C:\strawberry5.18.1.1- > 32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxmsw30u_core_gcc_custom.dll > 94098 18008 1192 113298 1ba92 C:\strawberry5.18.1.1- > 32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxmsw30u_gl_gcc_custom.dll > 797925 48976 3244 850145 cf8e1 C:\strawberry5.18.1.1- > 32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxmsw30u_html_gcc_custom.dll > 134885 17316 1132 153333 256f5 C:\strawberry5.18.1.1- > 32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxmsw30u_media_gcc_custom.dll > 832472 52488 3752 888712 d8f88 C:\strawberry5.18.1.1- > 32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxmsw30u_propgrid_gcc_custom.dll > 490937 19332 2892 513161 7d489 C:\strawberry5.18.1.1- > 32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxmsw30u_ribbon_gcc_custom.dll > 1701410 56628 10472 1768510 1afc3e C:\strawberry5.18.1.1- > 32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxmsw30u_richtext_gcc_custom.dll > 2433715 30048 7336 2471099 25b4bb C:\strawberry5.18.1.1- > 32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxmsw30u_stc_gcc_custom.dll > 163698 18948 1192 183838 2ce1e C:\strawberry5.18.1.1- > 32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxmsw30u_webview_gcc_custom.dll > 1003033 59820 6792 1069645 10524d C:\strawberry5.18.1.1- > 32\perl\site\lib\Alien\wxWidgets\msw_3_0_0_uni_gcc_3_4\lib\wxmsw30u_xrc_gcc_custom.dll > > > When I create a perl executable with PAR::Packer (using wxpar), the > DLLs are included in the executable and make the executable very big. > The corresponding Linux libraries and the (old) libraries from > http://www.wxperl.co.uk/repository/package.xml which I used with > ActivePerl are much smaller. > > Is it possible to strip the libraries and DLLs, if I don't want to > debug the Wx code? > > Ralf Neubauer
Subject: RE: [rt.cpan.org #99325] DLLs not stripped under Windows
Date: Fri, 3 Nov 2017 17:51:38 +0000
To: "bug-Alien-wxWidgets [...] rt.cpan.org" <bug-Alien-wxWidgets [...] rt.cpan.org>
From: "Neubauer, Ralf" <ralf.neubauer [...] wido.bv.aok.de>
Hi, because the filesizes of our PAR::Packer-packed executables (many different programs in a zip file) i finally came around to implement a-posteriori stripping in a nightly refreshed directory of PPM::Make-generated PPMs. To spare others the effort, here is my Batch-File: setlocal enabledelayedexpansion set TARGET=%1 for /F "usebackq" %%v in (`perl -e "$^V =~ /(\d+)\.(\d+)\.(\d+)/ and print qq{$1.$2}"`) do set PERLREV=%%v for /F %%a in ('perl -e "use Config; print $Config{archname}"') do set PERLARCH=%%a set WORK=%TEMP%\strip-dlls-%PERLARCH%-%PERLREV%-%RANDOM%-%RANDOM% mkdir %WORK% cd /d %WORK% if !CD! neq !WORK! exit /b for %%P in (%TARGET%\Alien-wxWidgets-*.ppd) do ( set BASE=%%~dpnP set PPD=!BASE!.ppd set ARCH=!BASE!.tar.gz set ARCH_STAMP=!ARCH!.timestamp set ARCH_OUT=!BASE!-out.tar.gz set ARCH_BAK=!BASE!-orig.tar.gz set OLD_STAMP=no old file for /F "usebackq tokens=*" %%L in (!ARCH_STAMP!) do set OLD_STAMP=%%L echo OLD_STAMP=_!OLD_STAMP!_ set NEW_STAMP=no new file for %%F in (!ARCH!) do set NEW_STAMP=%%~tzF echo NEW_STAMP=_!NEW_STAMP!_ if !OLD_STAMP! neq !NEW_STAMP! ( call ptar -xzf !ARCH! for /R . %%D in (*.dll) do ( attrib -r %%D strip %%D attrib +r %%D ) call ptar -czCf !ARCH_OUT! blib rem del /S /Q /F blib rem Löscht alle Dateien, aber nur eine Verzeichnisebene rmdir /S /Q blib if exist blib rmdir /S /Q blib if exist blib rmdir /S /Q blib if exist blib rmdir /S /Q blib if exist blib rmdir /S /Q blib if exist blib rmdir /S /Q blib move /Y !ARCH! !ARCH_BAK! move /Y !ARCH_OUT! !ARCH! for %%F in (!ARCH!) do ( rem Vor dem Größerzeichen darf kein Blank sein echo %%~tzF> !ARCH_STAMP! ) ) ) rem Free in-use reference cd \ rmdir %WORK% Ralf