<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Hi,</span><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">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.</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
So far I have taken the following steps:</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
1) Checkout and build tag 2.1.12 (builds ok).</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">2) Copy rlm_rest into modules/</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
3) Copy connections.h into /src</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">4) cd modules/rlm_rest/; ./configure; make;</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Now I get the error below which I can't make head nor tail of.  Is 3.0 using different compiler options or something?</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
If anyone can help get this working it would be greatly appreciated!</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><div>rlm_rest]# make</div><div>/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</div>
<div> 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</div>
<div>rlm_rest.c:142: error: expected declaration specifiers or '...' before 'rlm_components_t'</div><div>rlm_rest.c: In function 'parse_sub_section':</div><div>rlm_rest.c:146: error: 'section_type_value' undeclared (first use in this function)</div>
<div>rlm_rest.c:146: error: (Each undeclared identifier is reported only once</div><div>rlm_rest.c:146: error: for each function it appears in.)</div><div>rlm_rest.c:146: error: 'comp' undeclared (first use in this function)</div>
<div>rlm_rest.c: In function 'rlm_rest_instantiate':</div><div>rlm_rest.c:248: error: too many arguments to function 'parse_sub_section'</div><div>rlm_rest.c:250: error: too many arguments to function 'parse_sub_section'</div>
<div>rlm_rest.c:252: error: too many arguments to function 'parse_sub_section'</div><div>rlm_rest.c:254: error: too many arguments to function 'parse_sub_section'</div><div>rlm_rest.c:256: error: too many arguments to function 'parse_sub_section'</div>
<div>make: *** [rlm_rest.lo] Error 1</div></div>