[Serusers] Problem compiling SER v0.8.14

Jesus Rodriguez jesusr at voztele.com
Wed Sep 8 00:40:56 CEST 2004


On Tue, 7 Sep 2004, Ricardo Martinez wrote:

Hola Ricardo,

> 	I compiled succesfully Ser 0.8.11, now i'm trying to upgrade to
> version 0.8.14.  I'm having the next errors at the end of the compilation.

You have to use radiusclient-ng for 0.8.14:

http://developer.berlios.de/projects/radiusclient-ng/




> make[1]: Leaving directory `/root/SER-v0.8.14/ser-0.8.14/utils/gen_ha1'
> touch           /usr/local/sbin//ser
> install  -m 755 ser /usr/local/sbin/
> touch             /usr/local/sbin//sc
> install  -m 755 scripts/sc /usr/local/sbin/
> mv -f /usr/local/sbin//sc /usr/local/sbin//serctl
> touch             /usr/local/sbin//ser_mysql.sh
> install  -m 755 scripts/ser_mysql.sh  /usr/local/sbin/
> touch             /usr/local/sbin//gen_ha1
> install  -m 755 utils/gen_ha1/gen_ha1 /usr/local/sbin/
> 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
> touch           /usr/local/share/doc/ser//INSTALL
> install  -m 644 INSTALL /usr/local/share/doc/ser/
> touch           /usr/local/share/doc/ser//README-MODULES
> install  -m 644 README-MODULES /usr/local/share/doc/ser/
> touch           /usr/local/share/doc/ser//AUTHORS
> install  -m 644 AUTHORS /usr/local/share/doc/ser/
> touch           /usr/local/share/doc/ser//NEWS
> install  -m 644 NEWS /usr/local/share/doc/ser/
> touch           /usr/local/share/doc/ser//README
> install  -m 644 README /usr/local/share/doc/ser/
> touch            /usr/local/share/man//man8/ser.8
> install  -m 644  ser.8 /usr/local/share/man//man8
> touch            /usr/local/share/man//man5/ser.cfg.5
> install  -m 644  ser.cfg.5 /usr/local/share/man//man
>
>
>
> Then i tried to compile only the modules.
>
> [root at sipproxy acc]# make
> ../../Makefile.defs:431: Old gcc detected (2.9x), use  gcc >= 3.1 for better
> results
> ../../Makefile.modules:21: "you should run make from the main ser directory"
> ../../Makefile.rules:77: acc.d: No such file or directory
> ../../Makefile.rules:77: acc_mod.d: No such file or directory
> ../../Makefile.defs:431: Old gcc detected (2.9x), use  gcc >= 3.1 for better
> results
> ../../Makefile.modules:21: "you should run make from the main ser directory"
> gcc -fPIC -DPIC -g -O9 -funroll-loops  -Wcast-align  -Wall  -m486
> -malign-loops=4   -DNAME='"acc.so"' -DVERSION='"0.8.14"' -DARCH='"i386"'
> -DOS='"linux"' -DCOMPILER='"gcc 2.91"' -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 -DRAD_ACC -I/usr/local/include -c acc.c -o acc.o
> acc.c: In function `acc_rad_request':
> acc.c:576: warning: passing arg 2 of `rc_avpair_add' makes integer from
> pointer without a cast
> acc.c:576: warning: passing arg 3 of `rc_avpair_add' makes pointer from
> integer without a cast
> acc.c:576: warning: passing arg 4 of `rc_avpair_add' makes integer from
> pointer without a cast
> acc.c:576: too many arguments to function `rc_avpair_add'
> acc.c:581: warning: passing arg 2 of `rc_avpair_add' makes integer from
> pointer without a cast
> acc.c:581: warning: passing arg 3 of `rc_avpair_add' makes pointer from
> integer without a cast
> acc.c:581: warning: passing arg 4 of `rc_avpair_add' makes integer from
> pointer without a cast
> acc.c:581: too many arguments to function `rc_avpair_add'
> acc.c:588: warning: passing arg 2 of `rc_avpair_add' makes integer from
> pointer without a cast
> acc.c:588: warning: passing arg 3 of `rc_avpair_add' makes pointer from
> integer without a cast
> acc.c:588: warning: passing arg 4 of `rc_avpair_add' makes integer from
> pointer without a cast
> acc.c:588: too many arguments to function `rc_avpair_add'
> acc.c:593: warning: passing arg 2 of `rc_avpair_add' makes integer from
> pointer without a cast
> acc.c:593: warning: passing arg 3 of `rc_avpair_add' makes pointer from
> integer without a cast
> acc.c:593: warning: passing arg 4 of `rc_avpair_add' makes integer from
> pointer without a cast
> acc.c:593: too many arguments to function `rc_avpair_add'
> acc.c:612: warning: passing arg 2 of `rc_avpair_add' makes integer from
> pointer without a cast
> acc.c:612: warning: passing arg 3 of `rc_avpair_add' makes pointer from
> integer without a cast
> acc.c:612: warning: passing arg 4 of `rc_avpair_add' makes integer from
> pointer without a cast
> acc.c:612: too many arguments to function `rc_avpair_add'
> acc.c:623: warning: passing arg 2 of `rc_avpair_add' makes integer from
> pointer without a cast
> acc.c:623: warning: passing arg 3 of `rc_avpair_add' makes pointer from
> integer without a cast
> acc.c:623: warning: passing arg 4 of `rc_avpair_add' makes integer from
> pointer without a cast
> acc.c:623: too many arguments to function `rc_avpair_add'
> acc.c:645: warning: passing arg 2 of `rc_avpair_add' makes integer from
> pointer without a cast
> acc.c:645: warning: passing arg 3 of `rc_avpair_add' makes pointer from
> integer without a cast
> acc.c:645: warning: passing arg 4 of `rc_avpair_add' makes integer from
> pointer without a cast
> acc.c:645: too many arguments to function `rc_avpair_add'
> acc.c:656: warning: passing arg 2 of `rc_avpair_add' makes integer from
> pointer without a cast
> acc.c:656: warning: passing arg 3 of `rc_avpair_add' makes pointer from
> integer without a cast
> acc.c:656: warning: passing arg 4 of `rc_avpair_add' makes integer from
> pointer without a cast
> acc.c:656: too many arguments to function `rc_avpair_add'
> acc.c:666: warning: passing arg 2 of `rc_avpair_add' makes integer from
> pointer without a cast
> acc.c:666: warning: passing arg 3 of `rc_avpair_add' makes pointer from
> integer without a cast
> acc.c:666: warning: passing arg 4 of `rc_avpair_add' makes integer from
> pointer without a cast
> acc.c:666: too many arguments to function `rc_avpair_add'
> acc.c:673: warning: passing arg 1 of `rc_acct' makes integer from pointer
> without a cast
> acc.c:673: warning: passing arg 2 of `rc_acct' makes pointer from integer
> without a cast
> acc.c:673: too many arguments to function `rc_acct'
> make: *** [acc.o] Error 1
> [root at sipproxy acc]# cd ..
> [root at sipproxy modules]# cd uri_radius/
> [root at sipproxy uri_radius]# ls
> checks.c  checks.h  doc  Makefile  README  urirad_mod.c  urirad_mod.h
> [root at sipproxy uri_radius]# make
> ../../Makefile.defs:431: Old gcc detected (2.9x), use  gcc >= 3.1 for better
> results
> ../../Makefile.modules:21: "you should run make from the main ser directory"
> ../../Makefile.rules:77: checks.d: No such file or directory
> ../../Makefile.rules:77: urirad_mod.d: No such file or directory
> ../../Makefile.defs:431: Old gcc detected (2.9x), use  gcc >= 3.1 for better
> results
> ../../Makefile.modules:21: "you should run make from the main ser directory"
> gcc -fPIC -DPIC -g -O9 -funroll-loops  -Wcast-align  -Wall  -m486
> -malign-loops=4   -DNAME='"uri_radius.so"' -DVERSION='"0.8.14"'
> -DARCH='"i386"' -DOS='"linux"' -DCOMPILER='"gcc 2.91"' -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
> checks.c -o checks.o
> 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: *** [checks.o] Error 1
>
>
> Any ideas?
> Thanks in advace
>
> Ricardo
>
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
>


Saludos
JesusR.

-------------------------------
Jesus Rodriguez
VozTelecom Sistemas, S.L.
jesusr at voztele.com
http://www.voztele.com
Tel. 902360305
-------------------------------




More information about the sr-users mailing list