[Serusers] Problems making acc module with radius enabled

Cameron Beattie kjcsb at orcon.net.nz
Thu Jun 23 20:36:11 CEST 2005


Thanks.

I downloaded and installed radiusclient-ng.

Now I get the following message:
ERROR: load_module: could not open module 
</usr/local/lib/ser/modules/acc.so>: libradiusclient-ng.so.2: cannot open 
shared object file: No such file or directory

I can see the /usr/local/lib/libradius-client-ng.so.2 exists (it's a 
symbolic link).

Any further clues?

Regards

Cameron
----- Original Message ----- 
From: "Greger V. Teigre" <greger at teigre.com>
To: "Cameron Beattie" <ext_news at appsfarm.com>; <serusers at lists.iptel.org>
Sent: Thursday, June 23, 2005 7:16 PM
Subject: Re: [Serusers] Problems making acc module with radius enabled


> HEAD requires radiusclient-ng v 0.5.x, which cannot be found on your 
> system. Install the newest radiusclient and you should be fine (you don't 
> have to remove the old, they can co-exist)
> g-)
> Cameron Beattie wrote:
>> I am trying to enable radius accounting.
>>
>> I have uncommented the following lines in the acc Makefile:
>> DEFS+=-DRAD_ACC -I$(LOCALBASE)/include
>> LIBS=-L$(LOCALBASE)/lib -lradiusclient
>>
>> I then ran the following:
>> make proper include_modules="mysql"
>> make
>> make modules include_modules="mysql"
>> make install include_modules="mysql"
>>
>> But I get the following message when I try to run ser, which I think
>> indicates that radius accounting hasn't compiled properly:
>> parameter <radius_config> not found in module <acc>
>>
>> I noticed the following on the make install, which doesn't look
>> promising. Any ideas would be appreciated:
>> make[1]: Entering directory `/usr/src/sip_router/modules/acc'
>>
>> 
>> c -fPIC -DPIC -g -O9 -funroll-loops  -Wcast-align  -Wall  -minline-all-stringops 
>>  -malign-double -falign-loops -mcpu=athlon      -DNAME='"ser"'
>> -DVERSION='"0.10.99-dev7"' -DARCH='"i386"' -DOS='"linux"' -DCOMPILER='"gcc
>> 3.3"' -D__CPU_i386 -D__OS_linux -DCFG_DIR='"/usr/local/etc/ser/"'
>> -DPKG_MALLOC -DSHM_MEM  -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP
>> -DDISABLE_NAGLE -DDBG_QM_MALLOC  -DFAST_LOCK -DADAPTIVE_WAIT
>> -DADAPTIVE_WAIT_LOOPS=1024  -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD 
>>  -DHAVE_MSG_NOSIGNAL
>> -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DRAD_ACC -I/usr/local/include  
>> -c acc.c -o acc.o
>> acc.c:53:29: radiusclient-ng.h: No such file or directory
>> acc.c:603: error: syntax error before "phrase2code"
>> acc.c:604: warning: return type defaults to `int'
>> acc.c: In function `phrase2code':
>> acc.c:605: error: `UINT4' undeclared (first use in this function)
>> acc.c:605: error: (Each undeclared identifier is reported only once
>> acc.c:605: error: for each function it appears in.)
>> acc.c:605: error: syntax error before "code"
>> acc.c:609: error: `code' undeclared (first use in this function)
>> acc.c: At top level:
>> acc.c:618: error: syntax error before "rad_status"
>> acc.c:619: warning: return type defaults to `int'
>> acc.c: In function `acc_rad_request':
>> acc.c:640: error: `VALUE_PAIR' undeclared (first use in this function)
>> acc.c:641: error: `UINT4' undeclared (first use in this function)
>> acc.c:641: error: syntax error before "av_type"
>> acc.c:655: error: invalid lvalue in assignment
>> acc.c:666: error: `av_type' undeclared (first use in this function)
>> acc.c:667: warning: implicit declaration of function `rc_avpair_add'
>> acc.c:764: warning: implicit declaration of function `rc_acct'
>> acc.c:764: error: `OK_RC' undeclared (first use in this function)
>> acc.c:768: warning: implicit declaration of function `rc_avpair_free'
>> make[1]: *** [acc.o] Error 1
>> make[1]: Leaving directory `/usr/src/sip_router/modules/acc'
>>
>> make[1]: Entering directory `/usr/src/sip_router/modules/radius_acc'
>> make[1]: *** No targets specified and no makefile found.  Stop.
>> make[1]: Leaving directory `/usr/src/sip_router/modules/radius_acc'
>>
>> Regards
>>
>> Cameron
>>
>> _______________________________________________
>> Serusers mailing list
>> serusers at lists.iptel.org
>> http://lists.iptel.org/mailman/listinfo/serusers
>
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
> 




More information about the sr-users mailing list