if [ "xrlm_sqlcounter" != "x" ]; then \
/home/ntt/freeradius-server-2.2.3/libtool --mode=install /home/ntt/freeradius-server-2.2.3/install-sh -c -c \
fi
(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
rlm_sqlcounter.la -rpath /usr/local/lib rlm_sqlcounter.lo rlm_sqlcounter.c /home/ntt/freeradius-server-2.2.3/src/lib/
libfreeradius-radius.la /home/ntt/freeradius-server-2.2.3/src/modules/rlm_sql/.libs/
rlm_sql.la -lcrypto -lssl -lcrypto -lcrypto -lnsl -lresolv -pthread -inst-prefix-dir /home/ntt/freeradius-server-2.2.3/debian/tmp/)
*** Warning: Linking the shared library
rlm_sqlcounter.la against the loadable module
*** rlm_sql.so is not portable!
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,
rlm_sqlcounter-2.2.3.so -o .libs/
rlm_sqlcounter-2.2.3.so
/usr/bin/ld: cannot find -lrlm_sql
collect2: error: ld returned 1 exit status
libtool: install: error: relink `
rlm_sqlcounter.la' with the above command before installing it
make[8]: *** [install] Error 1
If i try to compile (with ./configure and make) it works. Where i'm wrong?