[Serusers] Problems Compiling SER Radius auth and acc I AMDESPERATE!

Ashutosh Kumar ashutoshk at chetu.com
Tue Aug 16 13:02:54 CEST 2005


Hi,

     It seems surely that you are using an incompatible version of
radiusclient. The pointer conversion errors are occurring because the
functions have differ from radiusclient library to radiusclient-ng library,
and radius In case to remove any doubts, install radiusclient-ng . I was
facing the same problem and I got it fixed by doing the same.

Additionally, you may try removing previous installation directories of SER
which you might have installed earlier, as well as also removing previous
radiusclient installation.

 

Regards,

Ashutosh

 

  _____  

From: serusers-bounces at iptel.org [mailto:serusers-bounces at lists.iptel.org] On
Behalf Of Jean FX
Sent: Tuesday, August 16, 2005 12:40 PM
To: serusers at lists.iptel.org
Subject: [Serusers] Problems Compiling SER Radius auth and acc I
AMDESPERATE!

 

To which version of Radius Client and Ser does the radius how-to apply?

I have tried to follow it on RedHat9/ Free Radius Server 0.9.1/ Radius
Client radiusclient-ng-0.5.1.tar.gz or radiusclient-ng-0.5.1.tar.gz or
radiusclient-0.3.2.tar.gz with no success.

- I installed and tested freeradius 0.9.1 with success
- I installed and tested all the radius clients with no errors
- I commented out the exclude auth_radius group_radius uri_radius in the
Makefile, and uncommented
 
DEFS+=-DRAD_ACC -I$(LOCALBASE)/include
LIBS=-L$(LOCALBASE)/lib -lradiusclient

in modules/acc/Makefile

However, when compiling SER,  "make all" seems to not make the 3 above
mentioned modules. I have tried on SER 0.8.14 and SER 0.9.0 This is what it
says:

checks.c: In function `radius_does_uri_exist':
checks.c:77: warning: passing arg 2 of `rc_avpair_add' makes integer from
pointer without a cast
checks.c:77: warning: passing arg 3 of `rc_avpair_add' makes pointer from
integer without a cast
checks.c:77: warning: passing arg 4 of `rc_avpair_add' makes integer from
pointer without a cast
checks.c:77: too many arguments to function `rc_avpair_add'
checks.c:85: warning: passing arg 2 of `rc_avpair_add' makes integer from
pointer without a cast
checks.c:85: warning: passing arg 3 of `rc_avpair_add' makes pointer from
integer without a cast
checks.c:85: warning: passing arg 4 of `rc_avpair_add' makes integer from
pointer without a cast
checks.c:85: too many arguments to function `rc_avpair_add'
checks.c:92: warning: passing arg 1 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 many arguments to function `rc_auth'
make[1]: *** [checks.o] Error 1
make[1]: Leaving directory `/usr/local/src/ser-0.8.14/modules/uri_radius'
.....
roup.c: In function `radius_is_user_in':
group.c:194: warning: passing arg 2 of `rc_avpair_add' makes integer from
pointer without a cast
group.c:194: warning: passing arg 3 of `rc_avpair_add' makes pointer from
integer without a cast
group.c:194: warning: passing arg 4 of `rc_avpair_add' makes integer from
pointer without a cast
group.c:194: too many arguments to function `rc_avpair_add'
group.c:203: warning: passing arg 2 of `rc_avpair_add' makes integer from
pointer without a cast
group.c:203: warning: passing arg 3 of `rc_avpair_add' makes pointer from
integer without a cast
group.c:203: warning: passing arg 4 of `rc_avpair_add' makes integer from
pointer without a cast
group.c:203: too many arguments to function `rc_avpair_add'
group.c:209: warning: passing arg 2 of `rc_avpair_add' makes integer from
pointer without a cast
group.c:209: warning: passing arg 3 of `rc_avpair_add' makes pointer from
integer without a cast
group.c:209: warning: passing arg 4 of `rc_avpair_add' makes integer from
pointer without a cast
group.c:209: too many arguments to function `rc_avpair_add'
group.c:215: warning: passing arg 1 of `rc_auth' makes integer from pointer
without a cast
group.c:215: warning: passing arg 3 of `rc_auth' from incompatible pointer
type
group.c:215: warning: passing arg 4 of `rc_auth' from incompatible pointer
type
group.c:215: too many arguments to function `rc_auth'
make[1]: *** [group.o] Error 1
make[1]: Leaving directory `/usr/local/src/ser-0.8.14/modules/group_radius'
..........
E_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -I/usr/local/include -c
authrad_mod.c -o authrad_mod.o
authrad_mod.c: In function `mod_init':
authrad_mod.c:111: `DICT_VENDOR' undeclared (first use in this function)
authrad_mod.c:111: (Each undeclared identifier is reported only once
authrad_mod.c:111: for each function it appears in.)
authrad_mod.c:111: `vend' undeclared (first use in this function)
authrad_mod.c:135: warning: assignment makes pointer from integer without a
cast
authrad_mod.c:140: too many arguments to function `rc_conf_str'
authrad_mod.c:140: too many arguments to function `rc_read_dictionary'
authrad_mod.c:145: warning: implicit declaration of function
`rc_dict_findvend'
authrad_mod.c:163: too many arguments to function `rc_dict_findattr'
authrad_mod.c:163: too many arguments to function `rc_dict_findval'
make[1]: *** [authrad_mod.o] Error 1
make[1]: Leaving directory `/usr/local/src/ser-0.8.14/modules/auth_radius'

After that, Ser installs but with this message:

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/uri_radius/uri_radius.so not compiled


Any help? I am not a programmer!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20050816/9d9720ea/attachment.htm>


More information about the sr-users mailing list