[slang-users] Error On IMPORTING Modules.
John E. Davis
davis at space.mit.edu
Tue Jun 14 13:34:09 EDT 2005
Ben Duncan <ben at versaccounting.com> wrote:
>nm -g =
>
>0000c088 D SLmodule_appmenu_api_version
It looks like it was compiled against slang2.
>ldd -r =
>
> libm.so.6 => /lib/libm.so.6 (0xb7f9c000)
> libc.so.6 => /lib/libc.so.6 (0xb7e6d000)
> /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
This is puzzling. I expected to see a number of unresolved symbols.
For example, if you run "ldd -r" on, e.g., the select module you
should obtain:
#ldd -r ./select-module.so
libm.so.6 => /lib/libm.so.6 (0x4000b000)
libc.so.6 => /lib/libc.so.6 (0x4002d000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
undefined symbol: SLang_peek_at_stack (./select-module.so)
undefined symbol: SLang_create_array (./select-module.so)
undefined symbol: SLfile_get_fd (./select-module.so)
undefined symbol: SLns_create_namespace (./select-module.so)
undefined symbol: SLang_free_array (./select-module.so)
undefined symbol: SLang_push_null (./select-module.so)
undefined symbol: SLns_add_intrin_fun_table (./select-module.so)
undefined symbol: SLang_pop_null (./select-module.so)
undefined symbol: SLerrno_set_errno (./select-module.so)
undefined symbol: SLang_pop_array_of_type (./select-module.so)
undefined symbol: SLstruct_create_struct (./select-module.so)
I suspect that you have statically linked slang to your module. How
are you compiling it?
Thanks,
--John
More information about the slang-users-l
mailing list