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