slang-users mailing list

[2005 Date Index] [2005 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [slang-users] Error on RC5 modules


root@desktop:src-->:  ldd -r /usr/lib/slang/v2/modules/slagmenu-module.so
ldd: warning: you do not have execution permission for `/usr/lib/slang/v2/modules/slagmenu-module.so'
        libm.so.6 => /lib/libm.so.6 (0xb7fa3000)
        libc.so.6 => /lib/libc.so.6 (0xb7e74000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
undefined symbol: SLsmg_Display_Eight_Bit       (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLsmg_Tab_Width       (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLsmg_Newline_Behavior        (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLsmg_Backspace_Moves (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLtt_Screen_Rows      (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLtt_Screen_Cols      (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLtt_Use_Ansi_Colors  (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLtt_Ignore_Beep      (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLang_flush_input     (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLtt_set_cursor_visibility    (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLtt_beep     (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLsmg_erase_eos       (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLkp_init     (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLsmg_write_string    (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLsmg_write_char      (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLsmg_draw_box        (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLang_add_cleanup_function    (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLsmg_gotorc  (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLsmg_touch_lines     (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLtt_set_color        (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLang_init_tty        (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLns_create_namespace (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLsmg_refresh (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLsmg_resume_smg      (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLtt_write_to_status_line     (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLsig_unblock_signals (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLang_reset_tty       (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLns_add_intrin_var_table     (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLsmg_set_char_set    (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLang_push_string     (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLsmg_reinit_smg      (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLsmg_write_nchars    (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLtt_get_terminfo     (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLang_exit_error      (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLns_add_intrin_fun_table     (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLsig_block_signals   (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLkp_getkey   (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLsmg_write_nstring   (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLsmg_draw_hline      (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLtt_set_mono (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLsmg_erase_eol       (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLsmg_suspend_smg     (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLsmg_fill_region     (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLsmg_set_color       (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLsmg_set_color_in_region     (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLns_add_iconstant_table      (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLsmg_reset_smg       (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLfree        (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLpop_string  (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLsmg_init_smg        (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLsmg_read_raw        (/usr/lib/slang/v2/modules/slagmenu-module.so)
undefined symbol: SLtt_get_screen_size  (/usr/lib/slang/v2/modules/slagmenu-module.so)
root@desktop:src-->:

And here is the MakeFile for it:

# -*- sh -*-
MODULES = slagmenu-module.so
#SLFILES = slsmg termios select fcntl varray pcre
SLFILES =
#---------------------------------------------------------------------------
CC_SHARED       = gcc $(CFLAGS) -shared -fPIC
#---------------------------------------------------------------------------
# Installation location of the slang library
#---------------------------------------------------------------------------
prefix          = /usr
exec_prefix     = ${prefix}
SLANG_INC       = -I /usr/include
SLAG_INC        = -I ../include
#SLANG_LIB      = #-L${exec_prefix}/lib -lslang

#---------------------------------------------------------------------------
# If building the PCRE module, you may need to set these
#---------------------------------------------------------------------------
PCRE_INC        =
PCRE_LIB        =  -lpcre
#---------------------------------------------------------------------------
# Installation location of the modules
#---------------------------------------------------------------------------
MODULE_INSTALL_DIR = ${exec_prefix}/lib/slang/v2/modules
INSTALL         = /usr/bin/ginstall -c
INSTALL_DATA    = ${INSTALL} -m 644
MKINSDIR        = ../autoconf/mkinsdir.sh
SLSH_DIR        = $(prefix)/share/slsh
#---------------------------------------------------------------------------
# DESTDIR is designed to facilitate making packages.  Normally it is empty
#---------------------------------------------------------------------------
DESTDIR =
DEST_MODULEDIR  = $(DESTDIR)$(MODULE_INSTALL_DIR)
DEST_SLSH_DIR   = $(DESTDIR)$(SLSH_DIR)
#---------------------------------------------------------------------------
RPATH = -Wl,-R${exec_prefix}/lib

#LIBS = $(RPATH) $(SLANG_LIB) $(DL_LIB) -lm
LIBS = $(RPATH) $(DL_LIB) -lm
INCS = $(SLANG_INC) $(SLAG_INC)
# UINCS = $(SLAG_INC)

all: $(MODULES)

slagmenu-module.so: appmenu.c
        $(CC_SHARED) $(INCS) appmenu.c utils.c -o slagmenu-module.so $(LIBS)
# newt-module.so: newt-module.c config.h
#       $(CC_SHARED) $(INCS) newt-module.c -o newt-module.so -lnewt $(LIBS)
# termios-module.so: termios-module.c config.h
#       $(CC_SHARED) $(INCS) termios-module.c -o termios-module.so $(LIBS)

install: all
        -$(MKINSDIR) $(DEST_MODULEDIR)
        @for i in $(MODULES); \
        do \
                echo $(INSTALL_DATA) $$i $(DEST_MODULEDIR); \
                $(INSTALL_DATA) $$i $(DEST_MODULEDIR); \
        done
        @for i in $(SLFILES); \
        do \
                echo $(INSTALL_DATA) $$i.sl $(DEST_MODULEDIR); \
                $(INSTALL_DATA) $$i.sl $(DEST_SLSH_DIR); \
        done
clean:
        -/bin/rm -f $(MODULES) *~


John E. Davis wrote:
Ben Duncan <ben@xxxxxxxxxxxxxxxxxx> wrote:

Recompiled and linked my slagmenu module.


What does

  ldd -r /usr/lib/slang/v2/modules/slagmenu-module.so

produce?

Thanks,
--John


--
Ben Duncan   - VersAccounting Software LLC 336 Elton Road  Jackson MS, 39212
"Never attribute to malice, that which can be adequately explained by stupidity"
       - Hanlon's Razor


_______________________________________________
To unsubscribe, visit http://jedsoft.org/slang/mailinglists.html


[2005 date index] [2005 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]