<br><br>
<div class="gmail_quote">On Sun, Jul 19, 2009 at 3:44 PM, Alex Balashov <span dir="ltr">&lt;<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im">ram wrote:<br><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hi Adrian<br> I found some problem last version when iam patching freeradius.patch<br>with Freeradius 2.1.6 is that Fixed in this version<br>
 I have installed Freeradius 2.0.4<br></blockquote><br></div>I would wager, on Adrian&#39;s behalf, that a description of &quot;some problem&quot; or a reference to a bug report number would be necessary to answer this question.<br>
<font color="#888888"><br></font></blockquote>
<div> </div>
<div> </div>
<div>I forgot to mention the problem</div>
<div> </div>
<div>here it is :</div>
<div> </div>
<div> </div>
<div>/usr/src/freeradius-server-2.1.6# patch -p0 &lt; /usr/src/CDRTool/contrib/freeradius-brandinger/freeradius-20090223.patch<br>patching file man/man5/rlm_sql.5<br>patching file raddb/sql/mssql/dialup.conf<br>patching file raddb/sql/mysql/dialup.conf<br>
patching file raddb/sql/oracle/dialup.conf<br>patching file raddb/sql/postgresql/dialup.conf<br>patching file src/include/radius.h<br>patching file src/modules/rlm_sql/conf.h<br>Hunk #2 succeeded at 80 (offset 2 lines).<br>
patching file src/modules/rlm_sql/rlm_sql.c</div>
<div> </div>
<div> </div>
<div> </div>
<div>Configure Go smooth</div>
<div> </div>
<div>when iam issuing make</div>
<div> </div>
<div>i get the following errors</div>
<div> </div>
<div>/usr/src/freeradius-server-2.1.6/libtool --mode=link gcc -release 2.1.6 \<br>        -module -export-dynamic   -o <a href="http://rlm_realm.la">rlm_realm.la</a>     \<br>        -rpath /usr/local/lib rlm_realm.lo rlm_realm.c /usr/src/freeradius-server-2.1.6/src/lib/<a href="http://libfreeradius-radius.la">libfreeradius-radius.la</a>  -lnsl -lresolv  -lpthread<br>
gcc -shared  .libs/rlm_realm.o  -Wl,--rpath -Wl,/usr/src/freeradius-server-2.1.6/src/lib/.libs /usr/src/freeradius-server-2.1.6/src/lib/.libs/libfreeradius-radius.so -lnsl -lresolv -lpthread  -Wl,-soname -Wl,<a href="http://rlm_realm-2.1.6.so">rlm_realm-2.1.6.so</a> -o .libs/<a href="http://rlm_realm-2.1.6.so">rlm_realm-2.1.6.so</a><br>
(cd .libs &amp;&amp; rm -f rlm_realm.so &amp;&amp; ln -s <a href="http://rlm_realm-2.1.6.so">rlm_realm-2.1.6.so</a> rlm_realm.so)<br>ar cru .libs/rlm_realm.a  rlm_realm.o<br>ranlib .libs/rlm_realm.a<br>creating <a href="http://rlm_realm.la">rlm_realm.la</a><br>
(cd .libs &amp;&amp; rm -f <a href="http://rlm_realm.la">rlm_realm.la</a> &amp;&amp; ln -s ../<a href="http://rlm_realm.la">rlm_realm.la</a> <a href="http://rlm_realm.la">rlm_realm.la</a>)<br>for x in .libs/* <a href="http://rlm_realm.la">rlm_realm.la</a>; do \<br>
                rm -rf /usr/src/freeradius-server-2.1.6/src/modules/lib/$x; \<br>                ln -s /usr/src/freeradius-server-2.1.6/src/modules/rlm_realm/$x /usr/src/freeradius-server-2.1.6/src/modules/lib/$x; \<br>        done<br>
make[6]: Leaving directory `/usr/src/freeradius-server-2.1.6/src/modules/rlm_realm&#39;<br>Making all in rlm_sql...<br>make[6]: Entering directory `/usr/src/freeradius-server-2.1.6/src/modules/rlm_sql&#39;<br>/usr/src/freeradius-server-2.1.6/libtool --mode=compile gcc  -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG -I/usr/src/freeradius-server-2.1.6/src -I/usr/src/freeradius-server-2.1.6/libltdl  -I/usr/src/freeradius-server-2.1.6/src/modules/rlm_sql -c rlm_sql.c<br>
mkdir .libs<br> gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG -I/usr/src/freeradius-server-2.1.6/src -I/usr/src/freeradius-server-2.1.6/libltdl -I/usr/src/freeradius-server-2.1.6/src/modules/rlm_sql -c rlm_sql.c  -fPIC -DPIC -o .libs/rlm_sql.o<br>
rlm_sql.c:92: warning: braces around scalar initializer<br>rlm_sql.c:92: warning: (near initialization for &#39;module_config[25].offset&#39;)<br>rlm_sql.c:92: warning: initialization makes integer from pointer without a cast<br>
rlm_sql.c:92: warning: excess elements in scalar initializer<br>rlm_sql.c:92: warning: (near initialization for &#39;module_config[25].offset&#39;)<br>rlm_sql.c:93: warning: excess elements in scalar initializer<br>rlm_sql.c:93: warning: (near initialization for &#39;module_config[25].offset&#39;)<br>
rlm_sql.c:93: warning: excess elements in scalar initializer<br>rlm_sql.c:93: warning: (near initialization for &#39;module_config[25].offset&#39;)<br>rlm_sql.c:93: warning: excess elements in scalar initializer<br>rlm_sql.c:93: warning: (near initialization for &#39;module_config[25].offset&#39;)<br>
rlm_sql.c:94: warning: initialization makes pointer from integer without a cast<br>rlm_sql.c:94: warning: excess elements in struct initializer<br>rlm_sql.c:94: warning: (near initialization for &#39;module_config[25]&#39;)<br>
rlm_sql.c: In function &#39;rlm_sql_accounting&#39;:<br>rlm_sql.c:1293: error: &#39;Got&#39; undeclared (first use in this function)<br>rlm_sql.c:1293: error: (Each undeclared identifier is reported only once<br>rlm_sql.c:1293: error: for each function it appears in.)<br>
rlm_sql.c:1293: error: expected &#39;;&#39; before &#39;accounting&#39;<br>rlm_sql.c:1324:7: warning: &quot;/*&quot; within comment<br>rlm_sql.c:1364: error: break statement not within loop or switch<br>rlm_sql.c:1369: error: &#39;default&#39; label not within a switch statement<br>
rlm_sql.c:1373: error: break statement not within loop or switch<br>rlm_sql.c: At top level:<br>rlm_sql.c:1377: warning: data definition has no type or storage class<br>rlm_sql.c:1377: warning: type defaults to &#39;int&#39; in declaration of &#39;sql_release_socket&#39;<br>
rlm_sql.c:1377: warning: parameter names (without types) in function declaration<br>rlm_sql.c:1379: error: expected identifier or &#39;(&#39; before &#39;return&#39;<br>rlm_sql.c:1380: error: expected identifier or &#39;(&#39; before &#39;}&#39; token<br>
make[6]: *** [rlm_sql.lo] Error 1<br>make[6]: Leaving directory `/usr/src/freeradius-server-2.1.6/src/modules/rlm_sql&#39;<br>make[5]: *** [common] Error 2<br>make[5]: Leaving directory `/usr/src/freeradius-server-2.1.6/src/modules&#39;<br>
make[4]: *** [all] Error 2<br>make[4]: Leaving directory `/usr/src/freeradius-server-2.1.6/src/modules&#39;<br>make[3]: *** [common] Error 2<br>make[3]: Leaving directory `/usr/src/freeradius-server-2.1.6/src&#39;<br>make[2]: *** [all] Error 2<br>
make[2]: Leaving directory `/usr/src/freeradius-server-2.1.6/src&#39;<br>make[1]: *** [common] Error 2<br>make[1]: Leaving directory `/usr/src/freeradius-server-2.1.6&#39;<br>make: *** [all] Error 2<br>freeswitch:/usr/src/freeradius-server-2.1.6#<br>
<br><br>ram</div></div>