Hi everyone, I am testing eap2 in freeradius. I run "radiusd -X", I got following error message " radiusd: symbol lookup error: /usr/lib/rlm_eap2-2.1.0.so: undefined symbol: eap_server_register_methods " Anyone, have any idea what might be wrong with the configuration? Thank in advance, Thierry
On Wed, Sep 24, 2008 at 04:16:37PM +0200, Chanthearith HUON wrote:
I am testing eap2 in freeradius.
I run "radiusd -X", I got following error message " radiusd: symbol lookup error: /usr/lib/rlm_eap2-2.1.0.so: undefined symbol: eap_server_register_methods "
Anyone, have any idea what might be wrong with the configuration?
Maybe something is wrong with the way symbol names were handled in the libraries.. What does 'nm <file.so> | grep eap_server_register_methods' show for rlm_eap2-2.1.o.so and libeap.so? -- Jouni Malinen PGP id EFC895FA
Hi! Another person but the same problem ;) here is the output: libeap.so: 000304d0 T eap_server_register_methods rlm_eap2-2.1.1.so U eap_server_register_methods So somehow the method is in the libeap but not linked in the rlm. Has anyone an idea to fix that? Greetings Johannes
wrobel2k wrote:
Hi! Another person but the same problem ;) here is the output: libeap.so: 000304d0 T eap_server_register_methods rlm_eap2-2.1.1.so U eap_server_register_methods So somehow the method is in the libeap but not linked in the rlm. Has anyone an idea to fix that?
The modules link dynamically. There's no reason for libeap.so to be *statically* included in rlm_eap2. What other error are you seeing? Alan DeKok.
radiusd: symbol lookup error: /usr/local/lib/rlm_eap2-2.1.1.so: undefined symbol: eap_server_register_methods This is the error that is crashing the radiusd. Or what did you mean with other error? Greetings Johannes
wrobel2k wrote:
radiusd: symbol lookup error: /usr/local/lib/rlm_eap2-2.1.1.so: undefined symbol: eap_server_register_methods
This is the error that is crashing the radiusd. Or what did you mean with other error?
This is a linker issue. Maybe you want to use LD_PRELOAD. Alan DeKok.
Thank you very much. Now it starts up nicely. Now my configuration and testing can start. Greetings Johannes
to wrobel2k: Could you show me, how did you solve this problem? I tried to use LD_PRELOAD too, but with no change. radiusd: symbol lookup error: /usr/local/lib/rlm_eap2-2.1.10.so: undefined symbol: eap_server_register_methods continues -- View this message in context: http://freeradius.1045715.n5.nabble.com/eap2-in-freeradius-tp2794234p4277617... Sent from the FreeRadius - Dev mailing list archive at Nabble.com.
chuckz wrote:
to wrobel2k: Could you show me, how did you solve this problem? I tried to use LD_PRELOAD too, but with no change. radiusd: symbol lookup error: /usr/local/lib/rlm_eap2-2.1.10.so: undefined symbol: eap_server_register_methods continues
The module hasn't been updated in a while. The hostap code may have changed. Alan DeKok.
Thanks Allan for your answer, but can I ask some things about building or linking libeap.so? I have read I guess all comments you posted about this thing and I followed them. but after I used LD_PRELOAD suddenly output changed to: radiusd: symbol lookup error: /home/boris/.git/hostap/eap_example/libeap.so: undefined symbol: wpabuf_put and when I enter command ldd -d libeap.so, I saw this. boris@bo:~/.git/hostap/eap_example$ ldd -d libeap.so linux-gate.so.1 => (0x00812000) libc.so.6 => /lib/libc.so.6 (0x00390000) /lib/ld-linux.so.2 (0x00a04000) undefined symbol: wpabuf_put (./libeap.so) undefined symbol: fips186_2_prf (./libeap.so) undefined symbol: sha1_vector (./libeap.so) undefined symbol: wpa_hexdump_key (./libeap.so) undefined symbol: wpa_printf (./libeap.so) undefined symbol: wpa_hexdump_ascii (./libeap.so) undefined symbol: wpa_hexdump (./libeap.so) undefined symbol: hmac_sha1_vector (./libeap.so) undefined symbol: aes_128_cbc_decrypt (./libeap.so) undefined symbol: os_zalloc (./libeap.so) undefined symbol: wpabuf_alloc (./libeap.so) undefined symbol: wpabuf_free (./libeap.so) undefined symbol: wpabuf_resize (./libeap.so) undefined symbol: random_get_bytes (./libeap.so) undefined symbol: aes_128_cbc_encrypt (./libeap.so) undefined symbol: wpabuf_dup (./libeap.so) undefined symbol: sha256_vector (./libeap.so) undefined symbol: hexstr2bin (./libeap.so) undefined symbol: wpa_hexdump_ascii_key (./libeap.so) undefined symbol: os_strlcpy (./libeap.so) undefined symbol: eloop_register_read_sock (./libeap.so) undefined symbol: eloop_unregister_read_sock (./libeap.so) undefined symbol: os_get_time (./libeap.so) undefined symbol: wpa_snprintf_hex (./libeap.so) I though, that I made shared library libeap.so right, but I'm confused, what I made wrong. Makefile, that's creating libeap.so include OBJS_both += ../src/crypto/libcrypto.a which define all these symbols. I tried to run command nm you posted here, but Ubuntu 10.10 doesn't recognize it. Could you help me withthis staff about linking, please? Thank you so much -- View this message in context: http://freeradius.1045715.n5.nabble.com/eap2-in-freeradius-tp2794234p4277857... Sent from the FreeRadius - Dev mailing list archive at Nabble.com.
chuckz wrote:
Thanks Allan for your answer, but can I ask some things about building or linking libeap.so?
Not really. Building libeap.so is a question for the hostap list. Linking it to FreeRADIUS has already been answered: the rlm_eap2 code is old, and the libeap.so API may have changed.
but after I used LD_PRELOAD suddenly output changed to: radiusd: symbol lookup error: /home/boris/.git/hostap/eap_example/libeap.so:
Ask the hostap people about their software. This is the FreeRADIUS list. Alan DeKok.
participants (5)
-
Alan DeKok -
Chanthearith HUON -
chuckz -
Jouni Malinen -
wrobel2k