I have a problem loading freeradius since i enabled sqlippool i get the following message: freeradius: symbol lookup error: /usr/lib/freeradius/rlm_sqlippool-2.0.5.so: undefined symbol: sql_get_socket here the result of an ldd against rlm_sqlippool: ldd /usr/lib/freeradius/rlm_sqlippool-2.0.5.so linux-gate.so.1 => (0xf57fe000) libfreeradius-radius-2.0.5.so => /usr/lib/freeradius/libfreeradius-radius-2.0.5.so (0xb7f54000) libnsl.so.1 => /lib/tls/i686/cmov/libnsl.so.1 (0xb7f37000) libresolv.so.2 => /lib/tls/i686/cmov/libresolv.so.2 (0xb7f23000) libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7f0b000) libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7dbc000) /lib/ld-linux.so.2 (0xb7f7b000) and none of the linked library contains any sql_get_socket symbol (in fact for most of thoose lib files nm returns no symbols) What the hell did I miss?
Alexandre Chapellon wrote:
I have a problem loading freeradius since i enabled sqlippool
You need to enable the SQL module, too.
i get the following message: freeradius: symbol lookup error: /usr/lib/freeradius/rlm_sqlippool-2.0.5.so: undefined symbol: sql_get_socket ... and none of the linked library contains any sql_get_socket symbol (in fact for most of thoose lib files nm returns no symbols)
What the hell did I miss?
List "sql" in the "instantiate" section so it's loaded, too. Alan DeKok.
Alan DeKok a écrit :
Alexandre Chapellon wrote:
I have a problem loading freeradius since i enabled sqlippool
You need to enable the SQL module, too.
i get the following message: freeradius: symbol lookup error: /usr/lib/freeradius/rlm_sqlippool-2.0.5.so: undefined symbol: sql_get_socket
...
and none of the linked library contains any sql_get_socket symbol (in fact for most of thoose lib files nm returns no symbols)
What the hell did I miss?
List "sql" in the "instantiate" section so it's loaded, too.
In fact I am using too different sql modules, the first for authentication (named oracledb which uses oracle driver) and the second for accouting (named mysqldb, which uses mysql shims... of course). So i have no more module called "sql", and so i tryed adding "mysqldb" instead of "sql". Unfortunatly, I still get the undefined symbol error when running freeradius -X, and looking deeper at the output I can see in the lines that the rlm_sql module seems to be linked correctly... as you can see: ... rlm_sql (mysqldb): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked rlm_sql (mysqldb): Attempting to connect to freeradius@127.0.0.1:/accounting rlm_sql (mysqldb): starting 0 rlm_sql (mysqldb): Attempting to connect rlm_sql_mysql #0 rlm_sql_mysql: Starting connect to MySQL server for #0 rlm_sql (mysqldb): Connected new DB handle, #0 ... freeradius: symbol lookup error: /usr/lib/freeradius/rlm_sqlippool-2.0.5.so: undefined symbol: sql_get_socket
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Have you replaced sql with proper instance name in sqlippool.conf? Ivan Kalik Kalik Informatika ISP Dana 5/9/2008, "Alexandre Chapellon" <alexandre.chapellon@mana.pf> piše:
Alan DeKok a écrit :
Alexandre Chapellon wrote:
I have a problem loading freeradius since i enabled sqlippool
You need to enable the SQL module, too.
i get the following message: freeradius: symbol lookup error: /usr/lib/freeradius/rlm_sqlippool-2.0.5.so: undefined symbol: sql_get_socket
...
and none of the linked library contains any sql_get_socket symbol (in fact for most of thoose lib files nm returns no symbols)
What the hell did I miss?
List "sql" in the "instantiate" section so it's loaded, too.
In fact I am using too different sql modules, the first for authentication (named oracledb which uses oracle driver) and the second for accouting (named mysqldb, which uses mysql shims... of course). So i have no more module called "sql", and so i tryed adding "mysqldb" instead of "sql". Unfortunatly, I still get the undefined symbol error when running freeradius -X, and looking deeper at the output I can see in the lines that the rlm_sql module seems to be linked correctly... as you can see:
.... rlm_sql (mysqldb): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked rlm_sql (mysqldb): Attempting to connect to freeradius@127.0.0.1:/accounting rlm_sql (mysqldb): starting 0 rlm_sql (mysqldb): Attempting to connect rlm_sql_mysql #0 rlm_sql_mysql: Starting connect to MySQL server for #0 rlm_sql (mysqldb): Connected new DB handle, #0 .... freeradius: symbol lookup error: /usr/lib/freeradius/rlm_sqlippool-2.0.5.so: undefined symbol: sql_get_socket
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
tnt@kalik.net a écrit :
Have you replaced sql with proper instance name in sqlippool.conf?
Yes I added the name of the sql instance used for accouting: mysqldb in my case.
Ivan Kalik Kalik Informatika ISP
Dana 5/9/2008, "Alexandre Chapellon" <alexandre.chapellon@mana.pf> piše:
Alan DeKok a écrit :
Alexandre Chapellon wrote:
I have a problem loading freeradius since i enabled sqlippool
You need to enable the SQL module, too.
i get the following message: freeradius: symbol lookup error: /usr/lib/freeradius/rlm_sqlippool-2.0.5.so: undefined symbol: sql_get_socket
...
and none of the linked library contains any sql_get_socket symbol (in fact for most of thoose lib files nm returns no symbols)
What the hell did I miss?
List "sql" in the "instantiate" section so it's loaded, too.
In fact I am using too different sql modules, the first for authentication (named oracledb which uses oracle driver) and the second for accouting (named mysqldb, which uses mysql shims... of course). So i have no more module called "sql", and so i tryed adding "mysqldb" instead of "sql". Unfortunatly, I still get the undefined symbol error when running freeradius -X, and looking deeper at the output I can see in the lines that the rlm_sql module seems to be linked correctly... as you can see:
.... rlm_sql (mysqldb): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked rlm_sql (mysqldb): Attempting to connect to freeradius@127.0.0.1:/accounting rlm_sql (mysqldb): starting 0 rlm_sql (mysqldb): Attempting to connect rlm_sql_mysql #0 rlm_sql_mysql: Starting connect to MySQL server for #0 rlm_sql (mysqldb): Connected new DB handle, #0 .... freeradius: symbol lookup error: /usr/lib/freeradius/rlm_sqlippool-2.0.5.so: undefined symbol: sql_get_socket
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Alexandre Chapellon wrote:
In fact I am using too different sql modules, the first for authentication (named oracledb which uses oracle driver) and the second for accouting (named mysqldb, which uses mysql shims... of course). So i have no more module called "sql", and so i tryed adding "mysqldb" instead of "sql".
I'm presuming this is in the sqlippool configuration...
freeradius: symbol lookup error: /usr/lib/freeradius/rlm_sqlippool-2.0.5.so: undefined symbol: sql_get_socket
You might need to set RTDL_GLOBAL in the various library flags. Or, hack the build system so that sqlippool depends explicitly on rlm_sql. It's horrible, but it works. Hmm... a simpler way is simply to have the rlm_sql module add the function pointers to it's instance data structure. That way, the other modules can grab the function pointers from that, and use them. Try checking out a fresh copy from git. Alan DeKok.
Must be always included from the latest release of mpd on FreeBSD systems. Must be included in dictionary config file and must be present as file itself among other dictionary files of different vendors. I always add all this stuff manually.
participants (4)
-
Alan DeKok -
Alexandre Chapellon -
Maxim Sirenko -
tnt@kalik.net