Freeradius 2.2.5 with unixodbc - compilation error

Bilik.AA at lsrgroup.ru Bilik.AA at lsrgroup.ru
Wed Nov 12 11:17:33 CET 2014


Hello everybody!

I need to use MS SQL as database with freeradius authentification and therefore I need to install freeradius with unixodbc support.
I installed freeradius-server-2.1.12 with unixodbc support from FreeBSD 8.3-RELEASE ports succesfully.
Now I try to install  freeradius-server-2.2.5 from FreeBSD 8.4-RELEASE ports (ports are up-to-date) and if without unixodbc support, compilation goes well,
but when I try to install with unixodbc support, something goes wrong:

----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Making all in rlm_sql_unixodbc.
gmake[9]: Entering directory '/usr/ports/net/freeradius2/work/freeradius-server-2.2.5/src/modules/rlm_sql/drivers/rlm_sql_unixodbc'
/bin/sh /usr/ports/net/freeradius2/work/freeradius-server-2.2.5/libtool --mode=link --tag=CC cc -release 2.2.5 \
-module -export-dynamic -Wl,-rpath,/usr/lib:/usr/local/lib  -o rlm_sql_unixodbc.la \
-rpath /usr/local/lib/freeradius-2.2.5 sql_unixodbc.lo -lodbc
libtool: link: cc -shared  -fPIC -DPIC  .libs/sql_unixodbc.o   -lodbc  -Wl,-rpath -Wl,/usr/lib:/usr/local/lib   -Wl,-soname -Wl,rlm_sql_unixodbc-2.2.5.so -o .libs/rlm_sql_unixodbc-2.2.5.so
/usr/bin/ld: cannot find -lodbc
../rules.mak:104: recipe for target 'rlm_sql_unixodbc.la' failed
gmake[9]: *** [rlm_sql_unixodbc.la] Error 1
gmake[9]: Leaving directory '/usr/ports/net/freeradius2/work/freeradius-server-2.2.5/src/modules/rlm_sql/drivers/rlm_sql_unixodbc'
Makefile:23: recipe for target 'rlm_sql_unixodbc' failed
gmake[8]: *** [rlm_sql_unixodbc] Error 2
gmake[8]: Leaving directory '/usr/ports/net/freeradius2/work/freeradius-server-2.2.5/src/modules/rlm_sql/drivers'
Makefile:5: recipe for target 'all' failed
gmake[7]: *** [all] Error 2
gmake[7]: Leaving directory '/usr/ports/net/freeradius2/work/freeradius-server-2.2.5/src/modules/rlm_sql/drivers'
Makefile:34: recipe for target 'drivers' failed
gmake[6]: *** [drivers] Error 2
gmake[6]: Leaving directory '/usr/ports/net/freeradius2/work/freeradius-server-2.2.5/src/modules/rlm_sql'
Makefile:37: recipe for target 'rlm_sql' failed
gmake[5]: *** [rlm_sql] Error 2
gmake[5]: Leaving directory '/usr/ports/net/freeradius2/work/freeradius-server-2.2.5/src/modules'
Makefile:12: recipe for target 'all' failed
gmake[4]: *** [all] Error 2
gmake[4]: Leaving directory '/usr/ports/net/freeradius2/work/freeradius-server-2.2.5/src/modules'
Makefile:39: recipe for target 'modules' failed
gmake[3]: *** [modules] Error 2
gmake[3]: Leaving directory '/usr/ports/net/freeradius2/work/freeradius-server-2.2.5/src'
Makefile:14: recipe for target 'all' failed
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory '/usr/ports/net/freeradius2/work/freeradius-server-2.2.5/src'
Makefile:97: recipe for target 'src' failed
gmake[1]: *** [src] Error 2
gmake[1]: Leaving directory '/usr/ports/net/freeradius2/work/freeradius-server-2.2.5'
Makefile:18: recipe for target 'all' failed
gmake: *** [all] Error 2
*** Error code 1

Stop in /usr/ports/net/freeradius2.
*** Error code 1

Stop in /usr/ports/net/freeradius2.
*** Error code 1

Stop in /usr/ports/net/freeradius2.


Any idea about this issue?

Thank you in advance.

С уважением,

Александр Билик
Инженер по информационной безопасности
Группа управления коммуникациями
Группа ЛСР

E-mail: Bilik.AA at lsrgroup.ru<mailto:Bilik.AA at lsrgroup.ru>
www.lsrgroup.ru

[cid:image002.png at 01CFFE7B.05B934D0]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20141112/f60cfb29/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 1259 bytes
Desc: image002.png
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20141112/f60cfb29/attachment.png>


More information about the Freeradius-Users mailing list