Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[rt.cpan.org #129685] Win32::API::Type and Win32::API::Struct don't compile (undeclared barewords)

1 view
Skip to first unread message

ikegami via RT

unread,
May 26, 2019, 6:30:03 PM5/26/19
to libw...@perl.org
Sun May 26 18:19:45 2019: Request 129685 was acted upon.
Transaction: Ticket created by ikegami
Queue: Win32-API
Subject: Win32::API::Type and Win32::API::Struct don't compile (undeclared
barewords)
Broken in: (no value)
Severity: (no value)
Owner: Nobody
Requestors: IKE...@cpan.org
Status: new
Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=129685 >


C:\Users\ikegami>perl -e"use Win32::API; CORE::say Win32::API->VERSION"
0.84

C:\Users\ikegami>perl -e"use Win32::API::Type;"
Bareword "PTRSIZE" not allowed while "strict subs" in use at C:/progs/sp5280-x64/perl/vendor/lib/Win32/API/Type.pm line 28.
BEGIN not safe after errors--compilation aborted at C:/progs/sp5280-x64/perl/vendor/lib/Win32/API/Type.pm line 30.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

C:\Users\ikegami>perl -e"use Win32::API::Struct;"
Bareword "DEBUGCONST" not allowed while "strict subs" in use at C:/progs/sp5280-x64/perl/vendor/lib/Win32/API/Struct.pm line 131.
Bareword "DEBUGCONST" not allowed while "strict subs" in use at C:/progs/sp5280-x64/perl/vendor/lib/Win32/API/Struct.pm line 142.
Bareword "DEBUGCONST" not allowed while "strict subs" in use at C:/progs/sp5280-x64/perl/vendor/lib/Win32/API/Struct.pm line 206.
Bareword "DEBUGCONST" not allowed while "strict subs" in use at C:/progs/sp5280-x64/perl/vendor/lib/Win32/API/Struct.pm line 222.
Bareword "DEBUGCONST" not allowed while "strict subs" in use at C:/progs/sp5280-x64/perl/vendor/lib/Win32/API/Struct.pm line 281.
Bareword "DEBUGCONST" not allowed while "strict subs" in use at C:/progs/sp5280-x64/perl/vendor/lib/Win32/API/Struct.pm line 296.
Bareword "DEBUGCONST" not allowed while "strict subs" in use at C:/progs/sp5280-x64/perl/vendor/lib/Win32/API/Struct.pm line 326.
Bareword "DEBUGCONST" not allowed while "strict subs" in use at C:/progs/sp5280-x64/perl/vendor/lib/Win32/API/Struct.pm line 338.
BEGIN not safe after errors--compilation aborted at C:/progs/sp5280-x64/perl/vendor/lib/Win32/API/Struct.pm line 343.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

ikegami via RT

unread,
May 26, 2019, 6:30:04 PM5/26/19
to libw...@perl.org
Sun May 26 18:23:52 2019: Request 129685 was acted upon.
Transaction: Correspondence added by ikegami
Queue: Win32-API
Subject: Win32::API::Type and Win32::API::Struct don't compile (undeclared barewords)
Broken in: (no value)
Severity: (no value)
Owner: Nobody
Requestors: IKE...@cpan.org
Status: new
Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=129685 >


Ah! They work if you Win32::API is already loaded
0 new messages