rlm_perl: Can't load module DBI.so

Коньков Евгений kes-kes at yandex.ru
Sat Dec 19 02:01:41 CET 2009


Здравствуйте, FreeRadius.

 Module: Instantiating kes
  perl kes {
   module = "/usr/local/etc/raddb/kes.pl"
   func_authorize = "authorize"
   func_authenticate = "authenticate"
   func_accounting = "accounting"
   func_preacct = "preacct"
   func_checksimul = "checksimul"
   func_detach = "detach"
   func_xlat = "xlat"
   func_pre_proxy = "pre_proxy"
   func_post_proxy = "post_proxy"
   func_post_auth = "post_auth"
  }
Can't load '/usr/local/lib/perl5/5.10.1/mach/auto/Data/Dumper/Dumper.so' for module Data::Dumper: /usr/local/lib/perl5/5.10.1/mach/auto/Data/Dumper/Dumper.so: Undefined symbol "PL_sv_undef" at /usr/local/lib/perl5/5.10.1/mach/XSLoader.pm line 70.
 at /usr/local/lib/perl5/5.10.1/mach/Data/Dumper.pm line 36
Compilation failed in require at /usr/local/etc/raddb/kes.pl line 6.
BEGIN failed--compilation aborted at /usr/local/etc/raddb/kes.pl line 6.
rlm_perl: perl_parse failed: /usr/local/etc/raddb/kes.pl not found or has syntax errors.
/usr/local/etc/raddb/modules/perl[58]: Instantiation failed for module "kes"
/usr/local/etc/raddb/sites-enabled/default[263]: Failed to find module "kes".
/usr/local/etc/raddb/sites-enabled/default[263]: Failed to parse "kes" entry.
Errors initializing modules

When I commented out use of Data::Dumper in my perl kes module I get:
Can't load '/usr/local/lib/perl5/site_perl/5.10.1/mach/auto/DBI/DBI.so' for module DBI: /usr/local/lib/perl5/site_perl/5.10.1/mach/auto/DBI/DBI.so: Undefined symbol "PL_dowarn" at /usr/local/lib/perl5/5.10.1/mach/DynaLoader.pm line 200.
 at /usr/local/lib/perl5/site_perl/5.10.1/mach/DBI.pm line 263
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.10.1/mach/DBI.pm line 263.
Compilation failed in require at /usr/local/etc/raddb/kes.pl line 9.
BEGIN failed--compilation aborted at /usr/local/etc/raddb/kes.pl line 9.
rlm_perl: perl_parse failed: /usr/local/etc/raddb/kes.pl not found or has syntax errors.
/usr/local/etc/raddb/modules/perl[58]: Instantiation failed for module "kes"
/usr/local/etc/raddb/sites-enabled/default[263]: Failed to find module "kes".
/usr/local/etc/raddb/sites-enabled/default[263]: Failed to parse "kes" entry.
Errors initializing modules

In common scripts those modules works fine without errors:
#!/usr/bin/perl
use Data::Dumper;
my $a= { b => 3 };
print Dumper $a;

That is freeradius do wrong thing loading modules or .. ?
in 2.1.3 there were not errors

-- 
С уважением,
 Коньков                          mailto:kes-kes at yandex.ru




More information about the Freeradius-Users mailing list