<div dir="ltr">Hi,<div>I'm trying to build debian package with </div><div>fakeroot dpkg-buildpackage -b -uc<br></div><div><br></div><div>for freeradius 2.2.3 on ubuntu 13.10 64 bit (3.11.0-15-generic)</div><div><br></div>
<div>but i have this error:</div><div><div>if [ "xrlm_sqlcounter" != "x" ]; then \</div><div><span class="" style="white-space:pre"> </span> /home/ntt/freeradius-server-2.2.3/libtool --mode=install /home/ntt/freeradius-server-2.2.3/install-sh -c -c \</div>
<div><span class="" style="white-space:pre"> </span><a href="http://rlm_sqlcounter.la">rlm_sqlcounter.la</a> /home/ntt/freeradius-server-2.2.3/debian/tmp//usr/local/lib/<a href="http://rlm_sqlcounter.la">rlm_sqlcounter.la</a> || exit $?; \</div>
<div><span class="" style="white-space:pre"> </span> rm -f /home/ntt/freeradius-server-2.2.3/debian/tmp//usr/local/lib/<a href="http://rlm_sqlcounter-2.2.3.la">rlm_sqlcounter-2.2.3.la</a>; \</div><div><span class="" style="white-space:pre"> </span> ln -s <a href="http://rlm_sqlcounter.la">rlm_sqlcounter.la</a> /home/ntt/freeradius-server-2.2.3/debian/tmp//usr/local/lib/<a href="http://rlm_sqlcounter-2.2.3.la">rlm_sqlcounter-2.2.3.la</a> || exit $?; \</div>
<div><span class="" style="white-space:pre"> </span>fi</div><div>libtool: install: warning: relinking `<a href="http://rlm_sqlcounter.la">rlm_sqlcounter.la</a>'</div><div>(cd /home/ntt/freeradius-server-2.2.3/src/modules/rlm_sqlcounter; /bin/bash /home/ntt/freeradius-server-2.2.3/libtool --mode=relink gcc -release 2.2.3 -module -export-dynamic -o <a href="http://rlm_sqlcounter.la">rlm_sqlcounter.la</a> -rpath /usr/local/lib rlm_sqlcounter.lo rlm_sqlcounter.c /home/ntt/freeradius-server-2.2.3/src/lib/<a href="http://libfreeradius-radius.la">libfreeradius-radius.la</a> /home/ntt/freeradius-server-2.2.3/src/modules/rlm_sql/.libs/<a href="http://rlm_sql.la">rlm_sql.la</a> -lcrypto -lssl -lcrypto -lcrypto -lnsl -lresolv -pthread -inst-prefix-dir /home/ntt/freeradius-server-2.2.3/debian/tmp/)</div>
<div><br></div><div>*** Warning: Linking the shared library <a href="http://rlm_sqlcounter.la">rlm_sqlcounter.la</a> against the loadable module</div><div>*** rlm_sql.so is not portable!</div><div>gcc -shared .libs/rlm_sqlcounter.o -L/home/ntt/freeradius-server-2.2.3/debian/tmp//usr/local/lib -L/usr/local/lib -lfreeradius-radius -lrlm_sql -lssl -lcrypto -lnsl -lresolv -pthread -Wl,-soname -Wl,<a href="http://rlm_sqlcounter-2.2.3.so">rlm_sqlcounter-2.2.3.so</a> -o .libs/<a href="http://rlm_sqlcounter-2.2.3.so">rlm_sqlcounter-2.2.3.so</a></div>
<div>/usr/bin/ld: cannot find -lrlm_sql</div><div>collect2: error: ld returned 1 exit status</div><div>libtool: install: error: relink `<a href="http://rlm_sqlcounter.la">rlm_sqlcounter.la</a>' with the above command before installing it</div>
<div>make[8]: *** [install] Error 1</div></div><div><br></div><div><br></div><div><br></div><div>If i try to compile (with ./configure and make) it works. Where i'm wrong?</div><div>Thanks</div></div>