Backporting rlm_rest to 2.1.x

Gavin Alves gavin.alves at gmail.com
Sat Aug 11 01:03:37 CEST 2012


Hi,

Can someone kindly give me some hints for getting rlm_rest working with
freeradius 2.1.  As a web developer, this is goes beyond my limited
understanding of C.  The module compiles fine from the master branch (3.0)
but I really need it working in 2.1.

So far I have taken the following steps:

1) Checkout and build tag 2.1.12 (builds ok).
2) Copy rlm_rest into modules/
3) Copy connections.h into /src
4) cd modules/rlm_rest/; ./configure; make;

Now I get the error below which I can't make head nor tail of.  Is 3.0
using different compiler options or something?

If anyone can help get this working it would be greatly appreciated!


rlm_rest]# make
/root/freeradius-server/libtool --mode=compile gcc  -g -O2 -Wall
-D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -g -Wshadow
-Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
-Wnested-externs -W -Wredundant-decls -Wundef -I/root/freeradius-server/src
-I/root/freeradius-server/libltdl  -c rlm_rest.c
 gcc -g -O2 -Wall -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -g
-Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
-Wnested-externs -W -Wredundant-decls -Wundef -I/root/freeradius-server/src
-I/root/freeradius-server/libltdl -c rlm_rest.c  -fPIC -DPIC -o
.libs/rlm_rest.o
rlm_rest.c:142: error: expected declaration specifiers or '...' before
'rlm_components_t'
rlm_rest.c: In function 'parse_sub_section':
rlm_rest.c:146: error: 'section_type_value' undeclared (first use in this
function)
rlm_rest.c:146: error: (Each undeclared identifier is reported only once
rlm_rest.c:146: error: for each function it appears in.)
rlm_rest.c:146: error: 'comp' undeclared (first use in this function)
rlm_rest.c: In function 'rlm_rest_instantiate':
rlm_rest.c:248: error: too many arguments to function 'parse_sub_section'
rlm_rest.c:250: error: too many arguments to function 'parse_sub_section'
rlm_rest.c:252: error: too many arguments to function 'parse_sub_section'
rlm_rest.c:254: error: too many arguments to function 'parse_sub_section'
rlm_rest.c:256: error: too many arguments to function 'parse_sub_section'
make: *** [rlm_rest.lo] Error 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20120811/76d73381/attachment.html>


More information about the Freeradius-Devel mailing list