Skip Menu |

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

Report information
The Basics
Id: 31702
Status: resolved
Worked: 1 hour (60 min)
Priority: 0/
Queue: Win32-API

People
Owner: cosimo [...] cpan.org
Requestors: bunk [...] iat.uni-leipzig.de
Cc:
AdminCc:

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



Subject: make test fails on Cygwin: Win32.pm missing and API_test.dll cannot be loaded
Win32::API should list 'Win32' in the 'requires' section of META.yml. Since version 0.27 of libwin32, the 'Win32' module is not included in libwin32 anymore, see http://search.cpan.org/src/JDB/libwin32-0.27/Changes Having done 'cpan Win32' to install that missing dependency, the tests of Win32::API now fail when they try to load 'API_test.dll'. The loading of that dll is to be achieved by a perl call to Win32::LoadLibrary(), which is just an XS wrapper for LoadLibraryA() in kernel32.dll. I don't know why it fails, unfortunately.
Subject: make_test.log
Download make_test.log
application/octet-stream 3.1k

Message body not shown because it is not plain text.

From: bunk [...] iat.uni-leipzig.de
Show quoted text
> Having done 'cpan Win32' to install that missing dependency, the tests > of Win32::API now fail when they try to load 'API_test.dll'. The > loading of that dll is to be achieved by a perl call to > Win32::LoadLibrary(), which is just an XS wrapper for LoadLibraryA() in > kernel32.dll. I don't know why it fails, unfortunately.
Sorry to update myself so soon, showing that I reported the bug too soon... but I'm happy to have it solved. API_test.dll has to have the executable bit turned on, otherwise it won't load.
From: cosimo [...] cpan.org
On Mer. 19 Dic. 2007 09:07:36, micha137 wrote: Show quoted text
> > Having done 'cpan Win32' to install that missing dependency, the
tests Show quoted text
> > of Win32::API now fail when they try to load 'API_test.dll'. The > > loading of that dll is to be achieved by a perl call to > > Win32::LoadLibrary(), which is just an XS wrapper for LoadLibraryA
() in Show quoted text
> > kernel32.dll. I don't know why it fails, unfortunately.
> > Sorry to update myself so soon, showing that I reported the bug too > soon... but I'm happy to have it solved. > > API_test.dll has to have the executable bit turned on, otherwise it > won't load.
So, can we consider this one closed? -- Cosimo
Subject: AW: [rt.cpan.org #31702] make test fails on Cygwin: Win32.pm missing and API_test.dll cannot be loaded
Date: Thu, 20 Dec 2007 11:33:53 +0100
To: <bug-Win32-API [...] rt.cpan.org>
From: "Michael Bunk" <bunk [...] iat.uni-leipzig.de>
Show quoted text
> So, can we consider this one closed?
Solved, yes, closed only when you released a fixed 0.48 :) Best regards, Michael
Download smime.p7s
application/x-pkcs7-signature 4k

Message body not shown because it is not plain text.

On Gio. 20 Dic. 2007 05:34:25, micha137 wrote: Show quoted text
> > So, can we consider this one closed?
> > Solved, yes, closed only when you released a fixed 0.48 :)
Sorry Michael, but how am I supposed to change the +x bit if I'm on a Windows machine? I tried the chmod.exe utility, but does not seem to do what you want... Are you on an NTFS or FAT volume?
Subject: AW: [rt.cpan.org #31702] make test fails on Cygwin: Win32.pm missing and API_test.dll cannot be loaded
Date: Thu, 21 Feb 2008 10:13:49 +0100
To: <bug-Win32-API [...] rt.cpan.org>
From: "Michael Bunk" <bunk [...] iat.uni-leipzig.de>
Hello Cosimo, maybe you cannot reproduce the issue, because you use ActiveState Perl (or some other Win32 Perl, which I don't know) and not Cygwin. The chmod I mean is from Cygwin. Cygwin can support permissions properly only on NTFS volumes and with the (default) Cygwin setting "ntsec", otherwise it just makes up permissions that work most of the time. But I think the file system type is not the cause of the issue. It is just that Cygwin needs its own quirks. Best regards, Michael Show quoted text
-----Ursprüngliche Nachricht----- Von: Cosimo Streppone via RT [mailto:bug-Win32-API@rt.cpan.org] Gesendet: Mittwoch, 20. Februar 2008 22:55 An: bunk@iat.uni-leipzig.de Betreff: [rt.cpan.org #31702] make test fails on Cygwin: Win32.pm missing and API_test.dll cannot be loaded <URL: http://rt.cpan.org/Ticket/Display.html?id=31702 > On Gio. 20 Dic. 2007 05:34:25, micha137 wrote:
> > So, can we consider this one closed?
> > Solved, yes, closed only when you released a fixed 0.48 :)
Sorry Michael, but how am I supposed to change the +x bit if I'm on a Windows machine? I tried the chmod.exe utility, but does not seem to do what you want... Are you on an NTFS or FAT volume?
From: RURBAN [...] cpan.org
Please add this to your Makefile.PL: sub MY::depend { return "" unless $^O eq 'cygwin'; return "\ntest_dynamic :: \n\t\$(CHMOD) \$(PERM_RWX) API_test.dll"; } This will always chmod +x the dll on make test on cygwin only. -- Reini Urban
From: cosimo [...] cpan.org
On Ven. 22 Feb. 2008 14:07:39, RURBAN wrote: Show quoted text
> Please add this to your Makefile.PL: > > sub MY::depend > { > return "" unless $^O eq 'cygwin'; > return "\ntest_dynamic :: \n\t\$(CHMOD) \$(PERM_RWX) API_test.dll"; > } > > This will always chmod +x the dll on make test on cygwin only.
Thank you for this fix. You are really brilliant, as always. :-) I have already added this to Makefile.PL and will release an updated version soon.
Should be fixed in 0.50, soon on CPAN. Please let me know if it works for you.
Subject: AW: [rt.cpan.org #31702] Resolved: make test fails on Cygwin: Win32.pm missing and API_test.dll cannot be loaded
Date: Tue, 26 Feb 2008 10:59:24 +0100
To: <bug-Win32-API [...] rt.cpan.org>
From: "Michael Bunk" <bunk [...] iat.uni-leipzig.de>
It works now, but only when Win32.pm is available. It is still not listed as dependency, but it better would, because Win32.pm does not come with Cygwin. Show quoted text
-----Ursprüngliche Nachricht----- Von: Cosimo Streppone via RT [mailto:bug-Win32-API@rt.cpan.org] Gesendet: Montag, 25. Februar 2008 23:07 An: bunk@iat.uni-leipzig.de Betreff: [rt.cpan.org #31702] Resolved: make test fails on Cygwin: Win32.pm missing and API_test.dll cannot be loaded <URL: http://rt.cpan.org/Ticket/Display.html?id=31702 > According to our records, your request has been resolved. If you have any further questions or concerns, please respond to this message.