[Serusers] radius - compilation errors

Maxim Sobolev sobomax at portaone.com
Wed Feb 25 22:29:35 CET 2004


Looks like you are trying to compile 0.8.12 with radiusclient version 
0.4.0 or higher. Due to recent API changes in radiusclient this is not 
supported, you should either take radiusclient 0.3.x or cvs version of ser.

-Maxim

Dawid Mielnik wrote:

> Hi,
> 
> I'm trying to compile ser with suport for radius accounting. When I
> uncomment:
> 
> DEFS+=-DRAD_ACC -I$(LOCALBASE)/include
> LIBS=-L$(LOCALBASE)/lib -lradiusclient
> 
> in acc modle Makefile and remove auth_radius, group_radius, uri_radius from
> exclude modules list in main Makefile I get compilation errors when
> compiling ser. Am I missing something ? Im using 0.8.12 stable CVS branch on
> red hat 9.
> 
> Some of the errors below. Any help apreciated.
> 
> Dave
> 
> from make all:
> 
> make[1]: Entering directory
> `/root/ser/nathelpercvs/sip_router/modules/uri_radius'
> ../../Makefile.rules:77: checks.d: No such file or directory
> ../../Makefile.rules:77: urirad_mod.d: No such file or directory
> make[1]: Leaving directory
> `/root/ser/nathelpercvs/sip_router/modules/uri_radius'
> make[1]: Entering directory
> `/root/ser/nathelpercvs/sip_router/modules/uri_radius'
> gcc -fPIC -DPIC -g -O9 -funroll-loops  -Wcast-align  -Wall  -minline-all-str
> ingops -malign-double -falign-loops -mcpu=athlon      -DNAME='"ser"' -DVERSI
> ON='"0.8.12-tcp_nonb"' -DARCH='"i386"' -DOS='"linux"' -DCOMPILER='"gcc
> 3.2"' -D__CPU_i386 -D__OS_linux -DCFG_DIR='"/usr/local/etc/ser/"' -DPKG_MALL
> OC -DSHM_MEM  -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_TCP -DDISABLE_NAGLE 
> -DF_MALLOC  -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024  -DHAVE_G
> ETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHA
> VE_MSGHDR_MSG_CONTROL -c checks.c -o checks.o
> checks.c: In function `radius_does_uri_exist':
> checks.c:77: warning: passing arg 1 of `rc_avpair_add' from incompatible
> pointer type
> checks.c:77: warning: passing arg 2 of `rc_avpair_add' makes pointer from
> integer without a cast
> checks.c:77: warning: passing arg 3 of `rc_avpair_add' makes integer from
> pointer without a cast
> checks.c:77: too few arguments to function `rc_avpair_add'
> checks.c:85: warning: passing arg 1 of `rc_avpair_add' from incompatible
> pointer type
> checks.c:85: warning: passing arg 2 of `rc_avpair_add' makes pointer from
> integer without a cast
> checks.c:85: warning: passing arg 3 of `rc_avpair_add' makes integer from
> pointer without a cast
> checks.c:85: too few arguments to function `rc_avpair_add'
> checks.c:92: warning: passing arg 2 of `rc_auth' makes integer from pointer
> without a cast
> checks.c:92: warning: passing arg 3 of `rc_auth' from incompatible pointer
> type
> checks.c:92: warning: passing arg 4 of `rc_auth' from incompatible pointer
> type
> checks.c:92: too few arguments to function `rc_auth'
> make[1]: *** [checks.o] Error 1
> make[1]: Leaving directory
> `/root/ser/nathelpercvs/sip_router/modules/uri_radius'
> 
> from make install:
> 
> ERROR: module modules/acc/acc.so not compiled
> ERROR: module modules/auth_radius/auth_radius.so not compiled
> ERROR: module modules/group_radius/group_radius.so not compiled
> ERROR: module modules/sip_router/sip_router.so not compiled
> ERROR: module modules/uri_radius/uri_radius.so not compiled
> touch           /usr/local/share/doc/ser//INSTALL
> install  -m 644 INSTALL /usr/local/share/doc/ser/
> 
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
> 
> 
> 





More information about the sr-users mailing list