I am trying to switch from ActivePerl 5.10.1 build 1008 to strawberry perl 5.10.1 portable edition. I am running a perl script using the module FCGI, trying to access an Oracle database via DBD::ODBC and get the following error message:
ERROR: 'Can't load 'C:/Perl/perl/site/lib/auto/FCGI/FCGI.dll' for modu
+le FCGI: load_file: Invalid access to memory location at C:/Perl/perl
+/lib/DynaLoader.pm line 200.
The error does not show up when I use DBD::Oracle or when I use ActivePerl (no matter whether I use DBD::ODBC or DBD::Oracle). I analysed the script with Dependency Walker (profiling the perl process) to see where the FCGI.DLL gets loaded in memory (0x62EC0000 for DBD::Oracle, 0x06370000 for DBD::ODBC). The ImageBase of FCGI.DLL is 0x62EC0000, so obviously strawberry-perl has a problem if a dll is not loaded where the dll wants to be loaded (which may happen if another dll comes first at that special address). This seems to be a bug of the used mingw-toolchain (see bug 3322937 of mingw-bugtracker at sourceforge). I tried also with strawberry-perl 5.12 (newer version of mingw), same problem.
Now my questions are:
- as strawberry-perl itself and all of the modules are compiled with mingw, is it safe to use strawberry-perl at all? I fear that this problem could happen again with any other dll?
- how can I fix FCGI.DLL? I know that for a similar cygwin problem, there is /bin/rebaseall, is there something similar for mingw?
thanks for any advice
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||