building debian package - rlm_sql is not portable
Marco Marino
marino.mrc at gmail.com
Wed Feb 12 12:51:55 CET 2014
Hi,
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 \
rlm_sqlcounter.la/home/ntt/freeradius-server-2.2.3/debian/tmp//usr/local/lib/
rlm_sqlcounter.la || exit $?; \
rm -f /home/ntt/freeradius-server-2.2.3/debian/tmp//usr/local/lib/
rlm_sqlcounter-2.2.3.la; \
ln -s rlm_sqlcounter.la/home/ntt/freeradius-server-2.2.3/debian/tmp//usr/local/lib/
rlm_sqlcounter-2.2.3.la || exit $?; \
fi
libtool: install: warning: relinking `rlm_sqlcounter.la'
(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?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20140212/ffe3adf8/attachment.html>
More information about the Freeradius-Devel
mailing list