[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#155779: TypeError: cannot add type "None" to string



On Wed, 2002-08-07 at 11:07, Matt Kraai wrote:

> You should specify the dynamic linker executable, either via the
> `--ldlib' option or the LDLIB environment variable.

--ldlib /lib/ld-linux.so.2 and --ldlib /lib/ld-so both get rid of that
error.

> 
> I don't understand why it isn't falling back to a reasonable
> default, though.  Could you please send us the results of adding
> `-v -v' to the original command?

Sure. Here they are:

anthony@bohr:anthony$ mklibs -v -v -d /tmp/newlibs /usr/bin/atftp 
I: library reduction pass 1
Objects: atftp
Object: /usr/bin/atftp
calling readelf -s -W /usr/bin/atftp
calling objdump --private-headers /usr/bin/atftp
Still need: getservbyname
Still need: strftime
Still need: closelog
Still need: rl_getc
Still need: sendto
Still need: write_history
Still need: fileno
Still need: __rawmemchr
Still need: recvfrom
Still need: time
Still need: openlog
Still need: signal
Still need: bind
Still need: fsync
Still need: __strtol_internal
Still need: perror
Still need: setsockopt
Still need: strncmp
Still need: memcpy
Still need: getopt_long
Still need: readline
Still need: rl_completion_matches
Still need: __register_frame_info
Still need: gettimeofday
Still need: gethostbyname
Still need: argz_count
Still need: getenv
Still need: free
Still need: fseek
Still need: strcpy
Still need: localtime
Still need: __strdup
Still need: read_history
Still need: strrchr
Still need: malloc
Still need: __fxstat
Still need: getpid
Still need: exit
Still need: fread
Still need: argz_extract
Still need: add_history
Still need: using_history
Still need: argz_create_sep
Still need: fwrite
Still need: fdopen
Still need: select
Still need: __deregister_frame_info
Still need: __libc_start_main
Still need: gethostname
Still need: sprintf
Still need: rl_kill_full_line
Still need: strncat
Still need: strncpy
Still need: feof
Still need: open
Still need: fopen
Still need: fflush
Still need: close
Still need: socket
Still need: printf
Still need: getsockname
Still need: connect
Still need: fprintf
Still need: syslog
Still need: strcasecmp
Still need: fclose
Still need: memset
Still need: sys_siglist
Still need: realloc
Still need: snprintf
Still need: previous_history
Still need: vsnprintf
Still need: strncasecmp
73 symbols, 73 unresolved
resolving /lib//libreadline.so.4
resolved to /lib/libreadline.so.4.3
calling readelf -s -W /lib/libreadline.so.4.3
resolving /lib//libc.so.6
resolved to /lib/libc-2.2.5.so
calling readelf -s -W /lib/libc-2.2.5.so
reducing libreadline.so.4
read_history using_history readline rl_getc rl_completion_matches
add_history write_history previous_history rl_kill_full_line
resolving /lib//libreadline.so.4
resolved to /lib/libreadline.so.4.3
No pic file found for /lib/libreadline.so.4.3 ; copying
calling objcopy --strip-unneeded -R .note -R .comment
/lib/libreadline.so.4.3 /tmp/newlibs/libreadline.so.4.3-so-stripped
reducing libc.so.6
getservbyname strftime getopt_long closelog sendto __rawmemchr memset
recvfrom time openlog signal bind setsockopt fsync __strtol_internal
perror fileno memcpy argz_create_sep __register_frame_info gettimeofday
gethostbyname argz_count getenv free fprintf strcpy localtime __strdup
strrchr __fxstat getpid exit argz_extract sprintf fseek fwrite fdopen
__deregister_frame_info gethostname strncpy strncat select open feof
fopen fflush close socket printf getsockname connect __libc_start_main
syslog strcasecmp fclose fread sys_siglist realloc snprintf strncasecmp
malloc vsnprintf strncmp
resolving /lib//libc.so.6
resolved to /lib/libc-2.2.5.so
No pic file found for /lib/libc-2.2.5.so ; copying
calling objcopy --strip-unneeded -R .note -R .comment /lib/libc-2.2.5.so
/tmp/newlibs/libc-2.2.5.so-so-stripped
I: library reduction pass 2
Objects: atftp
Object: /tmp/newlibs/libreadline.so.4.3-so-stripped
Object: /tmp/newlibs/libc-2.2.5.so-so-stripped
Object: /usr/bin/atftp
calling readelf -s -W /tmp/newlibs/libreadline.so.4.3-so-stripped
calling objdump --private-headers
/tmp/newlibs/libreadline.so.4.3-so-stripped
calling readelf -s -W /tmp/newlibs/libc-2.2.5.so-so-stripped
calling objdump --private-headers /tmp/newlibs/libc-2.2.5.so-so-stripped
calling readelf -s -W /usr/bin/atftp
calling objdump --private-headers /usr/bin/atftp
calling readelf -s -W /tmp/newlibs/libc-2.2.5.so-so-stripped
calling readelf -s -W /tmp/newlibs/libreadline.so.4.3-so-stripped
Still need: tgetent
Still need: _dl_profile_map
Still need: _dl_clktck
Still need: tgoto
Still need: _dl_profile
Still need: _dl_debug_state
Still need: UP
Still need: _dl_sysdep_start
Still need: _dl_lookup_symbol
Still need: _dl_fpu_control
Still need: _dl_nloaded
Still need: _dl_lookup_versioned_symbol
Still need: _dl_lookup_symbol_skip
Still need: _dl_debug_mask
Still need: _dl_initial_searchlist
Still need: _dl_signal_error
Still need: _dl_check_map_versions
Still need: __libc_enable_secure
Still need: _r_debug
Still need: _dl_global_scope_alloc
Still need: tgetnum
Still need: tgetstr
Still need: _dl_lookup_versioned_symbol_skip
Still need: _dl_profile_output
Still need: _dl_starting_up
Still need: _dl_relocate_object
Still need: _dl_platformlen
Still need: _dl_loaded
Still need: _dl_main_searchlist
Still need: _dl_pagesize
Still need: _dl_start_profile
Still need: _dl_origin_path
Still need: _dl_load_lock
Still need: _dl_dst_substitute
Still need: _dl_map_object_deps
Still need: PC
Still need: _dl_catch_error
Still need: _dl_init_all_dirs
Still need: _dl_init
Still need: _dl_mcount
Still need: tgetflag
Still need: tputs
Still need: _dl_lazy
Still need: _dl_out_of_memory
Still need: _dl_unload_cache
Still need: _dl_all_dirs
Still need: _dl_argv
Still need: _dl_debug_printf
Still need: _dl_dst_count
Still need: __libc_stack_end
Still need: BC
Still need: _dl_map_object
180 symbols, 52 unresolved
resolving /lib//libreadline.so.4
resolved to /lib/libreadline.so.4.3
calling readelf -s -W /lib/libreadline.so.4.3
resolving /lib//ld-linux.so.2
resolved to /lib/ld-2.2.5.so
calling readelf -s -W /lib/ld-2.2.5.so
resolving /lib//libc.so.6
resolved to /lib/libc-2.2.5.so
calling readelf -s -W /lib/libc-2.2.5.so
resolving /lib//libncurses.so.5
resolved to /lib/libncurses.so.5.2
calling readelf -s -W /lib/libncurses.so.5.2
duplicate symbol _fini in libreadline.so.4 and libncurses.so.5
duplicate symbol _init in libreadline.so.4 and libncurses.so.5
reducing libreadline.so.4
read_history using_history readline rl_getc rl_completion_matches
add_history write_history previous_history rl_kill_full_line
resolving /lib//libreadline.so.4
resolved to /lib/libreadline.so.4.3
No pic file found for /lib/libreadline.so.4.3 ; copying
calling objcopy --strip-unneeded -R .note -R .comment
/lib/libreadline.so.4.3 /tmp/newlibs/libreadline.so.4.3-so-stripped
reducing ld-linux.so.2
_dl_lookup_versioned_symbol _dl_pagesize _dl_profile_map _dl_debug_mask
_dl_lazy _dl_unload_cache __libc_enable_secure _dl_clktck
_dl_start_profile _dl_signal_error _dl_origin_path
_dl_initial_searchlist _dl_profile _dl_load_lock _dl_check_map_versions
_dl_dst_substitute __libc_stack_end _dl_map_object_deps _r_debug
_dl_debug_state _dl_out_of_memory _dl_global_scope_alloc
_dl_lookup_symbol_skip _dl_catch_error _dl_lookup_versioned_symbol_skip
_dl_init_all_dirs _dl_init _dl_all_dirs _dl_profile_output _dl_argv
_dl_mcount _dl_starting_up _dl_sysdep_start _dl_relocate_object
_dl_platformlen _dl_lookup_symbol _dl_fpu_control _dl_loaded
_dl_dst_count _dl_main_searchlist _dl_nloaded _dl_debug_printf
_dl_map_object
resolving /lib//ld-linux.so.2
resolved to /lib/ld-2.2.5.so
No pic file found for /lib/ld-2.2.5.so ; copying
calling objcopy --strip-unneeded -R .note -R .comment /lib/ld-2.2.5.so
/tmp/newlibs/ld-2.2.5.so-so-stripped
reducing libc.so.6
getservbyname strftime closelog tcflow __xstat __ctype_toupper wctomb
__rawmemchr fclose time wcwidth stdin bind sigdelset gethostbyname
socket getuid setsockopt strcasecmp sigaction getopt_long ioctl closedir
__cxa_finalize free strcpy tcsetattr __deregister_frame_info fcntl
__strdup strrchr sprintf exit towlower write memcpy fseek openlog
endpwent setpwent sigprocmask tcgetattr strchr feof strncpy towupper
close __ctype_get_mb_cur_max fread getsockname connect fprintf abort
syslog __mbrlen readdir strcat memset sys_siglist stdout snprintf
__ctype_tolower malloc vsnprintf strncmp _IO_putc strcmp perror getpwuid
sendto stderr opendir recvfrom iswlower __errno_location signal
siglongjmp memmove fsync putenv fileno iswupper strcoll argz_create_sep
getpwnam __register_frame_info gettimeofday __ctype_b argz_count getenv
sigaddset read __strtol_internal localtime kill __fxstat getpid
argz_extract qsort fwrite fdopen strpbrk gethostname select open fopen
fflush sigemptyset printf __libc_start_main mbrtowc __lxstat strncat
__sigsetjmp access realloc setlocale getpwent strncasecmp
resolving /lib//libc.so.6
resolved to /lib/libc-2.2.5.so
No pic file found for /lib/libc-2.2.5.so ; copying
calling objcopy --strip-unneeded -R .note -R .comment /lib/libc-2.2.5.so
/tmp/newlibs/libc-2.2.5.so-so-stripped
reducing libncurses.so.5
tgetnum UP tgetstr tgetent BC tgetflag tputs PC tgoto
resolving /lib//libncurses.so.5
resolved to /lib/libncurses.so.5.2
No pic file found for /lib/libncurses.so.5.2 ; copying
calling objcopy --strip-unneeded -R .note -R .comment
/lib/libncurses.so.5.2 /tmp/newlibs/libncurses.so.5.2-so-stripped
I: library reduction pass 3
Objects: libreadline.so.4.3-so-stripped libc-2.2.5.so-so-stripped atftp
/tmp/newlibs/libc-2.2.5.so-so-stripped is hardlink to
/tmp/newlibs/libc-2.2.5.so-so-stripped
/tmp/newlibs/libreadline.so.4.3-so-stripped is hardlink to
/tmp/newlibs/libreadline.so.4.3-so-stripped
Object: /tmp/newlibs/libreadline.so.4.3-so-stripped
Object: /tmp/newlibs/libncurses.so.5.2-so-stripped
Object: /tmp/newlibs/ld-2.2.5.so-so-stripped
Object: /tmp/newlibs/libc-2.2.5.so-so-stripped
Object: /usr/bin/atftp
calling readelf -s -W /tmp/newlibs/libreadline.so.4.3-so-stripped
calling objdump --private-headers
/tmp/newlibs/libreadline.so.4.3-so-stripped
calling readelf -s -W /tmp/newlibs/libncurses.so.5.2-so-stripped
calling objdump --private-headers
/tmp/newlibs/libncurses.so.5.2-so-stripped
calling readelf -s -W /tmp/newlibs/ld-2.2.5.so-so-stripped
calling objdump --private-headers /tmp/newlibs/ld-2.2.5.so-so-stripped
calling readelf -s -W /tmp/newlibs/libc-2.2.5.so-so-stripped
calling objdump --private-headers /tmp/newlibs/libc-2.2.5.so-so-stripped
calling readelf -s -W /usr/bin/atftp
calling objdump --private-headers /usr/bin/atftp
calling readelf -s -W /tmp/newlibs/libc-2.2.5.so-so-stripped
calling readelf -s -W /tmp/newlibs/ld-2.2.5.so-so-stripped
calling readelf -s -W /tmp/newlibs/libncurses.so.5.2-so-stripped
calling readelf -s -W /tmp/newlibs/libreadline.so.4.3-so-stripped
205 symbols, 0 unresolved
Traceback (most recent call last):
  File "/usr/bin/mklibs", line 431, in ?
    ld_file = find_lib(ldlib)
  File "/usr/bin/mklibs", line 168, in find_lib
    if os.access(path + "/" + lib, os.F_OK):
TypeError: cannot add type "None" to string

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: