Help!!----Re: [Serusers] radius compile problem in ser 0.8.14

chenhui chenhui at cnnic.cn
Fri Jul 22 04:25:11 CEST 2005


Hi,

I have updated radiusclient to 0.4.8 and SER to 0.9.3, and also copy file "radiusclient-ng.h" to the /modules/auth_radius directory.
Then run "make", but still shows error :(  ---as following

[root at localhost auth_radius]# make all include_modules="auth_radius group_radius uri_radius mysql"
../../Makefile.modules:21: "you should run make from the main ser directory"
gcc -fPIC -DPIC -g -O9 -funroll-loops  -Wcast-align  -Wall   -minline-all-stringops -malign-double -falign-loops -mcpu=athlon    -DNAME='"ser"' -DVERSION='"0.9.3"' -DARCH='"i386"' -DOS='"linux"' -DCOMPILER='"gcc 3.2"' -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  -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 -I/usr/local/include -c authrad_mod.c -o authrad_mod.o
authrad_mod.c:51:31: radiusclient-ng.h: cannot find the file
authrad_mod.c: In function `mod_init':
authrad_mod.c:116: `DICT_VENDOR' undeclared (first use in this function)
authrad_mod.c:116: (Each undeclared identifier is reported only once
authrad_mod.c:116: for each function it appears in.)
authrad_mod.c:116: `vend' undeclared (first use in this function)
authrad_mod.c:140: warning: implicit declaration of function `rc_read_config'
authrad_mod.c:140: warning: assignment makes pointer from integer without a cast
authrad_mod.c:145: warning: implicit declaration of function `rc_read_dictionary'
authrad_mod.c:145: warning: implicit declaration of function `rc_conf_str'
authrad_mod.c:150: warning: implicit declaration of function `rc_dict_findvend'
authrad_mod.c:165: `DICT_ATTR' undeclared (first use in this function)
authrad_mod.c:165: `da' undeclared (first use in this function)
authrad_mod.c:165: `DICT_VALUE' undeclared (first use in this function)
authrad_mod.c:165: `dv' undeclared (first use in this function)
authrad_mod.c:165: warning: implicit declaration of function `rc_dict_findattr'
authrad_mod.c:165: warning: implicit declaration of function `rc_dict_findval'
make: *** [authrad_mod.o] Error 1

Your help will be genial.

----- Original Message ----- 
From: "Andrei Pelinescu-Onciul" <andrei at iptel.org>
To: "Kert?sz Csaba" <sign at freemail.hu>
Cc: <serusers at iptel.org>
Sent: Tuesday, July 12, 2005 8:17 PM
Subject: Re: [Serusers] radius compile problem in ser 0.8.14


> On Jul 11, 2005 at 16:02, Kert?sz Csaba <sign at freemail.hu> wrote:
>> 
>> Hallo,
>> 
>>   I'm trying to compile the radius modules of SER 0.8.14 but a following 
>> error message and I don't find what is the problem:
> 
> You are probably using a wrong libradiusclient library.
> You need libradiusclient-ng 0.4.1 for ser 0.8.14.
> WARNING: it won't work with 0.5.x, you need 0.4.x.
> It would be probably better to upgrade ser to 0.9.3.
> 
> 
> Andrei
>> 
>> gcc -fPIC -DPIC -g -O9 -funroll-loops  -Wcast-align  -Wall  -minline-all-
>> stringops -malign-double -falign-loops -mcpu=athlon    -
>> DNAME='"auth_radius.so"' -DVERSION='"0.8.14"' -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_TCP -
>> DDISABLE_NAGLE -DF_MALLOC  -DFAST_LOCK -DADAPTIVE_WAIT -
>> DADAPTIVE_WAIT_LOOPS=1024  -DHAVE_GETHOSTBYNAME2 -
>> DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_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: error: `DICT_VENDOR' undeclared (first use in this 
>> function)
>> authrad_mod.c:111: error: (Each undeclared identifier is reported only 
>> once
>> authrad_mod.c:111: error: for each function it appears in.)
>> authrad_mod.c:111: error: `vend' undeclared (first use in this function)
>> authrad_mod.c:135: warning: assignment makes pointer from integer 
>> without a cast
>> authrad_mod.c:140: error: too many arguments to function 
>> `rc_conf_str'
>> authrad_mod.c:140: error: too many arguments to function 
>> `rc_read_dictionary'
>> authrad_mod.c:145: warning: implicit declaration of function 
>> `rc_dict_findvend'
>> authrad_mod.c:163: error: too many arguments to function 
>> `rc_dict_findattr'
>> authrad_mod.c:163: error: too many arguments to function 
>> `rc_dict_findval'
>> authrad_mod.c: At top level:
>> ../../dprint.h:51: warning: `fp' defined but not used
>> ../../modules/usrloc/client_socket.h:17: warning: `buff' defined but not 
>> used
>> ../../modules/usrloc/client_socket.h:18: warning: `rec_attached' 
>> defined but not used
>> make: *** [authrad_mod.o] Error 1
> 
> _______________________________________________
> Serusers mailing list
> Serusers at iptel.org
> http://mail.iptel.org/mailman/listinfo/serusers


More information about the sr-users mailing list