Skip Menu |

This queue is for tickets about the Win32-LockWorkStation CPAN distribution.

Report information
The Basics
Id: 92113
Status: resolved
Priority: 0/
Queue: Win32-LockWorkStation

People
Owner: Nobody in particular
Requestors: BULKDD [...] cpan.org
Cc:
AdminCc:

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



Subject: #define PERL_NO_GET_CONTEXT
You need a ------------------------ #define PERL_NO_GET_CONTEXT ------------------------ before ------------------------ #include "EXTERN.h" ------------------------ at https://metacpan.org/source/VINSWORLD/Win32-LockWorkStation-0.02-w/LockWorkStation.xs#L1 or else your dll will be very big in KB and slow.
---- Without: VinsWorldcom@C:\Users\VinsWorldcom\tmp\Win32-LockWorkStation-0.02> ls -al blib\arch\auto\Win32\LockWorkStation\LockWorkStation.dll 01/14/2014 10:53 AM 15,360 LockWorkStation.dll ---- With: VinsWorldcom@C:\Users\VinsWorldcom\tmp\Win32-LockWorkStation-0.02> ls -al blib\arch\auto\Win32\LockWorkStation\LockWorkStation.dll 01/14/2014 10:55 AM 15,360 LockWorkStation.dll ---- No difference seen in DLL file sizes. Windows 7 x64 / Strawberry 5.18.1 VinsWorldcom@C:\Users\VinsWorldcom\tmp\Win32-LockWorkStation-0.02> perl -v This is perl 5, version 18, subversion 1 (v5.18.1) built for MSWin32-x64-multi-thread
On Tue Jan 14 10:58:32 2014, VINSWORLD wrote: Show quoted text
> ---- > Without: > > VinsWorldcom@C:\Users\VinsWorldcom\tmp\Win32-LockWorkStation-0.02> ls > -al blib\arch\auto\Win32\LockWorkStation\LockWorkStation.dll > > 01/14/2014 10:53 AM 15,360 LockWorkStation.dll > > ---- > With: > > VinsWorldcom@C:\Users\VinsWorldcom\tmp\Win32-LockWorkStation-0.02> ls > -al blib\arch\auto\Win32\LockWorkStation\LockWorkStation.dll > > 01/14/2014 10:55 AM 15,360 LockWorkStation.dll > > > ---- > No difference seen in DLL file sizes.
Look at "virtual size" in " .text name"/"SECTION HEADER #1" in the before and after. You can also use "objdump -x" to see the same information. If you dont believe me, read http://perldoc.perl.org/perlguts.html#How-do-I-use-all-this-in-extensions?
Subject: w32lwsafter.txt
C:\sources\Win32-LockWorkStation-0.02\blib\arch\auto\Win32\LockWorkStation>dumpb in /headers LockWorkStation.dll Microsoft (R) COFF/PE Dumper Version 7.10.6030 Copyright (C) Microsoft Corporation. All rights reserved. Dump of file LockWorkStation.dll PE signature found File Type: DLL FILE HEADER VALUES 14C machine (x86) 4 number of sections 52D606C8 time date stamp Tue Jan 14 22:55:52 2014 0 file pointer to symbol table 0 number of symbols E0 size of optional header 210E characteristics Executable Line numbers stripped Symbols stripped 32 bit word machine DLL OPTIONAL HEADER VALUES 10B magic # (PE32) 7.10 linker version 600 size of code A00 size of initialized data 0 size of uninitialized data 1201 entry point (10001201) 1000 base of code 2000 base of data 10000000 image base (10000000 to 10004FFF) 1000 section alignment 200 file alignment 4.00 operating system version 0.00 image version 4.00 subsystem version 0 Win32 version 5000 size of image 400 size of headers 0 checksum 2 subsystem (Windows GUI) 0 DLL characteristics 100000 size of stack reserve 1000 size of stack commit 100000 size of heap reserve 1000 size of heap commit 0 loader flags 10 number of directories 2410 [ 89] RVA [size] of Export Directory 21E4 [ 64] RVA [size] of Import Directory 0 [ 0] RVA [size] of Resource Directory 0 [ 0] RVA [size] of Exception Directory 0 [ 0] RVA [size] of Certificates Directory 4000 [ 90] RVA [size] of Base Relocation Directory 2060 [ 1C] RVA [size] of Debug Directory 0 [ 0] RVA [size] of Architecture Directory 0 [ 0] RVA [size] of Global Pointer Directory 0 [ 0] RVA [size] of Thread Storage Directory 2108 [ 40] RVA [size] of Load Configuration Directory 0 [ 0] RVA [size] of Bound Import Directory 2000 [ 58] RVA [size] of Import Address Table Directory 0 [ 0] RVA [size] of Delay Import Directory 0 [ 0] RVA [size] of COM Descriptor Directory 0 [ 0] RVA [size] of Reserved Directory SECTION HEADER #1 .text name 42C virtual size 1000 virtual address (10001000 to 1000142B) 600 size of raw data 400 file pointer to raw data (00000400 to 000009FF) 0 file pointer to relocation table 0 file pointer to line numbers 0 number of relocations 0 number of line numbers 60000020 flags Code Execute Read SECTION HEADER #2 .rdata name 499 virtual size 2000 virtual address (10002000 to 10002498) 600 size of raw data A00 file pointer to raw data (00000A00 to 00000FFF) 0 file pointer to relocation table 0 file pointer to line numbers 0 number of relocations 0 number of line numbers 40000040 flags Initialized Data Read Only Debug Directories Time Type Size RVA Pointer -------- ------ -------- -------- -------- 52D606C8 cv 77 00002150 B50 Format: RSDS, {E297EB56-387B-4 4F5-B792-DFB038F24F5C}, 1, C:\sources\Win32-LockWorkStation-0.02\blib\arch\auto\ Win32\LockWorkStation\LockWorkStation.pdb SECTION HEADER #3 .data name 28 virtual size 3000 virtual address (10003000 to 10003027) 200 size of raw data 1000 file pointer to raw data (00001000 to 000011FF) 0 file pointer to relocation table 0 file pointer to line numbers 0 number of relocations 0 number of line numbers C0000040 flags Initialized Data Read Write SECTION HEADER #4 .reloc name B6 virtual size 4000 virtual address (10004000 to 100040B5) 200 size of raw data 1200 file pointer to raw data (00001200 to 000013FF) 0 file pointer to relocation table 0 file pointer to line numbers 0 number of relocations 0 number of line numbers 42000040 flags Initialized Data Discardable Read Only Summary 1000 .data 1000 .rdata 1000 .reloc 1000 .text C:\sources\Win32-LockWorkStation-0.02\blib\arch\auto\Win32\LockWorkStation>
Subject: w32lwsbefore.txt
C:\sources\Win32-LockWorkStation-0.02\blib\arch\auto\Win32\LockWorkStation>dumpb in /headers LockWorkStation.dll Microsoft (R) COFF/PE Dumper Version 7.10.6030 Copyright (C) Microsoft Corporation. All rights reserved. Dump of file LockWorkStation.dll PE signature found File Type: DLL FILE HEADER VALUES 14C machine (x86) 4 number of sections 52D6059C time date stamp Tue Jan 14 22:50:52 2014 0 file pointer to symbol table 0 number of symbols E0 size of optional header 210E characteristics Executable Line numbers stripped Symbols stripped 32 bit word machine DLL OPTIONAL HEADER VALUES 10B magic # (PE32) 7.10 linker version 600 size of code A00 size of initialized data 0 size of uninitialized data 1261 entry point (10001261) 1000 base of code 2000 base of data 10000000 image base (10000000 to 10004FFF) 1000 section alignment 200 file alignment 4.00 operating system version 0.00 image version 4.00 subsystem version 0 Win32 version 5000 size of image 400 size of headers 0 checksum 2 subsystem (Windows GUI) 0 DLL characteristics 100000 size of stack reserve 1000 size of stack commit 100000 size of heap reserve 1000 size of heap commit 0 loader flags 10 number of directories 2430 [ 89] RVA [size] of Export Directory 21E4 [ 64] RVA [size] of Import Directory 0 [ 0] RVA [size] of Resource Directory 0 [ 0] RVA [size] of Exception Directory 0 [ 0] RVA [size] of Certificates Directory 4000 [ 94] RVA [size] of Base Relocation Directory 2060 [ 1C] RVA [size] of Debug Directory 0 [ 0] RVA [size] of Architecture Directory 0 [ 0] RVA [size] of Global Pointer Directory 0 [ 0] RVA [size] of Thread Storage Directory 2108 [ 40] RVA [size] of Load Configuration Directory 0 [ 0] RVA [size] of Bound Import Directory 2000 [ 5C] RVA [size] of Import Address Table Directory 0 [ 0] RVA [size] of Delay Import Directory 0 [ 0] RVA [size] of COM Descriptor Directory 0 [ 0] RVA [size] of Reserved Directory SECTION HEADER #1 .text name 48C virtual size 1000 virtual address (10001000 to 1000148B) 600 size of raw data 400 file pointer to raw data (00000400 to 000009FF) 0 file pointer to relocation table 0 file pointer to line numbers 0 number of relocations 0 number of line numbers 60000020 flags Code Execute Read SECTION HEADER #2 .rdata name 4B9 virtual size 2000 virtual address (10002000 to 100024B8) 600 size of raw data A00 file pointer to raw data (00000A00 to 00000FFF) 0 file pointer to relocation table 0 file pointer to line numbers 0 number of relocations 0 number of line numbers 40000040 flags Initialized Data Read Only Debug Directories Time Type Size RVA Pointer -------- ------ -------- -------- -------- 52D6059C cv 77 00002150 B50 Format: RSDS, {373A0BE1-CB97-4 C67-AF2B-9710EADD4C17}, 1, C:\sources\Win32-LockWorkStation-0.02\blib\arch\auto\ Win32\LockWorkStation\LockWorkStation.pdb SECTION HEADER #3 .data name 28 virtual size 3000 virtual address (10003000 to 10003027) 200 size of raw data 1000 file pointer to raw data (00001000 to 000011FF) 0 file pointer to relocation table 0 file pointer to line numbers 0 number of relocations 0 number of line numbers C0000040 flags Initialized Data Read Write SECTION HEADER #4 .reloc name BC virtual size 4000 virtual address (10004000 to 100040BB) 200 size of raw data 1200 file pointer to raw data (00001200 to 000013FF) 0 file pointer to relocation table 0 file pointer to line numbers 0 number of relocations 0 number of line numbers 42000040 flags Initialized Data Discardable Read Only Summary 1000 .data 1000 .rdata 1000 .reloc 1000 .text C:\sources\Win32-LockWorkStation-0.02\blib\arch\auto\Win32\LockWorkStation>
Please test this 0.02_1 version. If this is as you expect, please let me know and I'll update CPAN with it as version 0.03.
Subject: Win32-LockWorkStation-0.02_1.tar.gz

Message body not shown because it is not plain text.

Fix included in version 0.03 on CPAN