[OpenSIPS-Users] Opensips + FreeRadius + CDRTool + Slackware
Jeff Pyle
jpyle at fidelityvoice.com
Fri Dec 19 15:33:13 CET 2008
Gustavo,
Merry Christmas!
The radiusclient-ng.h file comes from the radiusclient-ng package, not the
radiusclient package. OpenSIPS requires radiusclient-ng. Freeradius-client
is not used. You can get radiusclient-ng at the following link:
http://download.berlios.de/radiusclient-ng/radiusclient-ng-0.5.6.tar.gz
- Jeff
On 12/19/08 8:53 AM, "Gustavo B. Schenkel" <gustavo.schenkel at gmail.com>
wrote:
> Hi to all,
> Merry Christmas,
>
> guys, this is my first message, and i am in trouble,
> i am using Slackware 12.2, Opensips 1.4.3, FreeRadius-Server 2.1.3,
> FreeRadius-Client 1.1.6, CDRTool 6.7.0 and MySQL 5.0.27.
> I compiled the opensips from source, and it is working with this additional
> modules:
> "db_mysql jabber ldap presence presence_xml xmpp"
> The freeradius i compiled from source too. I want use the OpenSIPS together
> with
> FreeRadius(accounting), CDRTool(billing) and MySQL(authentication).
>
> The problem:
> I need compile the modules acc with radius support, but it is cause error in
> compilation.
>
>
> Compiling acc.c
> In file included from acc_extra.h:69,
> from acc.c:54:
> ../../radius.h:38:30: error: radiusclient-ng.h: No such file or directory
> acc.c: In function 'init_acc_rad':
> acc.c:458: warning: implicit declaration of function 'rc_read_config'
> acc.c:458: warning: assignment makes pointer from integer without a cast
> acc.c:463: warning: implicit declaration of function 'rc_read_dictionary'
> acc.c:463: warning: implicit declaration of function 'rc_conf_str'
> acc.c:468: error: 'DICT_ATTR' undeclared (first use in this function)
> acc.c:468: error: (Each undeclared identifier is reported only once
> acc.c:468: error: for each function it appears in.)
> acc.c:468: error: 'da' undeclared (first use in this function)
> acc.c:468: error: 'DICT_VALUE' undeclared (first use in this function)
> acc.c:468: error: 'dv' undeclared (first use in this function)
> acc.c:468: warning: implicit declaration of function 'rc_dict_findattr'
> acc.c:468: warning: implicit declaration of function 'rc_dict_findval'
> acc.c: In function 'acc_rad_request':
> acc.c:499: error: 'VALUE_PAIR' undeclared (first use in this function)
> acc.c:504: error: lvalue required as left operand of assignment
> acc.c:511: warning: implicit declaration of function 'rc_avpair_add'
> acc.c:545: warning: implicit declaration of function 'rc_acct'
> acc.c:545: error: 'OK_RC' undeclared (first use in this function)
> acc.c:549: warning: implicit declaration of function 'rc_avpair_free'
> make[1]: *** [acc.o] Error 1
> make[1]: Leaving directory `/tmp/SBo/opensips-1.4.3-tls/modules/acc'
> make: *** [modules] Error 2
>
>
> i edit the radius.h, and soo the location of this file, but i don't have this
> file "radiusclient-ng.h" in my pc.
> I go back to the freeRadius-Client source/binary, search for this file, and i
> don't find him.
>
> I don't know if opensips are configured with the last release of freeRadius.
> What i did, i edit again the radius.h and change the "radiusclient-ng.h" to
> "freeradius-client.h", and i altered too the default location of the conf.
> file to
> "/etc/radiusclient/radiusclient.conf"
>
>
> Compiling again show this messages.
>
> Compiling acc.c
> gcc -shared -Wl,-O2 -Wl,-E acc.o acc_extra.o acc_logic.o acc_mod.o
> diam_avp.o diam_message.o diam_tcp.o -L/usr/lib -lradiusclient-ng -o acc.so
> /usr/lib/gcc/i486-slackware-linux/4.2.4/../../../../i486-slackware-linux/bin/l
> d: cannot find -lradiusclient-ng
> collect2: ld returned 1 exit status
> make[1]: *** [acc.so] Error 1
> make[1]: Leaving directory `/tmp/SBo/opensips-1.4.3-tls/modules/acc'
> make: *** [modules] Error 2
>
>
>
> I don't know what i do next.
>
> Anyone show me a signal.
>
>
> PS: Excuse me about my poor english.
>
>
> -------------------------------------------------------------------
> Schenkel, Gustavo Brondani
> I.T. Professional
> Espocomp - Engenharia de Computação Ltda.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20081219/5a3fdf1d/attachment-0001.htm
More information about the Users
mailing list