Hi to all,<br>Merry Christmas,<br><br>guys, this is my first message, and i am in trouble,<br>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.<br>
I compiled the opensips from source, and it is working with this additional modules: <br>"db_mysql jabber ldap presence presence_xml xmpp"<br>The freeradius i compiled from source too. I want use the OpenSIPS together with<br>
FreeRadius(accounting), CDRTool(billing) and MySQL(authentication).<br><br>The problem:<br>I need compile the modules acc with radius support, but it is cause error in compilation.<br><br><br>Compiling acc.c<br>
In file included from acc_extra.h:69,<br> from acc.c:54:<br><b>../../radius.h:38:30: error: radiusclient-ng.h: No such file or directory</b><br>acc.c: In function 'init_acc_rad':<br>acc.c:458: warning: implicit declaration of function 'rc_read_config'<br>
acc.c:458: warning: assignment makes pointer from integer without a cast<br>acc.c:463: warning: implicit declaration of function 'rc_read_dictionary'<br>acc.c:463: warning: implicit declaration of function 'rc_conf_str'<br>
acc.c:468: error: 'DICT_ATTR' undeclared (first use in this function)<br>acc.c:468: error: (Each undeclared identifier is reported only once<br>acc.c:468: error: for each function it appears in.)<br>acc.c:468: error: 'da' undeclared (first use in this function)<br>
acc.c:468: error: 'DICT_VALUE' undeclared (first use in this function)<br>acc.c:468: error: 'dv' undeclared (first use in this function)<br>acc.c:468: warning: implicit declaration of function 'rc_dict_findattr'<br>
acc.c:468: warning: implicit declaration of function 'rc_dict_findval'<br>acc.c: In function 'acc_rad_request':<br>acc.c:499: error: 'VALUE_PAIR' undeclared (first use in this function)<br>acc.c:504: error: lvalue required as left operand of assignment<br>
acc.c:511: warning: implicit declaration of function 'rc_avpair_add'<br>acc.c:545: warning: implicit declaration of function 'rc_acct'<br>acc.c:545: error: 'OK_RC' undeclared (first use in this function)<br>
acc.c:549: warning: implicit declaration of function 'rc_avpair_free'<br>make[1]: *** [acc.o] Error 1<br>make[1]: Leaving directory `/tmp/SBo/opensips-1.4.3-tls/modules/acc'<br>make: *** [modules] Error 2<br>
<br>
<br>i edit the radius.h, and soo the location of this file, but i don't have this file "<b>radiusclient-ng.h</b>" in my pc.<br>I go back to the freeRadius-Client source/binary, search for this file, and i don't find him.<br>
<br>I don't know if opensips are configured with the last release of freeRadius.<br>What i did, i edit again the radius.h and change the "<b>radiusclient-ng.h</b>" to "<b>freeradius-client.h</b>", and i altered too the default location of the conf. file to<br>
"<b>/etc/radiusclient/</b><b>radiusclient.conf</b>"<br><br><br>Compiling again show this messages.<br><br>Compiling acc.c<br>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 <br>
/usr/lib/gcc/i486-slackware-linux/4.2.4/../../../../i486-slackware-linux/bin/ld: cannot find -lradiusclient-ng<br>collect2: ld returned 1 exit status<br>make[1]: *** [acc.so] Error 1<br>make[1]: Leaving directory `/tmp/SBo/opensips-1.4.3-tls/modules/acc'<br>
make: *** [modules] Error 2<br><br><br><br>I don't know what i do next.<br><br>Anyone show me a signal.<br><br><br>
PS: Excuse me about my poor english.<br><br><br clear="all">-------------------------------------------------------------------<br>Schenkel, Gustavo Brondani<br>I.T. Professional<br>Espocomp - Engenharia de Computação Ltda.<br>