Perl problem When restarting FreeRadius Deamon after adding some perl module

Ram Akuka ramakuka at gmail.com
Thu Dec 27 09:37:49 CET 2007


Hi,
i trying to configure mac-address authentication system with FreeRadius 
and FreeNAC.
after installing the FreeRadius and FreeNAC (ubuntu 7.10) i added the 
following to the Radius configuration:

modules:

perl check_mac {
       module = "/opt/nac/bin/rad2vmps"
}
authorize:

# Enable MAC lookup via VMPS: collect request data from radius
check_mac
authenticate:

Auth-Type MAC-Auth-Bypass {
       check_mac
}

post-auth

# Enable MAC lookup via VMPS: query vmps and assign vlan or deny
check_mac


when trying to start the radius server i get the following error:
# /etc/init.d/freeradius  start
* Starting FreeRADIUS daemon 
freeradius                                                                                                                    
Thu Dec 27 10:28:34 2007 : Info: Starting - reading configuration files ...
/usr/sbin/freeradius: symbol lookup error: 
/usr/lib/perl/5.8/auto/Fcntl/Fcntl.so: undefined symbol: Perl_Tstack_sp_ptr
                                                                                                                                                    
[ OK ]
when trying to run the rad2vmps script independently is working fine,

heres some details :

# freeradius -version
freeradius: FreeRADIUS Version 1.1.6, for host i486-pc-linux-gnu, built 
on Jun  8 2007 at 17:17:46
Copyright (C) 2000-2007 The FreeRADIUS server project.

perl -V
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
 Platform:
   osname=linux, osvers=2.6.15.7, archname=i486-linux-gnu-thread-multi
   uname='linux terranova 2.6.15.7 #1 smp thu jul 12 14:27:56 utc 2007 
i686 gnulinux '
   config_args='-Dusethreads -Duselargefiles -Dccflags=-DDEBIAN 
-Dcccdlflags=-fPIC -Darchname=i486-linux-gnu -Dprefix=/usr 
-Dprivlib=/usr/share/perl/5.8 -Darchlib=/usr/lib/perl/5.8 
-Dvendorprefix=/usr -Dvendorlib=/usr/share/perl5 
-Dvendorarch=/usr/lib/perl5 -Dsiteprefix=/usr/local 
-Dsitelib=/usr/local/share/perl/5.8.8 
-Dsitearch=/usr/local/lib/perl/5.8.8 -Dman1dir=/usr/share/man/man1 
-Dman3dir=/usr/share/man/man3 -Dsiteman1dir=/usr/local/man/man1 
-Dsiteman3dir=/usr/local/man/man3 -Dman1ext=1 -Dman3ext=3perl 
-Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh -Uusesfio -Uusenm 
-Duseshrplib -Dlibperl=libperl.so.5.8.8 -Dd_dosuid -des'
   hint=recommended, useposix=true, d_sigaction=define
   usethreads=define use5005threads=undef useithreads=define 
usemultiplicity=define
   useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
   use64bitint=undef use64bitall=undef uselongdouble=undef
   usemymalloc=n, bincompat5005=undef
 Compiler:
   cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS 
-DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
   optimize='-O2',
   cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN 
-fno-strict-aliasing -pipe -I/usr/local/include'
   ccversion='', gccversion='4.1.3 20070929 (prerelease) (Ubuntu 
4.1.2-16ubuntu2)', gccosandvers=''
   intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
   d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
   ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', 
lseeksize=8
   alignbytes=4, prototype=define
 Linker and Libraries:
   ld='cc', ldflags =' -L/usr/local/lib'
   libpth=/usr/local/lib /lib /usr/lib
   libs=-lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt
   perllibs=-ldl -lm -lpthread -lc -lcrypt
   libc=/lib/libc-2.6.1.so, so=so, useshrplib=true, 
libperl=libperl.so.5.8.8
   gnulibc_version='2.6.1'
 Dynamic Linking:
   dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
   cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
 Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT
                       PERL_MALLOC_WRAP THREADS_HAVE_PIDS USE_ITHREADS
                       USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API
 Built under linux
 Compiled at Sep 29 2007 05:57:38
 @INC:
   /etc/perl
   /usr/local/lib/perl/5.8.8
   /usr/local/share/perl/5.8.8
   /usr/lib/perl5
   /usr/share/perl5
   /usr/lib/perl/5.8
   /usr/share/perl/5.8
  /usr/local/lib/site_perl


uname  -a
Linux XXXXXX 2.6.22-14-generic #1 SMP Tue Dec 18 08:02:57 UTC 2007 i686 
GNU/Linx


any ideas how can i fix this ?


thanks in advance


-- 
Ram



More information about the Freeradius-Users mailing list