Discussion:
rlm_sql_unixodbc: Can't open lib '/usr/local/lib/libtdsodbc.so'
B***@lsrgroup.ru
2014-11-11 14:03:17 UTC
Permalink
Hello everybody!
When I execute ‘radiusd -X’, I got a mistake in my debug output such as:

rlm_sql_unixodbc: 01000 [unixODBC][Driver Manager]Can't open lib '/usr/local/lib/libtdsodbc.so' : Invalid shared object handle 0x28606880
rlm_sql_unixodbc: SQL down 08003 [unixODBC][Driver Manager]Connnection does not exist
rlm_sql_unixodbc: Can't allocate the statement
rlm_sql_unixodbc: Socket destructor called, closing socket
rlm_sql (sql): Opening connection failed (0)
rlm_sql (sql): Removing connection pool
/usr/local/etc/raddb/mods-enabled/sql[20]: Instantiation failed for module "sql"

What’s the problem here? I have freeradius-server-3.0.4, freetds-0.91.103, unixODBC-2.3.2 installed from ports (FreeBSD 8.4-RELEASE).

Thank you.

С уважеМОеЌ,

АлексаМЎр БОлОк
ИМжеМер пП ОМфПрЌацОПММПй безПпасМПстО
Группа управлеМОя кПЌЌуМОкацОяЌО
Группа ЛСР

E-mail: ***@lsrgroup.ru<mailto:***@lsrgroup.ru>
www.lsrgroup.ru

[cid:***@01CFFDD1.62EA53F0]
B***@lsrgroup.ru
2014-11-11 14:33:34 UTC
Permalink
>Bilik.AA at lsrgroup.ru wrote:
>> Hello everybody!
>>
>>When I execute ‘radiusd -X’, I got a mistake in my debug output such as:
>>
>>rlm_sql_unixodbc: 01000 [unixODBC][Driver Manager]Can't open lib
>> '/usr/local/lib/libtdsodbc.so' : Invalid shared object handle 0x28606880
>
> The library doesn't exist. Install it.
>
>> What’s the problem here? I have freeradius-server-3.0.4,
> >freetds-0.91.103, unixODBC-2.3.2 installed from ports (FreeBSD 8.4-RELEASE).
>
> Well... ask the ports people where they put the libraries.
>
> Alan DeKok.

Well
 I executed
‘dltest /usr/local/lib/libtdsodbc.so’
answer was
‘SUCCESS: Loaded /usr/local/lib/libtdsodbc.so’

Thus library DOES exist.

С уважеМОеЌ,

АлексаМЎр БОлОк
ИМжеМер пП ОМфПрЌацОПММПй безПпасМПстО
Группа управлеМОя кПЌЌуМОкацОяЌО
Группа ЛСР

E-mail: ***@lsrgroup.ru<mailto:***@lsrgroup.ru>
www.lsrgroup.ru

[cid:***@01CFFDD5.9DAE7030]
Alan DeKok
2014-11-11 18:55:55 UTC
Permalink
***@lsrgroup.ru wrote:
> Well… I executed
>
> ‘dltest /usr/local/lib/libtdsodbc.so’
>
> answer was
>
> ‘SUCCESS: Loaded /usr/local/lib/libtdsodbc.so’
>
> Thus library DOES exist.

FreeRADIUS doesn't do any kind of magic to load the libraries. It
just does normal OS calls to load them.

I don't run FreeBSD, so I don't know what's wrong.

Alan DeKok.
-
List info/subscribe/u
Stefan Paetow
2014-11-11 19:06:34 UTC
Permalink
> FreeRADIUS doesn't do any kind of magic to load the libraries. It
> just does normal OS calls to load them.
>
> I don't run FreeBSD, so I don't know what's wrong.

Alan may be onto something... Is it possible that FreeBSD jail may have something to do with this?

Just a thought. I'd ask on the FreeBSD lists.

With Regards

Stefan Paetow
Moonshot Industry & Research Liaison Coordinator

t: +44 (0)1235 822 125
gpg: 0x3FCE5142
xmpp: ***@jabber.dev.ja.net
skype: stefan.paetow.janet

jisc.ac.uk

Jisc is a registered charity (number 1149740) and a company limited by guarantee which is registered in England under Company No. 5747339, VAT No. GB 197 0632 86. Jisc’s registered office is: One Castlepark, Tower Hill, Bristol, BS2 0JA. T 0203 697 5800.

Jisc Collections and Janet Ltd. is a wholly owned Jisc subsidiary and a company limited by guarantee which is registered in England under Company No. number 2881024, VAT No. GB 197 0632 86. The registered office is: Lumen House, Library Avenue, Harwell, Didcot, Oxfordshire, OX11 0SG. T 01235 822200.


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Alan DeKok
2014-11-11 14:10:38 UTC
Permalink
***@lsrgroup.ru wrote:
> Hello everybody!
>
> When I execute ‘radiusd -X’, I got a mistake in my debug output such as:
>
> rlm_sql_unixodbc: 01000 [unixODBC][Driver Manager]Can't open lib
> '/usr/local/lib/libtdsodbc.so' : Invalid shared object handle 0x28606880

The library doesn't exist. Install it.

> What’s the problem here? I have freeradius-server-3.0.4,
> freetds-0.91.103, unixODBC-2.3.2 installed from ports (FreeBSD 8.4-RELEASE).

Well... ask the ports people where they put the libraries.

Alan DeKok.
-
List info/subscribe/unsubscribe?
Loading...