building debian package - rlm_sql is not portable

Marco Marino marino.mrc at
Wed Feb 12 12:51:55 CET 2014

I'm trying to build debian package with
fakeroot dpkg-buildpackage -b -uc

for freeradius 2.2.3 on ubuntu 13.10 64 bit (3.11.0-15-generic)

but i have this error:
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 \ || exit $?; \
    rm -f /home/ntt/freeradius-server-2.2.3/debian/tmp//usr/local/lib/; \
    ln -s || exit $?; \
libtool: install: warning: relinking `'
(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 -rpath /usr/local/lib
rlm_sqlcounter.lo rlm_sqlcounter.c
/home/ntt/freeradius-server-2.2.3/src/lib/ -lcrypto -lssl -lcrypto -lcrypto -lnsl -lresolv -pthread
-inst-prefix-dir /home/ntt/freeradius-server-2.2.3/debian/tmp/)

*** Warning: Linking the shared library against the
loadable module
*** is not portable!
gcc -shared  .libs/rlm_sqlcounter.o
-L/usr/local/lib -lfreeradius-radius -lrlm_sql -lssl -lcrypto -lnsl
-lresolv  -pthread -Wl,-soname -Wl, -o .libs/
/usr/bin/ld: cannot find -lrlm_sql
collect2: error: ld returned 1 exit status
libtool: install: error: relink `' 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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Freeradius-Devel mailing list