[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl
Subject:    mod_perl, compilation issues, cont
From:       André_Warnier_(tomcat/perl) <aw () ice-sa ! com>
Date:       2020-01-16 8:34:14
Message-ID: 6d8547ff-ea71-f551-78c4-23b060a0942b () ice-sa ! com
[Download RAW message or body]

Can anyone tell me what the error below really means ?
(and if possible, give me a clue as to what may be happening ?)

To get possibly more details, I re-ran the compile command after setting PERL_DL_DEBUG in 
the environment (just something I found in Dynaloader.pm). It does give some more detail, 
but I am still stumped..

Full config described below.
D:\develop\06_SVN\AP2lib\trunk\modlib\AUTH\UMA2.pm is my module, which compiles just fine 
on Linux servers with similar software installed (Apache, mod_perl, perl).


C:\>perl -cw D:\develop\06_SVN\AP2lib\trunk\modlib\AUTH\UMA2.pm
DynaLoader.pm loaded (C:/Strawberry/perl/site/lib C:/Strawberry/perl/vendor/lib 
C:/Strawberry/perl/lib, C:\STRAWB~1\c\lib C:\STRAWB~1\c\x86_64-w64-mingw32\lib 
C:\STRAWB~1\c\lib\gcc\x86_64-w64-mingw32\7.1.0)
DynaLoader::bootstrap for ModPerl::Const (auto/ModPerl/Const/Const.xs.dll)
dl_findfile(-LC:/Strawberry/perl/site/lib/auto/ModPerl/Const -LC:/Strawberry/perl/site/lib 
-LC:/Strawberry/perl/vendor/lib -LC:/Strawberry/perl/lib Const)
  checking in C:/Strawberry/perl/site/lib/auto/ModPerl/Const for Const.xs.dll
  checking in C:/Strawberry/perl/site/lib/auto/ModPerl/Const for Const.dll
dl_findfile found: C:/Strawberry/perl/site/lib/auto/ModPerl/Const/Const.dll
Can't load 'C:/Strawberry/perl/site/lib/auto/ModPerl/Const/Const.dll' for module 
ModPerl::Const: load_file:Das angegebene Modul wurde nicht gefunden at 
C:/Strawberry/perl/lib/DynaLoader.pm line 193.
   at C:/Strawberry/perl/site/lib/Apache2/Const.pm line 19.
Compilation failed in require at C:/Strawberry/perl/site/lib/Apache2/Const.pm line 19.
BEGIN failed--compilation aborted at C:/Strawberry/perl/site/lib/Apache2/Const.pm line 19.
Compilation failed in require at D:\develop\06_SVN\AP2lib\trunk\modlib\AUTH\UMA2.pm line 28.
BEGIN failed--compilation aborted at D:\develop\06_SVN\AP2lib\trunk\modlib\AUTH\UMA2.pm 
line 28.

---------------------

OS : Windows 10
Apache httpd 2.4.41
perl (Strawberry) : perl 5, version 26, subversion 2 (v5.26.2) built for 
MSWin32-x64-multi-thread
mod_perl : from Steve Hay's mod_perl-2.0.10-strawberryperl-5.26.1.1-64bit.zip,
as per Apache log :
Apache/2.4.41 (Win64) mod_perl/2.0.10 Perl/v5.26.2 configured

Problem :

C:\>perl -cw D:\develop\06_SVN\AP2lib\trunk\modlib\AUTH\UMA2.pm
Can't load 'C:/Strawberry/perl/site/lib/auto/ModPerl/Const/Const.dll' for module 
ModPerl::Const: load_file:Das angegebene Modul wurde nicht gefunden at 
C:/Strawberry/perl/lib/DynaLoader.pm line 193.
   at C:/Strawberry/perl/site/lib/Apache2/Const.pm line 19.
Compilation failed in require at C:/Strawberry/perl/site/lib/Apache2/Const.pm line 19.
BEGIN failed--compilation aborted at C:/Strawberry/perl/site/lib/Apache2/Const.pm line 19.
Compilation failed in require at D:\develop\06_SVN\AP2lib\trunk\modlib\AUTH\UMA2.pm line 28.
BEGIN failed--compilation aborted at D:\develop\06_SVN\AP2lib\trunk\modlib\AUTH\UMA2.pm 
line 28.

Line 28 of UMA2.pm is :

use Apache2::Const -compile => qw(:common :http :methods :override :proxy :log REDIRECT 
AUTHZ_GRANTED AUTHZ_DENIED AUTHZ_DENIED_NO_USER AUTHZ_GENERAL_ERROR);

(wrapping due to email)

C:/Strawberry/perl/site/lib/Apache2/Const.pm line 19 is :

use ModPerl::Const ();

File C:\strawberry\perl\site\lib\ModPerl\Const.pm exists, but has no "load_file" in it.

The file C:/Strawberry/perl/site/lib/auto/ModPerl/Const/Const.dll exists.

For non-german-speakers, the above message "load_file:Das angegebene Modul wurde nicht 
gefunden" translates as "load_file:the specified module was not found".

The above module "UMA2.pm" compiles without error on a Linux server with similar httpd, 
perl and mod_perl versions.

Any clue or additional questions welcome.
Thanks
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic