undefined symbol: sql_get_socket
I compiled deb packages from 2.0.4 sources. I would use rlm_sqlippool but I get this message: symbol lookup error: /usr/lib/freeradius/rlm_sqlippool-2.0.4.so: undefined symbol: sql_get_socket How can I solve that?
Giovanni Lovato wrote:
I compiled deb packages from 2.0.4 sources. I would use rlm_sqlippool but I get this message:
symbol lookup error: /usr/lib/freeradius/rlm_sqlippool-2.0.4.so: undefined symbol: sql_get_socket
How can I solve that?
Link the server statically: $ ./configure --disable-shared Then again, Debian might only have shared versions of some libraries (e.g. Perl), so this might not work, either. Alan DeKok.
Alan DeKok wrote:
Giovanni Lovato wrote:
I compiled deb packages from 2.0.4 sources. I would use rlm_sqlippool but I get this message:
symbol lookup error: /usr/lib/freeradius/rlm_sqlippool-2.0.4.so: undefined symbol: sql_get_socket
How can I solve that?
Link the server statically:
$ ./configure --disable-shared
Then again, Debian might only have shared versions of some libraries (e.g. Perl), so this might not work, either.
It doesn't work, `ld' complains about unavailable static libraries. What I can't understand is why other module that use MySQL aren't affected by this problem!
Am 27.05.2008 um 18:20 schrieb Giovanni Lovato:
Alan DeKok wrote:
Giovanni Lovato wrote:
I compiled deb packages from 2.0.4 sources. I would use rlm_sqlippool but I get this message:
symbol lookup error: /usr/lib/freeradius/rlm_sqlippool-2.0.4.so: undefined symbol: sql_get_socket
How can I solve that?
Link the server statically:
$ ./configure --disable-shared
Then again, Debian might only have shared versions of some libraries (e.g. Perl), so this might not work, either.
It doesn't work, `ld' complains about unavailable static libraries. What I can't understand is why other module that use MySQL aren't affected by this problem! - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/ users.html
Try to use nm(1) on the .so files and see if the symbol is different in the two libraries. I have just checked FreeRadius 2.0.2 on Mac and the symbols are indeed different. One time T (text section symbol) for rlm_sql.so but U (undefined) for rlm_sqlippool.so As for what this difference exactly means and where to try to fix this, I do not know. Sorry. Nicolas Goutte extragroup GmbH - Karlsruhe Waldstr. 49 76133 Karlsruhe Germany Geschäftsführer: Stephan Mönninghoff, Hans Martin Kern, Tilman Haerdle Registergericht: Amtsgericht Münster / HRB: 5624 Steuer Nr.: 337/5903/0421 / UstID: DE 204607841
Nicolas Goutte wrote:
Am 27.05.2008 um 18:20 schrieb Giovanni Lovato:
Alan DeKok wrote:
Giovanni Lovato wrote:
I compiled deb packages from 2.0.4 sources. I would use rlm_sqlippool but I get this message:
symbol lookup error: /usr/lib/freeradius/rlm_sqlippool-2.0.4.so: undefined symbol: sql_get_socket
How can I solve that?
Link the server statically:
$ ./configure --disable-shared
Then again, Debian might only have shared versions of some libraries (e.g. Perl), so this might not work, either.
It doesn't work, `ld' complains about unavailable static libraries. What I can't understand is why other module that use MySQL aren't affected by this problem! - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Try to use nm(1) on the .so files and see if the symbol is different in the two libraries.
Why? It will be, because it's meant to be.
I have just checked FreeRadius 2.0.2 on Mac and the symbols are indeed different. One time T (text section symbol) for rlm_sql.so but U (undefined) for rlm_sqlippool.so
Because rlm_sqlippool imports it from rlm_sql
As for what this difference exactly means and where to try to fix this, I do not know. Sorry.
It means nothing. It's normal.
Phil Mayers wrote:
Nicolas Goutte wrote:
Am 27.05.2008 um 18:20 schrieb Giovanni Lovato:
Alan DeKok wrote:
Giovanni Lovato wrote:
I compiled deb packages from 2.0.4 sources. I would use rlm_sqlippool but I get this message:
symbol lookup error: /usr/lib/freeradius/rlm_sqlippool-2.0.4.so: undefined symbol: sql_get_socket
How can I solve that?
Link the server statically:
$ ./configure --disable-shared
Then again, Debian might only have shared versions of some libraries (e.g. Perl), so this might not work, either.
It doesn't work, `ld' complains about unavailable static libraries. What I can't understand is why other module that use MySQL aren't affected by this problem!
Try to use nm(1) on the .so files and see if the symbol is different in the two libraries.
Why? It will be, because it's meant to be.
I have just checked FreeRadius 2.0.2 on Mac and the symbols are indeed different. One time T (text section symbol) for rlm_sql.so but U (undefined) for rlm_sqlippool.so
Because rlm_sqlippool imports it from rlm_sql
As for what this difference exactly means and where to try to fix this, I do not know. Sorry.
It means nothing. It's normal.
Do you mean it has nothing to do with the "undefined symbol" error when launching freeradius? I still can't understand why other modules that use MySQL aren't affected by this issue, may it be a missing inclusion in the Makefile?
Am 28.05.2008 um 11:43 schrieb Phil Mayers:
Nicolas Goutte wrote:
Am 27.05.2008 um 18:20 schrieb Giovanni Lovato:
Alan DeKok wrote:
Giovanni Lovato wrote:
I compiled deb packages from 2.0.4 sources. I would use rlm_sqlippool but I get this message:
symbol lookup error: /usr/lib/freeradius/rlm_sqlippool-2.0.4.so: undefined symbol: sql_get_socket
How can I solve that?
Link the server statically:
$ ./configure --disable-shared
Then again, Debian might only have shared versions of some libraries (e.g. Perl), so this might not work, either.
It doesn't work, `ld' complains about unavailable static libraries. What I can't understand is why other module that use MySQL aren't affected by this problem! - List info/subscribe/unsubscribe? See http://www.freeradius.org/ list/users.html Try to use nm(1) on the .so files and see if the symbol is different in the two libraries.
Why? It will be, because it's meant to be.
I have just checked FreeRadius 2.0.2 on Mac and the symbols are indeed different. One time T (text section symbol) for rlm_sql.so but U (undefined) for rlm_sqlippool.so
Because rlm_sqlippool imports it from rlm_sql
As for what this difference exactly means and where to try to fix this, I do not know. Sorry.
It means nothing. It's normal.
Well, at least it is a confirmation that the function is not called the same way in both libraries,
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/ users.html
Nicolas Goutte extragroup GmbH - Karlsruhe Waldstr. 49 76133 Karlsruhe Germany Geschäftsführer: Stephan Mönninghoff, Hans Martin Kern, Tilman Haerdle Registergericht: Amtsgericht Münster / HRB: 5624 Steuer Nr.: 337/5903/0421 / UstID: DE 204607841
Giovanni Lovato wrote:
It doesn't work, `ld' complains about unavailable static libraries. What I can't understand is why other module that use MySQL aren't affected by this problem!
Because the problem is that the sqlippool module uses code from rlm_sql, which in turn uses MySQL. There is NO problem with just using rlm_sql. It's using sqlippool that causes problems. The underlying issue is that Debian has RTLD_GLOBAL turned off, where other distributions has it turned on. We're looking into ways to fix this. Alan DeKok.
participants (4)
-
Alan DeKok -
Giovanni Lovato -
Nicolas Goutte -
Phil Mayers