Hi All, Would appreciate some help getting rlm_perl working with my perl script, I can successfully run my perl script externally from freeradius, and likewise can run freeradius with a perl script that doesn't involve DBI. I'm using hardy with the perl packaged from intrepid, and a semi-custom build of 2.04 packaged with difsg-5 (from deiban testing). Here's the point it fails on start up, line 11 in scratchlimit.pl is "use DBI;" Not really sure where to head next, I appreciate this may be more of a Perl problem, but as I mentioned the script works just dandy when run by itself. <snip> Mon Sep 15 21:44:26 2008 : Debug: perl { Mon Sep 15 21:44:26 2008 : Debug: module = "/usr/bin/scratchlimit.pl" Mon Sep 15 21:44:26 2008 : Debug: func_authorize = "authorize" Mon Sep 15 21:44:26 2008 : Debug: func_authenticate = "authenticate" Mon Sep 15 21:44:26 2008 : Debug: func_accounting = "accounting" Mon Sep 15 21:44:26 2008 : Debug: func_preacct = "preacct" Mon Sep 15 21:44:26 2008 : Debug: func_checksimul = "checksimul" Mon Sep 15 21:44:26 2008 : Debug: func_detach = "detach" Mon Sep 15 21:44:26 2008 : Debug: func_xlat = "xlat" Mon Sep 15 21:44:26 2008 : Debug: func_pre_proxy = "pre_proxy" Mon Sep 15 21:44:26 2008 : Debug: func_post_proxy = "post_proxy" Mon Sep 15 21:44:26 2008 : Debug: func_post_auth = "post_auth" Mon Sep 15 21:44:26 2008 : Debug: } Can't load '/usr/lib/perl5/auto/DBI/DBI.so' for module DBI: /usr/lib/perl5/auto/DBI/DBI.so: undefined symbol: PL_memory_wrap at /usr/lib/perl/5.10/DynaLoader.pm line 196. at /usr/lib/perl5/DBI.pm line 263 BEGIN failed--compilation aborted at /usr/lib/perl5/DBI.pm line 263. Compilation failed in require at /usr/bin/scratchlimit.pl line 11. BEGIN failed--compilation aborted at /usr/bin/scratchlimit.pl line 11. Mon Sep 15 21:44:26 2008 : Error: rlm_perl: perl_parse failed: /usr/bin/scratchlimit.pl not found or has syntax errors. Mon Sep 15 21:44:26 2008 : Error: /etc/freeradius/radiusd.conf[1577]: Instantiation failed for module "perl" Mon Sep 15 21:44:26 2008 : Error: /etc/freeradius/sites-enabled/default[243]: Failed to find module "perl". Mon Sep 15 21:44:26 2008 : Error: /etc/freeradius/sites-enabled/default[243]: Failed to parse "perl" entry. Mon Sep 15 21:44:26 2008 : Debug: } Mon Sep 15 21:44:26 2008 : Debug: } Mon Sep 15 21:44:26 2008 : Error: Errors initializing modules Cheers Russ.
Russel,
Can't load '/usr/lib/perl5/auto/DBI/DBI.so' for module DBI: /usr/lib/perl5/auto/DBI/DBI.so: undefined symbol: PL_memory_wrap at /usr/lib/perl/5.10/DynaLoader.pm line 196. at >/usr/lib/perl5/DBI.pm line 263 BEGIN failed--compilation aborted at /usr/lib/perl5/DBI.pm line 263. Compilation failed in >require at /usr/bin/scratchlimit.pl line 11. BEGIN failed--compilation aborted at /usr/bin/scratchlimit.pl line 11. Mon
Start freeradius like this. LD_PRELOAD=/usr/lib/libperl.so.5.10 /usr/sbin/freeradius Alan, Maybe this must be a debian related FAQ?? Johan Meiring
Works a treat - thanks! -----Original Message----- From: freeradius-users-bounces+russell=serverworks.co.nz@lists.freeradius.org [mailto:freeradius-users-bounces+russell=serverworks.co.nz@lists.freerad ius.org] On Behalf Of Johan Meiring Sent: Tuesday, 16 September 2008 10:45 a.m. To: 'FreeRadius users mailing list' Subject: RE: rlm_perl + dbi, 2.04 on hardy Russel,
Can't load '/usr/lib/perl5/auto/DBI/DBI.so' for module DBI: /usr/lib/perl5/auto/DBI/DBI.so: undefined symbol: PL_memory_wrap at /usr/lib/perl/5.10/DynaLoader.pm line 196. at >/usr/lib/perl5/DBI.pm line 263 BEGIN failed--compilation aborted at /usr/lib/perl5/DBI.pm line 263. Compilation failed in >require at /usr/bin/scratchlimit.pl line 11. BEGIN failed--compilation aborted at /usr/bin/scratchlimit.pl line 11. Mon
Start freeradius like this. LD_PRELOAD=/usr/lib/libperl.so.5.10 /usr/sbin/freeradius Alan, Maybe this must be a debian related FAQ?? Johan Meiring - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (2)
-
Johan Meiring -
Russell Tester