Subject: | VersionInfo package bug |
Date: | Fri, 27 Aug 2010 14:23:10 +0200 |
To: | <bug-Win32-File-VersionInfo [...] rt.cpan.org> |
From: | "Balas, Daniel" <Daniel.Balas [...] knorr-bremse.com> |
Hi,
I'm upgrading from Perl 5.8 to Perl 5.12.1. During the process I had to upgrade my Win32-File-VersionInfo package too.
During this process I have encountered problems:
First I dowloaded Win32-File-VersionInfo-0.03.tar.gz from cpan.org.
Then I have extracted it and ran Makefile.PL.
Then I tried to build it with the following command: mingw32-make. I have mingw 5.1.6.
Then I got an error message:
syntax error at -e line 1, near "'755')
"
Missing right curly or square bracket at -e line 1, at end of line
Execution of -e aborted due to compilation errors.
mingw32-make: *** [pm_to_blib] Error 255
I have found errors in the Makefile, many curly left brackets were doubled and
LD = link had to be coorected to LD = gcc.
After correcting the Makefile by hand I could translate the code. (The corrected Makefile is attahed.)
The next step was mingw32-make install.
When I ran a small test try.pl (attached). I found an other error in Win32::File::VersionInfo :
Can't load 'C:/Perl/site/lib/auto/Win32/File/VersionInfo/VersionInfo.dll' for module Win32::File::VersionInfo: load_file:Invalid access to memory location at C:/Perl/lib/XSLoader.pm line 70.
at C:/Perl/site/lib/Win32/File/VersionInfo.pm line 15
Compilation failed in require at W:\balasd\pp\vi\VersionInfo\try.pl line 1.
BEGIN failed--compilation aborted at W:\balasd\pp\vi\VersionInfo\try.pl line 1.
The error was in line 255: VerLanguageName ( dw[foo], temp, 127 );
If I comment this line and insert: memset(temp,0,sizeof(temp)); than try.pl doesn't throw an error. I attached the modified VersionInfo.xs.
Best regards,
Dániel Balás
This transmission is intended solely for the addressee and contains confidential information.
If you are not the intended recipient, please immediately inform the sender and delete the message and any attachments from your system.
Furthermore, please do not copy the message or disclose the contents to anyone unless agreed otherwise. To the extent permitted by law we shall in no way be liable for any damages, whatever their nature, arising out of transmission failures, viruses, external influence, delays and the like.
Message body not shown because it is not plain text.
Message body is not shown because sender requested not to inline it.
Message body is not shown because sender requested not to inline it.