radareorg / radare2

UNIX-like reverse engineering framework and command-line toolset
https://www.radare.org/
GNU Lesser General Public License v3.0
20.66k stars 3k forks source link

Build error in ARM926EJ-S rev 5 (v5l): "undefined symbol" in r2/radare2, rabin2, r2agent, rarun2 #4557

Closed unixfreaxjp closed 8 years ago

unixfreaxjp commented 8 years ago

CPU:

$ cat /proc/cpuinfo
Processor       : ARM926EJ-S rev 5 (v5l)
BogoMIPS        : 812.64
Features        : swp half thumb fastmult vfp edsp java
CPU implementer : 0x41
CPU architecture: 5TEJ
CPU variant     : 0x0
CPU part        : 0x926
CPU revision    : 5
Hardware        : ARM-Versatile PB
Revision        : 0000
Serial          : 0000000000000000

Compiled effort 3 times several options, same result.
Version used: (please see below part's details)

Screenshot for PoC: Noted: please mind the sh: 11 error

Preliminary assumption error location at:

radare.c ??

^ This assumption is proven wrong later on, since other binaries are affected. Next assumption: Build error.

unixfreaxjp commented 8 years ago

Received advise:

Seeing some fixed..recompiling:

unixfreaxjp commented 8 years ago

okay...the problem persists..

# r2
r2: symbol lookup error: r2: undefined symbol: r_anal_version

debug tracelog:

mprotect(0xb6e4a000, 4096, PROT_READ)   = 0
mprotect(0xb6e56000, 4096, PROT_READ)   = 0
mprotect(0xb6e78000, 4096, PROT_READ)   = 0
mprotect(0xb6e9b000, 4096, PROT_READ)   = 0
mprotect(0xb6ed6000, 4096, PROT_READ)   = 0
mprotect(0xb6ee3000, 4096, PROT_READ)   = 0
mprotect(0xb6ef0000, 4096, PROT_READ)   = 0
mprotect(0xb6efd000, 4096, PROT_READ)   = 0
mprotect(0xb6f0a000, 4096, PROT_READ)   = 0
mprotect(0xb6f52000, 4096, PROT_READ)   = 0
writev(2, [{"r2", 2}, {": ", 2}, {"symbol lookup error", 19}, {": ", 2}, {"r2", 2}, {": ", 2}, {"undefined symbol: r_anal_version", 32}, {"", 0}, {"", 0}, {"\n", 1}], 10r2: symbol lookup error: r2: undefined symbol: r_anal_version
) = 62
exit_group(127)                         = ?
crowell commented 8 years ago

these "warning unused variable" messages aren't really that useful, they're warnings not errors. I don't have access to a armv5 machine, but i can try on armv6 to see if i can repro.

XVilka commented 8 years ago

@unixfreaxjp probably archiving whole radare2 directory you've been building in would help us to find a clue. Thanks

unixfreaxjp commented 8 years ago

Not warning, program was terminated (exit_group due to error).

Additionally: rabin2 seems also has same problem:

rabin2
rabin2: symbol lookup error: rabin2: undefined symbol: r_core_fini

Debug:

open("/usr/lib/radare2/0.10.2-git/asm_mips_gnu.so", O_RDONLY) = 7
read(7, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\224\233\0\0004\0\0\0"..., 512) = 512
lseek(7, 274512, SEEK_SET)              = 274512
read(7, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1480) = 1480
lseek(7, 145425, SEEK_SET)              = 145425
read(7, "A+\0\0\0aeabi\0\1!\0\0\0\0054T\0\6\2\10\1\t\1\22\4\24\1\25\1"..., 44) = 44
fstat64(7, {st_mode=S_IFREG|0755, st_size=282103, ...}) = 0
mmap2(NULL, 178664, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 7, 0) = 0xb53de000
mprotect(0xb53f3000, 32768, PROT_NONE)  = 0
mmap2(0xb53fb000, 61440, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 7, 0x15) = 0xb53fb000
close(7)                                = 0
munmap(0xb53de000, 178664)              = 0
getdents64(6, /* 0 entries */, 32768)   = 0
close(6)                                = 0
open("/usr/lib/radare2-extras/0.10.2-git", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/radare2-bindings/0.10.2-git", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
writev(2, [{"rabin2", 6}, {": ", 2}, {"symbol lookup error", 19}, {": ", 2}, {"rabin2", 6}, {": ", 2}, {"undefined symbol: r_core_fini", 29}, {"", 0}, {"", 0}, {"\n", 1}], 10rabin2: symbol lookup error: rabin2: undefined symbol: r_core_fini
) = 67
exit_group(127)                         = ?

Summarized the built errors in ARM5 (Linux):

Local compilation bins:

~/radare2/binr# ls
blob      preload  r2pm    radare2  rafind2  rahash2  rasign2  rax2
Makefile  r2agent  rabin2  radiff2  ragg2    rarun2   rasm2    rules.mk

These are having various "undefined symbol" errors:

./rabin2/rabin2: symbol lookup error: ./rabin2/rabin2: undefined symbol: r_core_fini
./r2agent/r2agent: symbol lookup error: ./r2agent/r2agent: undefined symbol: r_socket_http_accept
./rarun2/rarun2: symbol lookup error: ./rarun2/rarun2: undefined symbol: r_run_help
These other binaries are not having build error at all:
./rahash2/rahash2
Usage: rahash2 [-rBhLkv] [-b S] [-a A] [-c H] [-E A] [-s S] [-f O] [-t O] [file] ...

./rax2/rax2
^C

./r2agent/r2agent
http://localhost:135153/

./ragg2/ragg2
Usage: ragg2 [-FOLsrxhvz] [-a arch] [-b bits] [-k os] [-o file] [-I path]
             [-i sc] [-e enc] [-B hex] [-c k=v] [-C file] [-p pad] [-q off]
             [-q off] [-dDw off:hex] file|f.asm|-

./rarun2/rarun2
Usage: rarun2 [-v] [script.rr2] [directive ..]

./rasm2/rasm2
Usage: rasm2 [-ACdDehLBvw] [-a arch] [-b bits] [-o addr] [-s syntax]
             [-f file] [-F fil:ter] [-i skip] [-l len] 'code'|hex|-
unixfreaxjp commented 8 years ago

Uploading the whole 134M directory now.. Here it is: http://www.mediafire.com/download/j5on19yrkytqf25/radare-ARM-bug4557.tgz

radare commented 8 years ago

This is a build issue, your system is trashed with previous installations or missing libraries. My suggestion on those cases are:

git clean -xdf
./configure --prefix=/usr
make purge
sys/install.sh
unixfreaxjp commented 8 years ago

Thank you, okay testing it: (Warning: this ARM is slow, but in progress...)

git clean -xdf

Removing binr/preload/libr2.d
Removing binr/preload/libr2.o
Removing binr/preload/libr2.so
Removing binr/r2agent/r2agent
Removing binr/r2agent/r2agent.d
Removing binr/r2agent/r2agent.o
Removing binr/rabin2/rabin2
Removing binr/rabin2/rabin2.d
Removing binr/rabin2/rabin2.o
Removing binr/radare2/radare2
Removing binr/radare2/radare2.d
Removing binr/radare2/radare2.o
Removing binr/radiff2/radiff2
Removing binr/radiff2/radiff2.d
Removing binr/radiff2/radiff2.o
Removing binr/rafind2/rafind2
Removing binr/rafind2/rafind2.d
Removing binr/rafind2/rafind2.o
Removing binr/ragg2/ragg2
Removing binr/ragg2/ragg2.d
Removing binr/ragg2/ragg2.o
Removing binr/rahash2/rahash2
Removing binr/rahash2/rahash2.d
Removing binr/rahash2/rahash2.o
Removing binr/rarun2/rarun2
   :
   :
Removing shlr/zip/zlib/uncompr.o
Removing shlr/zip/zlib/zutil.d
Removing shlr/zip/zlib/zutil.o
Removing sys/clean
Removing sys/install
Removing sys/purge

./configure --prefix=/usr

configure-plugins: Loading ./plugins.def.cfg ..
configure-plugins: Generating libr/config.h ..
configure-plugins: Generating libr/config.mk ..
SHARED: io.shm
STATIC: anal.6502 anal.8051 anal.arc anal.arm_cs anal.arm_gnu anal.avr anal.bf anal.cr16 anal.cris anal.csr anal.dalvik anal.ebc anal.gb anal.h8300 anal.i4004 anal.i8080 anal.java anal.m68k anal.m68k_cs anal.malbolge anal.mips_cs anal.mips_gnu anal.msp430 anal.nios2 anal.null anal.pic18c anal.ppc_cs anal.ppc_gnu anal.riscv anal.sh anal.snes anal.sparc_cs anal.sparc_gnu anal.sysz anal.tms320 anal.v810 anal.v850 anal.vax anal.ws anal.x86_cs anal.x86_udis anal.xcore_cs anal.xtensa anal.z80 asm.6502 asm.8051 asm.arc asm.arm_as asm.arm_cs asm.arm_gnu asm.arm_winedbg asm.avr asm.bf asm.cr16 asm.cris_gnu asm.csr asm.dalvik asm.dcpu16 asm.ebc asm.gb asm.h8300 asm.hppa_gnu asm.i4004 asm.i8080 asm.java asm.lanai_gnu asm.lh5801 asm.lm32 asm.m68k asm.m68k_cs asm.malbolge asm.mcs96 asm.mips_cs asm.mips_gnu asm.msp430 asm.nios2 asm.pic18c asm.ppc_cs asm.ppc_gnu asm.rar asm.riscv asm.sh asm.snes asm.sparc_cs asm.sparc_gnu asm.spc700 asm.sysz asm.tms320 asm.tricore asm.v810 asm.v850 asm.vax asm.ws asm.x86_as asm.x86_cs asm.x86_nasm asm.x86_nz asm.x86_olly asm.x86_tab asm.x86_udis asm.xcore_cs asm.xtensa asm.z80 asm.z80_cr bin.any bin.art bin.bf bin.bios bin.bootimg bin.cgc bin.coff bin.dex bin.dol bin.dyldcache bin.elf bin.elf64 bin.fs bin.java bin.mach0 bin.mach064 bin.mbn bin.mz bin.nes bin.nin3ds bin.ninds bin.ningb bin.ningba bin.omf bin.p9 bin.pe bin.pe64 bin.pebble bin.psxexe bin.rar bin.smd bin.sms bin.spc700 bin.te bin.vsf bin.xbe bin.zimg bin_xtr.fatmach0 bin_xtr.xtr_dyldcache bp.arm bp.bf bp.mips bp.ppc bp.x86 core.anal core.java crypto.aes crypto.blowfish crypto.rc2 crypto.rc4 crypto.xor debug.bf debug.bochs debug.esil debug.gdb debug.native debug.rap debug.wind egg.exec egg.xor fs.cpio fs.ext2 fs.fat fs.fb fs.hfs fs.hfsplus fs.iso9660 fs.jfs fs.minix fs.ntfs fs.posix fs.reiserfs fs.sfs fs.squash fs.tar fs.udf fs.ufs fs.xfs io.bfdbg io.bochs io.debug io.default io.gdb io.gzip io.http io.ihex io.mach io.malloc io.mmap io.procpid io.ptrace io.r2pipe io.r2web io.rap io.self io.shm io.sparse io.w32 io.w32dbg io.windbg io.zip lang.vala parse.6502_pseudo parse.arm_pseudo parse.att2intel parse.dalvik_pseudo parse.m68k_pseudo parse.mips_pseudo parse.mreplace parse.ppc_pseudo parse.x86_pseudo
checking build system type... armv5tejl-unknown-linux-gnu
checking host system type... armv5tejl-unknown-linux-gnu
checking target system type... armv5tejl-unknown-linux-gnu
checking for working directories... current
using prefix '/usr'
checking for c compiler... gcc
checking for dynamic library... required
checking for patch... /usr/bin/patch
checking for git... /usr/bin/git
checking host endianness... little
checking for libmagic ... yes
Using PKGCONFIG: pkg-config
checking pkg-config flags for capstone... no
checking for libz ... no
checking for libzip ... no
checking for libssl ... no
Using PKGCONFIG: pkg-config
checking pkg-config flags for openssl... no
checking for liblua5.1 ... no
creating ./config-user.mk
creating libr/include/r_userconf.h
creating pkgcfg/r_io.pc
creating pkgcfg/r_db.pc
creating pkgcfg/r_magic.pc
creating pkgcfg/r_asm.pc
creating pkgcfg/r_bin.pc
creating pkgcfg/r_anal.pc
creating pkgcfg/r_hash.pc
creating pkgcfg/r_cons.pc
creating pkgcfg/r_core.pc
creating pkgcfg/r_lang.pc
creating pkgcfg/r_socket.pc
creating pkgcfg/r_debug.pc
creating pkgcfg/r_reg.pc
creating pkgcfg/r_config.pc
creating pkgcfg/r_flags.pc
creating pkgcfg/r_syscall.pc
creating pkgcfg/r_util.pc
creating pkgcfg/r_search.pc
creating pkgcfg/r_bp.pc
creating pkgcfg/r_parse.pc
creating pkgcfg/r_fs.pc
cleaning temporally files... done

Final report:
 - PREFIX = /usr
 - HAVE_LIB_GMP = 0
 - HAVE_OPENSSL = 0
 - USE_CAPSTONE = 0
 - HAVE_FORK = 1
 - VERSION = 0.10.2-git
 - USE_LIB_ZIP = 0
 - USE_LIB_MAGIC = 0
 - DEBUGGER = 1
 - CC = gcc
 - USERCC = gcc
 - USEROSTYPE = gnulinux
 - LIL_ENDIAN = 1
 - LIBVERSION = 0.10.2-git

make purge

rm -rf "/usr/share/doc/radare2"
cd man ; for FILE in *.1 ; do rm -f "/usr/share/man/man1/$FILE" ; done
rm -f "/usr/share/man/man1/r2.1"
rm -f "/usr/lib/libr_"*"."
rm -f "/usr/lib/pkgconfig/r_"*.pc
rm -rf "/usr/include/libr"
rm -f "/usr/lib/radare2/0.10.2-git/-"*
rm -f ~/bin/"rabin2" rm -f ~/bin/"radare2" rm -f ~/bin/"radiff2" rm -f ~/bin/"rafind2" rm -f ~/bin/"ragg2" rm -f ~/bin/"rahash2" rm -f ~/bin/"rarun2" rm -f ~/bin/"rasign2" rm -f ~/bin/"rasm2" rm -f ~/bin/"rax2" rm -f ~/bin/"r2agent" rm -f ~/bin/"r2pm"
rm -f ~/bin/r2
rmdir ~/bin
rmdir: failed to remove `/root/bin': No such file or directory
make: [user-uninstall] Error 1 (ignored)
for FILE in rabin2 radare2 radiff2 rafind2 ragg2 rahash2 rarun2 rasign2 rasm2 rax2 r2agent r2pm ; do rm -f "/usr/bin/$FILE" ; done
rm -f "/usr/bin/ragg2-cc"
rm -f "/usr/bin/r2"
rm -f "/usr/lib/libr_"*
rm -f "/usr/lib/libr2."
rm -rf "/usr/lib/radare2"
rm -rf "/usr/include/libr"

sys/install.sh

WARNING: Updating from remote repository
Already up-to-date.
sudo: not found

export USE_R2_CAPSTONE=

Removing Makefile.orig
Removing arch/X86/X86ATTInstPrinter.c.orig
Removing arch/X86/X86IntelInstPrinter.c.orig
configure-plugins: Loading ./plugins.def.cfg ..
configure-plugins: Generating libr/config.h ..
configure-plugins: Generating libr/config.mk ..
SHARED: io.shm
STATIC: anal.6502 anal.8051 anal.arc anal.arm_cs anal.arm_gnu anal.avr anal.bf anal.cr16 anal.cris anal.csr anal.dalvik anal.ebc anal.gb anal.h8300 anal.i4004 anal.i8080 anal.java anal.m68k anal.m68k_cs anal.malbolge anal.mips_cs anal.mips_gnu anal.msp430 anal.nios2 anal.null anal.pic18c anal.ppc_cs anal.ppc_gnu anal.riscv anal.sh anal.snes anal.sparc_cs anal.sparc_gnu anal.sysz anal.tms320 anal.v810 anal.v850 anal.vax anal.ws anal.x86_cs anal.x86_udis anal.xcore_cs anal.xtensa anal.z80 asm.6502 asm.8051 asm.arc asm.arm_as asm.arm_cs asm.arm_gnu asm.arm_winedbg asm.avr asm.bf asm.cr16 asm.cris_gnu asm.csr asm.dalvik asm.dcpu16 asm.ebc asm.gb asm.h8300 asm.hppa_gnu asm.i4004 asm.i8080 asm.java asm.lanai_gnu asm.lh5801 asm.lm32 asm.m68k asm.m68k_cs asm.malbolge asm.mcs96 asm.mips_cs asm.mips_gnu asm.msp430 asm.nios2 asm.pic18c asm.ppc_cs asm.ppc_gnu asm.rar asm.riscv asm.sh asm.snes asm.sparc_cs asm.sparc_gnu asm.spc700 asm.sysz asm.tms320 asm.tricore asm.v810 asm.v850 asm.vax asm.ws asm.x86_as asm.x86_cs asm.x86_nasm asm.x86_nz asm.x86_olly asm.x86_tab asm.x86_udis asm.xcore_cs asm.xtensa asm.z80 asm.z80_cr bin.any bin.art bin.bf bin.bios bin.bootimg bin.cgc bin.coff bin.dex bin.dol bin.dyldcache bin.elf bin.elf64 bin.fs bin.java bin.mach0 bin.mach064 bin.mbn bin.mz bin.nes bin.nin3ds bin.ninds bin.ningb bin.ningba bin.omf bin.p9 bin.pe bin.pe64 bin.pebble bin.psxexe bin.rar bin.smd bin.sms bin.spc700 bin.te bin.vsf bin.xbe bin.zimg bin_xtr.fatmach0 bin_xtr.xtr_dyldcache bp.arm bp.bf bp.mips bp.ppc bp.x86 core.anal core.java crypto.aes crypto.blowfish crypto.rc2 crypto.rc4 crypto.xor debug.bf debug.bochs debug.esil debug.gdb debug.native debug.rap debug.wind egg.exec egg.xor fs.cpio fs.ext2 fs.fat fs.fb fs.hfs fs.hfsplus fs.iso9660 fs.jfs fs.minix fs.ntfs fs.posix fs.reiserfs fs.sfs fs.squash fs.tar fs.udf fs.ufs fs.xfs io.bfdbg io.bochs io.debug io.default io.gdb io.gzip io.http io.ihex io.mach io.malloc io.mmap io.procpid io.ptrace io.r2pipe io.r2web io.rap io.self io.shm io.sparse io.w32 io.w32dbg io.windbg io.zip lang.vala parse.6502_pseudo parse.arm_pseudo parse.att2intel parse.dalvik_pseudo parse.m68k_pseudo parse.mips_pseudo parse.mreplace parse.ppc_pseudo parse.x86_pseudo
checking build system type... armv5tejl-unknown-linux-gnu
checking host system type... armv5tejl-unknown-linux-gnu
checking target system type... armv5tejl-unknown-linux-gnu
checking for working directories... current
using prefix '/usr'
checking for c compiler... gcc
checking for dynamic library... required
checking for patch... /usr/bin/patch
checking for git... /usr/bin/git
checking host endianness... little
checking for libmagic ... yes
Using PKGCONFIG: pkg-config
checking pkg-config flags for capstone... no
checking for libz ... no
checking for libzip ... no
checking for libssl ... no
Using PKGCONFIG: pkg-config
checking pkg-config flags for openssl... no
checking for liblua5.1 ... no
creating ./config-user.mk
creating libr/include/r_userconf.h
creating pkgcfg/r_io.pc
creating pkgcfg/r_db.pc
creating pkgcfg/r_magic.pc
creating pkgcfg/r_asm.pc
creating pkgcfg/r_bin.pc
creating pkgcfg/r_anal.pc
creating pkgcfg/r_hash.pc
creating pkgcfg/r_cons.pc
creating pkgcfg/r_core.pc
creating pkgcfg/r_lang.pc
creating pkgcfg/r_socket.pc
creating pkgcfg/r_debug.pc
creating pkgcfg/r_reg.pc
creating pkgcfg/r_config.pc
creating pkgcfg/r_flags.pc
creating pkgcfg/r_syscall.pc
creating pkgcfg/r_util.pc
creating pkgcfg/r_search.pc
creating pkgcfg/r_bp.pc
creating pkgcfg/r_parse.pc
creating pkgcfg/r_fs.pc
cleaning temporally files... done

Final report:
 - PREFIX = /usr
 - HAVE_LIB_GMP = 0
 - HAVE_OPENSSL = 0
 - USE_CAPSTONE = 0
 - HAVE_FORK = 1
 - VERSION = 0.10.2-git
 - USE_LIB_ZIP = 0
 - USE_LIB_MAGIC = 0
 - DEBUGGER = 1
 - CC = gcc
 - USERCC = gcc
 - USEROSTYPE = gnulinux
 - LIL_ENDIAN = 1
 - LIBVERSION = 0.10.2-git
Generating r_version.h file
Update libr/include/r_version.h
CC adler32.c
CC crc32.c
CC deflate.c
CC infback.c
CC inffast.c
CC inflate.c
CC inftrees.c
CC trees.c
CC zutil.c
CC compress.c
CC uncompr.c
CC gzclose.c
CC gzlib.c
CC gzread.c
CC gzwrite.c
LIB libr_z.so
ar: creating libr_z.a
CC zip_add.c
CC zip_add_dir.c
CC zip_add_entry.c
CC zip_close.c
CC zip_delete.c
CC zip_dir_add.c
CC zip_dirent.c
CC zip_discard.c
CC zip_entry.c
CC zip_err_str.c
CC zip_error.c
CC zip_error_clear.c
CC zip_error_get.c
CC zip_error_get_sys_type.c
CC zip_error_strerror.c
CC zip_error_to_str.c
CC zip_extra_field.c
CC zip_extra_field_api.c
CC zip_fclose.c
CC zip_fdopen.c
CC zip_file_add.c
CC zip_file_error_clear.c
CC zip_file_error_get.c
CC zip_file_get_comment.c
CC zip_file_get_offset.c
CC zip_file_rename.c
CC zip_file_replace.c
CC zip_file_set_comment.c
CC zip_file_strerror.c
CC zip_filerange_crc.c
CC zip_fopen.c
CC zip_fopen_encrypted.c
CC zip_fopen_index.c
CC zip_fopen_index_encrypted.c
CC zip_fread.c
CC zip_get_archive_comment.c
CC zip_get_archive_flag.c
CC zip_get_compression_implementation.c
CC zip_get_encryption_implementation.c
CC zip_get_file_comment.c
CC zip_get_num_entries.c
CC zip_get_num_files.c
CC zip_get_name.c
CC zip_memdup.c
CC zip_name_locate.c
CC zip_new.c
CC zip_open.c
CC zip_rename.c
CC zip_replace.c
CC zip_set_archive_comment.c
CC zip_set_archive_flag.c
CC zip_set_default_password.c
CC zip_set_file_comment.c
CC zip_set_file_compression.c
CC zip_set_name.c
CC zip_source_buffer.c
CC zip_source_close.c
CC zip_source_crc.c
CC zip_source_deflate.c
CC zip_source_error.c
CC zip_source_file.c
CC zip_source_filep.c
CC zip_source_free.c
CC zip_source_function.c
CC zip_source_layered.c
CC zip_source_open.c
CC zip_source_pkware.c
CC zip_source_pop.c
CC zip_source_read.c
CC zip_source_stat.c
CC zip_source_window.c
CC zip_source_zip.c
CC zip_source_zip_new.c
CC zip_stat.c
CC zip_stat_index.c
CC zip_stat_init.c
CC zip_strerror.c
CC zip_string.c
CC zip_unchange.c
CC zip_unchange_all.c
CC zip_unchange_archive.c
CC zip_unchange_data.c
CC zip_utf-8.c
LIB libr_zip.so
ar: creating libr_zip.a
ar: creating librz.a
CC mem.c
CC pool.c
CC num.c
CC str.c
CC hex.c
CC file.c
CC range.c
CC prof.c
CC cache.c
CC sys.c
CC buf.c
CC w32-sys.c
CC base64.c
CC base85.c
CC list.c
CC flist.c
CC ht.c
CC ht64.c
CC mixed.c
CC btree.c
CC chmod.c
CC graph.c
CC regcomp.c
CC regerror.c
CC regexec.c
CC uleb128.c
CC sandbox.c
CC calc.c
CC thread.c
CC thread_lock.c
CC thread_msg.c
CC strpool.c
CC bitmap.c
CC strht.c
CC p_date.c
CC p_format.c
CC print.c
CC p_seven.c
CC slist.c
CC randomart.c
CC log.c
CC zip.c
CC debruijn.c
CC utf8.c
CC strbuf.c
CC lib.c
CC name.c
CC spaces.c
CC diff.c
CC bdiff.c
CC stack.c
CC queue.c
CC tree.c
CC des.c
CC swap.c
LD libr_util.so
CC socket.c
CC proc.c
CC http.c
CC http_server.c
CC rap_server.c
CC run.c
CC r2pipe.c
LD libr_socket.so
[capstone] Already in TIP, no need to update from git
HEAD is now at 31b4214 Merge pull request #617 from jmechnich/next-m68k-am-pci-index-8-bit-disp-size-missing-fix
patching file arch/X86/X86ATTInstPrinter.c
Hunk #1 succeeded at 585 (offset 9 lines).
patching file arch/X86/X86IntelInstPrinter.c
Hunk #1 succeeded at 775 (offset 19 lines).
patching file Makefile
Hunk #1 succeeded at 285 (offset 6 lines).
Hunk #2 succeeded at 302 (offset 6 lines).
Hunk #3 succeeded at 311 (offset 6 lines).
Hunk #4 succeeded at 323 (offset 1 line).
  CC      cs.o
  CC      SStream.o
  CC      utils.o
  CC      MCInstrDesc.o
  CC      MCRegisterInfo.o
  CC      arch/ARM/ARMDisassembler.o
CC libbochs.c
  CC      arch/ARM/ARMInstPrinter.o
  CC      arch/ARM/ARMMapping.o
  CC      arch/ARM/ARMModule.o
  CC      arch/AArch64/AArch64BaseInfo.o
  CC      arch/AArch64/AArch64Disassembler.o

BUILD SUMARY
============
  CC      arch/AArch64/AArch64InstPrinter.o
COMPILER gcc
CC gcc
  CC      arch/AArch64/AArch64Mapping.o
HOST_CC gcc
HOST_OS linux
BUILD_OS linux
============

>>>>>>>>>>>>>>>>
NATIVE BUILD SDB
>>>>>>>>>>>>>>>>

  CC      arch/AArch64/AArch64Module.o
ar: creating libr_wind.a
ar: creating lib/libbochs.a
a - src/libbochs.o
  CC      arch/M68K/M68KInstPrinter.o
  CC      arch/M68K/M68KDisassembler.o
  CC      arch/M68K/M68KModule.o
  CC      arch/Mips/MipsDisassembler.o
  CC      arch/Mips/MipsInstPrinter.o
  CC      arch/Mips/MipsMapping.o
CC cdb.c
CC buffer.c
  CC      arch/Mips/MipsModule.o
CC cdb_make.c
  CC      arch/PowerPC/PPCDisassembler.o
  CC      arch/PowerPC/PPCInstPrinter.o
CC ls.c
CC ht.c
  CC      arch/PowerPC/PPCMapping.o
  CC      arch/PowerPC/PPCModule.o
CC sdb.c
  CC      arch/Sparc/SparcDisassembler.o
  CC      arch/Sparc/SparcInstPrinter.o
CC num.c
CC base64.c
  CC      arch/Sparc/SparcMapping.o
CC match.c
CC json.c
  CC      arch/Sparc/SparcModule.o
  CC      arch/SystemZ/SystemZDisassembler.o
  CC      arch/SystemZ/SystemZInstPrinter.o
CC ns.c
  CC      arch/SystemZ/SystemZMapping.o
CC lock.c
CC util.c
CC disk.c
CC query.c
CC array.c
  CC      arch/SystemZ/SystemZModule.o
  CC      arch/SystemZ/SystemZMCTargetDesc.o
CC fmt.c
  CC      arch/X86/X86DisassemblerDecoder.o
  CC      arch/X86/X86Disassembler.o
  CC      arch/X86/X86IntelInstPrinter.o
   :
(taking a coffee)
   :
CC cris-dis.c
p/native/linux/linux_debug.c: In function 稷inux_handle_signals・
p/native/linux/linux_debug.c:43:2: warning: #warning DO MORE RDEBUGREASON HERE [-Wcpp]
p/native/linux/linux_debug.c: In function 穡rint_fpu・
p/native/linux/linux_debug.c:291:2: warning: #warning not implemented for this platform [-Wcpp]
p/native/linux/linux_debug.c: In function 稷inux_reg_read・
p/native/linux/linux_debug.c:376:3: warning: #warning not implemented for this platform [-Wcpp]
p/native/linux/linux_debug.c:296:7: warning: variable 龝howfpu・set but not used [-Wunused-but-set-variable]
p/native/linux/linux_debug.c: At top level:
p/native/linux/linux_debug.c:203:13: warning: 穡rint_fpu・defined but not used [-Wunused-function]
CC cris-opc.c
   :
(taking a nap)
  :
CC asm_csr.c
CC asm_dalvik.c
CC asm_dcpu16.c
CC asm_ebc.c
CC asm_gb.c
CC asm_h8300.c
LD libr_debug.so
CC asm_hppa_gnu.c
CC hppa-dis.c
  :
(playing FF7 arcade)
 :
LD libr_core.so
CC libr2.c
LD libr2.so
CC rax2.c
rax2.c: In function 穹se_stdin・
rax2.c:395:9: warning: unused variable 龝flag・[-Wunused-variable]
LD rax2
CC rasm2.c
LD rasm2
CC rabin2.c
LD rabin2
CC rahash2.c
LD rahash2
CC radiff2.c
LD radiff2
CC radare2.c
LD radare2
CC rafind2.c
LD rafind2
CC rarun2.c
LD rarun2
CC ragg2.c
LD ragg2
CC r2agent.c
LD r2agent
  :
mkdir -p "/usr/share/man/man1"
mkdir -p "/usr/share/man/man7"
cd man && for FILE in *.1 ; do \
                ln -fs "/root/radare2/man/$FILE" "/usr/share/man/man1/$FILE" ; done
cd "/usr/share/man/man1" && ln -fs radare2.1 r2.1
for FILE in *.7 ; do \
                ln -fs "/root/radare2/man/$FILE" "/usr/share/man/man7/$FILE" ; done
/usr/bin/install -d "/usr/share/doc/radare2"
cd doc ; for FILE in * ; do \
                ln -fs "/root/radare2/doc/$FILE" "/usr/share/doc/radare2" ; done
cd pkgcfg ; for FILE in *.pc ; do \
                ln -fs "${PWD}/$FILE" "/usr/lib/pkgconfig/$FILE" ; done
rm -rf "/usr/share/radare2/0.10.2-git/www"
rm -rf "/usr/lib/radare2/0.10.2-git/www" # old dir
mkdir -p "/usr/share/radare2/0.10.2-git/www"
cd "/usr/share/radare2/0.10.2-git/www" ; \
                for FILE in "/root/radare2/shlr/www/"* ; do \
                        ln -fs "$FILE" "/usr/share/radare2/0.10.2-git/www" ; done
cd libr && make install-symlink
make[1]: Entering directory `/root/radare2/libr'
mkdir -p "/usr/bin" \
                "/usr/include" \
                "/usr/lib/pkgconfig" \
                "/usr/lib/radare2/0.10.2-git"
rm -rf "/usr/include/libr" && ln -fs "/root/radare2/libr/include" "/usr/include/libr"
cd ../pkgcfg && for FILE in *.pc ; do \
                if [ -e "/root/radare2/libr/../pkgcfg/${FILE}" ] ; then \
                        ln -fs "/root/radare2/libr/../pkgcfg/${FILE}" \
                                "/usr/lib/pkgconfig/${FILE}" ; \
                fi ; \
        done
cd "/usr/lib/radare2" ; rm -f last ; ln -fs "0.10.2-git" last
make[1]: Leaving directory `/root/radare2/libr'
cd binr && make install-symlink
make[1]: Entering directory `/root/radare2/binr'
mkdir -p "/usr/bin"
for BINARY in rax2 rasm2 rabin2 rahash2 radiff2 radare2 rafind2 rarun2 ragg2 r2agent ; do ln -fs "/root/radare2/binr/$BINARY/$BINARY" "/usr/bin/$BINARY" ; done
ln -fs "/root/radare2/binr/ragg2/ragg2-cc" "/usr/bin/ragg2-cc"
ln -fs "/root/radare2/binr/r2pm/r2pm" "/usr/bin/r2pm"
rm -rf "/usr/share/radare2/0.10.2-git/r2pm"
mkdir -p "/usr/share/radare2/0.10.2-git/"
ln -fs "/root/radare2/binr/r2pm/d" "/usr/share/radare2/0.10.2-git/r2pm"
ln -fs "/usr/bin/radare2" "/usr/bin/r2"
ln -fs "/root/radare2/binr/preload/libr2.so" "/usr/lib/libr2.so"
cd "/usr/lib" && \
                mv libr2.so libr2.so.0.10.2-git && \
                ln -fs libr2.so.0.10.2-git libr2.so
make[1]: Leaving directory `/root/radare2/binr'
cd shlr && make install-symlink
make[1]: Entering directory `/root/radare2/shlr'
mkdir -p "/usr/lib"
#cd tcc ; for FILE in libr_tcc* ; do \
        #       ln -fs `pwd`/$FILE /usr/lib/$FILE ; done
make[1]: Leaving directory `/root/radare2/shlr'
for DIR in libr/cons/d libr/bin/d libr/asm/d libr/syscall/d libr/magic/d libr/anal/d ; do (\
                cd "$DIR" ; \
                echo "$DIR" ; \
                make install-symlink ); \
        done
libr/cons/d
make[1]: Entering directory `/root/radare2/libr/cons/d'
mkdir -p "/usr/share/radare2/0.10.2-git/cons"
for FILE in * ; do \
                if [ $FILE != Makefile ]; then \
                        ln -fs "/root/radare2/libr/cons/d/$FILE" "/usr/share/radare2/0.10.2-git/cons/$FILE" ; \
                fi ; \
        done
make[1]: Leaving directory `/root/radare2/libr/cons/d'
libr/bin/d
make[1]: Entering directory `/root/radare2/libr/bin/d'
mkdir -p "/usr/share/radare2/0.10.2-git/format"
for FILE in * ; do \
                if [ "$FILE" != Makefile ]; then \
                        ln -fs "/root/radare2/libr/bin/d/$FILE" "/usr/share/radare2/0.10.2-git/format/$FILE" ; \
                fi ; \
        done
make[1]: Leaving directory `/root/radare2/libr/bin/d'
libr/asm/d
make[1]: Entering directory `/root/radare2/libr/asm/d'
mkdir -p "/usr/lib/radare2/0.10.2-git/opcodes"
for FILE in *.sdb ; do ln -fs "/root/radare2/libr/asm/d/$FILE" "/usr/lib/radare2/0.10.2-git/opcodes/$FILE" ; done
make[1]: Leaving directory `/root/radare2/libr/asm/d'
libr/syscall/d
make[1]: Entering directory `/root/radare2/libr/syscall/d'
mkdir -p "/usr/lib/radare2/0.10.2-git/syscall"
for FILE in *.sdb ; do ln -fs "/root/radare2/libr/syscall/d/$FILE" "/usr/lib/radare2/0.10.2-git/syscall/$FILE" ; done
make[1]: Leaving directory `/root/radare2/libr/syscall/d'
libr/magic/d
make[1]: Entering directory `/root/radare2/libr/magic/d'
mkdir -p "/usr/lib/radare2/0.10.2-git/magic"
cd default ; for FILE in * ; do ln -fs "/root/radare2/libr/magic/d/default/$FILE" \
                "/usr/lib/radare2/0.10.2-git/magic/$FILE" ; done
make[1]: Leaving directory `/root/radare2/libr/magic/d'
libr/anal/d
make[1]: Entering directory `/root/radare2/libr/anal/d'
mkdir -p "/usr/lib/radare2/0.10.2-git/fcnsign"
for FILE in *.sdb ; do ln -fs "/root/radare2/libr/anal/d/$FILE" "/usr/lib/radare2/0.10.2-git/fcnsign/$FILE" ; done
make[1]: Leaving directory `/root/radare2/libr/anal/d'
mkdir -p "/usr/lib/radare2/0.10.2-git/hud"
cd "/usr/lib/radare2/" ;\
                rm -f last ; ln -fs 0.10.2-git last
cd "/usr/share/radare2/" ;\
                rm -f last ; ln -fs 0.10.2-git last
ln -fs "/root/radare2/doc/hud" "/usr/lib/radare2/0.10.2-git/hud/main"
mkdir -p "/usr/share/radare2/0.10.2-git/"
sys/ldconfig.sh

(DONE!)
unixfreaxjp commented 8 years ago

Gentlemen, not good. Error still persists. Below is the unsuccessful result summary I recorded:

# r2
r2: symbol lookup error: r2: undefined symbol: r_anal_version

# mydumpview|tail -2
writev(2, [{"r2", 2}, {": ", 2}, {"symbol lookup error", 19}, {": ", 2}, {"r2", 2}, {": ", 2}, {"undefined symbol: r_anal_version", 32}, {"", 0}, {"", 0}, {"\n", 1}], 10r2: symbol lookup error: r2: undefined symbol: r_anal_version
) = 62
exit_group(127)                         = ?

# rabin2
rabin2: symbol lookup error: rabin2: undefined symbol: r_core_fini

# mydumpview|tail -2
writev(2, [{"rabin2", 6}, {": ", 2}, {"symbol lookup error", 19}, {": ", 2}, {"rabin2", 6}, {": ", 2}, {"undefined symbol: r_core_fini", 29}, {"", 0}, {"", 0}, {"\n", 1}], 10rabin2: symbol lookup error: rabin2: undefined symbol: r_core_fini
) = 67
exit_group(127)                         = ?

# r2agent
http://localhost:135153/
r2agent: symbol lookup error: r2agent: undefined symbol: r_socket_http_accept

# mydumpview|tail -2
writev(2, [{"r2agent", 7}, {": ", 2}, {"symbol lookup error", 19}, {": ", 2}, {"r2agent", 7}, {": ", 2}, {"undefined symbol: r_socket_http_"..., 38}, {"", 0}, {"", 0}, {"\n", 1}], 10r2agent: symbol lookup error: r2agent: undefined symbol: r_socket_http_accept
) = 78
exit_group(127)                         = ?

# rarun2
Usage: rarun2 [-v] [script.rr2] [directive ..]
rarun2: symbol lookup error: rarun2: undefined symbol: r_run_help

# mydumpview|tail -2
writev(2, [{"rarun2", 6}, {": ", 2}, {"symbol lookup error", 19}, {": ", 2}, {"rarun2", 6}, {": ", 2}, {"undefined symbol: r_run_help", 28}, {"", 0}, {"", 0}, {"\n", 1}], 10rarun2: symbol lookup error: rarun2: undefined symbol: r_run_help
) = 66
exit_group(127)                         = ?

# r2pm
r2: symbol lookup error: r2: undefined symbol: r_anal_version
r2: symbol lookup error: r2: undefined symbol: r_anal_version
$R2PM_DBDIR: No such file or directory.
Usage: r2pm [cmd] [...]
Commands:
 -i,info                 r2pm -i # pkgs info
 -i,install <pkgname>    r2pm -i baleful
 -u,uninstall <pkgname>  r2pm -u baleful (-uu to force)
 -l,list                 list installed pkgs
 -lu                     list uninstalled packages
 -t,test FX,XX,BR BID    check in travis regressions
 -s,search [<keyword>]   search in database
 -v,version              show version
 -h,help                 show this message
 -c,clean                clear source cache
Environment:
SUDO=sudo                use this tool as sudo
R2PM_PREFIX=/usr         prefix for syspkgs
R2PM_PLUGDIR=~/.config/radare2/plugins   # default value, home-install for plugins
R2PM_PLUGDIR=/usr/lib/radare2/last/      # for system-wide plugin installs

# ls -alF ./binr/rasign2/
total 12
drwxr-xr-x  2 xxx xxx 4096 Apr  8 09:34 ./
drwxr-xr-x 16 xxx xxx 4096 Apr  8 09:34 ../
-rw-r--r--  1 xxx xxx 1341 Apr  8 09:34 rasign2.c <==== not compiled to rasign2

The other binaries are successfully compiled as per reported previously. Please let me know anything I can do to fix this.

unixfreaxjp commented 8 years ago

We will need second tester in ARM, preferred Debian user, it has every compiler libs support. Any ARM with 256M RAM will do the work.

radare commented 8 years ago

do you have other installations from debian or in different prefixes? i have several arm boxes with r2 working fine and this is just a build issue. you can even try the official debian packages that are for testing now.. soon available in official repos

radare commented 8 years ago

the error you get is from the ld.so, so stracing or debugging this makes no sense unless you use r2 for debugging, but the error is quite clear. try with ldd and see which libraries are trying to load.

unixfreaxjp commented 8 years ago

okay, on it. This is Wheezy default distribution with all development package installed, checked all libs now, all in place.

unixfreaxjp commented 8 years ago

ldd looks okay to me..am I missing something?

I will ldd these three binaries which has the errors:

radare2/radare2: symbol lookup error: radare2/radare2: undefined symbol: r_anal_version
rabin2/rabin2: symbol lookup error: rabin2/rabin2: undefined symbol: r_core_fini
rarun2/rarun2: symbol lookup error: rarun2/rarun2: undefined symbol: r_run_help

the ldd & (e)glibc version:

ldd --version
ldd (Debian EGLIBC 2.13-38+deb7u10) 2.13
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.

ldd radare2/radare2

        libr_core.so => /usr/lib/arm-linux-gnueabi/libr_core.so (0xb6e77000)
        libr_parse.so => /usr/lib/arm-linux-gnueabi/libr_parse.so (0xb6e6a000)
        libr_search.so => /usr/lib/arm-linux-gnueabi/libr_search.so (0xb6e5d000)
        libr_cons.so => /usr/lib/arm-linux-gnueabi/libr_cons.so (0xb6e50000)
        libr_config.so => /usr/lib/arm-linux-gnueabi/libr_config.so (0xb6e44000)
        libr_bin.so => /usr/lib/arm-linux-gnueabi/libr_bin.so (0xb6e08000)
        libr_debug.so => /usr/lib/arm-linux-gnueabi/libr_debug.so (0xb6df3000)
        libr_anal.so => /usr/lib/arm-linux-gnueabi/libr_anal.so (0xb6dc3000)
        libr_reg.so => /usr/lib/arm-linux-gnueabi/libr_reg.so (0xb6db7000)
        libr_bp.so => /usr/lib/arm-linux-gnueabi/libr_bp.so (0xb6dab000)
        libr_io.so => /usr/lib/arm-linux-gnueabi/libr_io.so (0xb6d93000)
        libr_fs.so => /usr/lib/arm-linux-gnueabi/libr_fs.so (0xb6d5f000)
        libr_asm.so => /usr/lib/arm-linux-gnueabi/libr_asm.so (0xb6ca7000)
        libr_syscall.so => /usr/lib/arm-linux-gnueabi/libr_syscall.so (0xb6c9c000)
        libr_db.so => /usr/lib/arm-linux-gnueabi/libr_db.so (0xb6c8c000)
        libr_hash.so => /usr/lib/arm-linux-gnueabi/libr_hash.so (0xb6c7a000)
        libr_magic.so => /usr/lib/arm-linux-gnueabi/libr_magic.so (0xb6c70000)
        libr_flags.so => /usr/lib/arm-linux-gnueabi/libr_flags.so (0xb6c65000)
        libr_util.so => /usr/lib/arm-linux-gnueabi/libr_util.so (0xb6c44000)
        libr_egg.so => /usr/lib/arm-linux-gnueabi/libr_egg.so (0xb6c30000)
        libr_crypto.so => /usr/lib/libr_crypto.so (0xb6c10000)
        libc.so.6 => /lib/arm-linux-gnueabi/libc.so.6 (0xb6ad5000)
        libdl.so.2 => /lib/arm-linux-gnueabi/libdl.so.2 (0xb6aca000)
        libmagic.so.1 => /usr/lib/arm-linux-gnueabi/libmagic.so.1 (0xb6aa7000)
        libr_line.so.0.9 => /usr/lib/arm-linux-gnueabi/libr_line.so.0.9 (0xb6a99000)
        libr_cmd.so.0.9 => /usr/lib/arm-linux-gnueabi/libr_cmd.so.0.9 (0xb6a8c000)
        libr_print.so.0.9 => /usr/lib/arm-linux-gnueabi/libr_print.so.0.9 (0xb6a7d000)
        libr_lib.so.0.9 => /usr/lib/arm-linux-gnueabi/libr_lib.so.0.9 (0xb6a72000)
        libr_lang.so.0.9 => /usr/lib/arm-linux-gnueabi/libr_lang.so.0.9 (0xb6a66000)
        libr_sign.so.0.9 => /usr/lib/arm-linux-gnueabi/libr_sign.so.0.9 (0xb6a5b000)
        libr_diff.so.0.9 => /usr/lib/arm-linux-gnueabi/libr_diff.so.0.9 (0xb6a4e000)
        libr_socket.so.0.9 => /usr/lib/arm-linux-gnueabi/libr_socket.so.0.9 (0xb6a42000)
        libgcc_s.so.1 => /lib/arm-linux-gnueabi/libgcc_s.so.1 (0xb6a18000)
        /lib/ld-linux.so.3 (0xb6f39000)
        libgmp.so.10 => /usr/lib/arm-linux-gnueabi/libgmp.so.10 (0xb69b7000)
        libm.so.6 => /lib/arm-linux-gnueabi/libm.so.6 (0xb690d000)
        libz.so.1 => /lib/arm-linux-gnueabi/libz.so.1 (0xb68ef000)

ldd rabin2/rabin2

        libr_core.so => /usr/lib/arm-linux-gnueabi/libr_core.so (0xb6f60000)
        libr_db.so => /usr/lib/arm-linux-gnueabi/libr_db.so (0xb6f50000)
        libr_bin.so => /usr/lib/arm-linux-gnueabi/libr_bin.so (0xb6f15000)
        libr_cons.so => /usr/lib/arm-linux-gnueabi/libr_cons.so (0xb6f08000)
        libr_config.so => /usr/lib/arm-linux-gnueabi/libr_config.so (0xb6efc000)
        libr_util.so => /usr/lib/arm-linux-gnueabi/libr_util.so (0xb6eda000)
        libc.so.6 => /lib/arm-linux-gnueabi/libc.so.6 (0xb6d9f000)
        libdl.so.2 => /lib/arm-linux-gnueabi/libdl.so.2 (0xb6d94000)
        libmagic.so.1 => /usr/lib/arm-linux-gnueabi/libmagic.so.1 (0xb6d71000)
        libr_line.so.0.9 => /usr/lib/arm-linux-gnueabi/libr_line.so.0.9 (0xb6d63000)
        libr_io.so.0.9 => /usr/lib/arm-linux-gnueabi/libr_io.so.0.9 (0xb6d4b000)
        libr_cmd.so.0.9 => /usr/lib/arm-linux-gnueabi/libr_cmd.so.0.9 (0xb6d3f000)
        libr_print.so.0.9 => /usr/lib/arm-linux-gnueabi/libr_print.so.0.9 (0xb6d30000)
        libr_flags.so.0.9 => /usr/lib/arm-linux-gnueabi/libr_flags.so.0.9 (0xb6d25000)
        libr_asm.so.0.9 => /usr/lib/arm-linux-gnueabi/libr_asm.so.0.9 (0xb6c6d000)
        libr_lib.so.0.9 => /usr/lib/arm-linux-gnueabi/libr_lib.so.0.9 (0xb6c61000)
        libr_debug.so.0.9 => /usr/lib/arm-linux-gnueabi/libr_debug.so.0.9 (0xb6c4c000)
        libr_hash.so.0.9 => /usr/lib/arm-linux-gnueabi/libr_hash.so.0.9 (0xb6c3b000)
        libr_lang.so.0.9 => /usr/lib/arm-linux-gnueabi/libr_lang.so.0.9 (0xb6c2f000)
        libr_anal.so.0.9 => /usr/lib/arm-linux-gnueabi/libr_anal.so.0.9 (0xb6bff000)
        libr_parse.so.0.9 => /usr/lib/arm-linux-gnueabi/libr_parse.so.0.9 (0xb6bf1000)
        libr_bp.so.0.9 => /usr/lib/arm-linux-gnueabi/libr_bp.so.0.9 (0xb6be5000)
        libr_egg.so.0.9 => /usr/lib/arm-linux-gnueabi/libr_egg.so.0.9 (0xb6bd1000)
        libr_reg.so.0.9 => /usr/lib/arm-linux-gnueabi/libr_reg.so.0.9 (0xb6bc5000)
        libr_search.so.0.9 => /usr/lib/arm-linux-gnueabi/libr_search.so.0.9 (0xb6bb8000)
        libr_syscall.so.0.9 => /usr/lib/arm-linux-gnueabi/libr_syscall.so.0.9 (0xb6bac000)
        libr_sign.so.0.9 => /usr/lib/arm-linux-gnueabi/libr_sign.so.0.9 (0xb6ba1000)
        libr_diff.so.0.9 => /usr/lib/arm-linux-gnueabi/libr_diff.so.0.9 (0xb6b95000)
        libr_socket.so.0.9 => /usr/lib/arm-linux-gnueabi/libr_socket.so.0.9 (0xb6b89000)
        libr_fs.so.0.9 => /usr/lib/arm-linux-gnueabi/libr_fs.so.0.9 (0xb6b55000)
        libr_magic.so.0.9 => /usr/lib/arm-linux-gnueabi/libr_magic.so.0.9 (0xb6b4a000)
        libgcc_s.so.1 => /lib/arm-linux-gnueabi/libgcc_s.so.1 (0xb6b20000)
        /lib/ld-linux.so.3 (0xb6fd9000)
        libgmp.so.10 => /usr/lib/arm-linux-gnueabi/libgmp.so.10 (0xb6abf000)
        libz.so.1 => /lib/arm-linux-gnueabi/libz.so.1 (0xb6aa1000)
        libm.so.6 => /lib/arm-linux-gnueabi/libm.so.6 (0xb69f7000)

ldd rarun2/rarun2

        libr_socket.so => /usr/lib/arm-linux-gnueabi/libr_socket.so (0xb6fc2000)
        libc.so.6 => /lib/arm-linux-gnueabi/libc.so.6 (0xb6e87000)
        /lib/ld-linux.so.3 (0xb6fdf000)
unixfreaxjp commented 8 years ago

the error you get is from the ld.so, so stracing or debugging this makes no sense unless you use r2 for debugging, but the error is quite clear. try with ldd and see which libraries are trying to load.

I will try the testing package in debian repo for arm, due to use "testing" repo you must upgrade the default glibc version beforehand to match the testing version libc, well on it.. I want to see r2 works in arm in here.

FYI the support radare2 package for Linux Debian can be viewed here https://packages.debian.org/search?keywords=radare2

Get:1 http://http.us.debian.org testing Release.gpg [1,554 B]
Get:2 http://http.us.debian.org testing Release [213 kB]
Get:3 http://http.us.debian.org testing/contrib Translation-en [44.3 kB]
Get:4 http://http.us.debian.org testing/main Translation-en [5,073 kB]
Get:5 http://http.us.debian.org testing/non-free Translation-en [74.0 kB]
Get:6 http://http.us.debian.org testing/non-free armel Packages [56.6 kB]
Get:7 http://http.us.debian.org testing/contrib armel Packages [42.3 kB]
Get:8 http://http.us.debian.org testing/main armel Packages [7,524 kB]
unixfreaxjp commented 8 years ago

Well, in the end I must go back using the repo basis version instead git. Considering this as a workaround. Below is the log

apt-get install radare2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
  libgssglue1
Use 'apt-get autoremove' to remove it.
The following extra packages will be installed:
  file libc-bin libc-dev-bin libc-l10n libc6 libc6-dbg libc6-dev
  libgssapi-krb5-2 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0
  libmagic-dev libmagic1 libradare2-0.9.6 libradare2-common libtirpc1 locales
  nfs-common task-english tasksel
Suggested packages:
  glibc-doc krb5-doc krb5-user open-iscsi watchdog
The following packages will be REMOVED:
  locales-all
The following NEW packages will be installed:
  libc-l10n libradare2-0.9.6 libradare2-common
The following packages will be upgraded:
  file libc-bin libc-dev-bin libc6 libc6-dbg libc6-dev libgssapi-krb5-2
  libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libmagic-dev libmagic1
  libtirpc1 locales nfs-common radare2 task-english tasksel
19 upgraded, 3 newly installed, 1 to remove and 257 not upgraded.
Need to get 18.0 MB of archives.
After this operation, 105 MB disk space will be freed.
Do you want to continue [Y/n]? y
Get:1 http://http.us.debian.org/debian/ testing/main tasksel all 3.34 [94.0 kB]
Get:2 http://http.us.debian.org/debian/ testing/main libkeyutils1 armel 1.5.9-8 [11.4 kB]
Get:3 http://http.us.debian.org/debian/ testing/main libk5crypto3 armel 1.13.2+dfsg-5 [111 kB]
Get:4 http://http.us.debian.org/debian/ testing/main libgssapi-krb5-2 armel 1.13.2+dfsg-5 [130 kB]
Get:5 http://http.us.debian.org/debian/ testing/main libkrb5-3 armel 1.13.2+dfsg-5 [261 kB]
Get:6 http://http.us.debian.org/debian/ testing/main libkrb5support0 armel 1.13.2+dfsg-5 [56.6 kB]
Get:7 http://http.us.debian.org/debian/ testing/main nfs-common armel 1:1.2.8-9 [187 kB]
Get:8 http://http.us.debian.org/debian/ testing/main libtirpc1 armel 0.2.5-1 [69.9 kB]
Get:9 http://http.us.debian.org/debian/ testing/main libc6-dev armel 2.22-5 [1,850 kB]
Get:10 http://http.us.debian.org/debian/ testing/main libc-dev-bin armel 2.22-5 [242 kB]
Get:11 http://http.us.debian.org/debian/ testing/main libc6-dbg armel 2.22-5 [5,971 kB]
Get:12 http://http.us.debian.org/debian/ testing/main locales all 2.22-5 [3,340 kB]
64% [12 locales 2,474 kB/3,340 kB 74%]                        96.7 kB/s 1min 7s

[...]

glibc (2.21-2) unstable; urgency=medium

  Starting with version 2.21-1, the glibc requires a 3.2 or later Linux
  kernel.  If you use an older kernel, please upgrade it *before*
  installing this glibc version. Failing to do so will end-up with the
  following failure:

    Preparing to unpack .../libc6_2.21-1_amd64.deb ...
    Checking for services that may need to be restarted...
    Checking init scripts...
    WARNING: this version of the GNU libc requires kernel version
    3.2 or later. Please upgrade your kernel before installing
    glibc.

  Note: This obviously does not apply to non-Linux kernels.

 -- Aurelien Jarno <aurel32@debian.org>  Thu, 03 Dec 2015 22:46:21 +0100

apt-listchanges: Mailing root: apt-listchanges: news for debian-armel
Preconfiguring packages ...
(Reading database ... 33892 files and directories currently installed.)
Preparing to replace tasksel 3.14.1 (using .../archives/tasksel_3.34_all.deb) ...
Unpacking replacement tasksel ...
Preparing to replace libkeyutils1:armel 1.5.5-3+deb7u1 (using .../libkeyutils1_1.5.9-8_armel.deb) ...
Unpacking replacement libkeyutils1:armel ...
Preparing to replace libk5crypto3:armel 1.10.1+dfsg-5+deb7u7 (using .../libk5crypto3_1.13.2+dfsg-5_armel.deb) ...
Unpacking replacement libk5crypto3:armel ...
Preparing to replace libgssapi-krb5-2:armel 1.10.1+dfsg-5+deb7u7 (using .../libgssapi-krb5-2_1.13.2+dfsg-5_armel.deb) ...
Unpacking replacement libgssapi-krb5-2:armel ...
Preparing to replace libkrb5-3:armel 1.10.1+dfsg-5+deb7u7 (using .../libkrb5-3_1.13.2+dfsg-5_armel.deb) ...
Unpacking replacement libkrb5-3:armel ...
Preparing to replace libkrb5support0:armel 1.10.1+dfsg-5+deb7u7 (using .../libkrb5support0_1.13.2+dfsg-5_armel.deb) ...
Unpacking replacement libkrb5support0:armel ...
Preparing to replace nfs-common 1:1.2.6-4 (using .../nfs-common_1%3a1.2.8-9_armel.deb) ...
Unpacking replacement nfs-common ...
dpkg: warning: unable to delete old directory '/var/lib/nfs/rpc_pipefs': Device or resource busy
Preparing to replace libtirpc1:armel 0.2.2-5 (using .../libtirpc1_0.2.5-1_armel.deb) ...
Unpacking replacement libtirpc1:armel ...
Preparing to replace libc6-dev:armel 2.13-38+deb7u10 (using .../libc6-dev_2.22-5_armel.deb) ...
Unpacking replacement libc6-dev:armel ...
Preparing to replace libc-dev-bin 2.13-38+deb7u10 (using .../libc-dev-bin_2.22-5_armel.deb) ...
Unpacking replacement libc-dev-bin ...
Preparing to replace libc6-dbg:armel 2.13-38+deb7u10 (using .../libc6-dbg_2.22-5_armel.deb) ...
Unpacking replacement libc6-dbg:armel ...
Package configuration

 ┌────────────────────────┤ Configuring libc6:armel ├────────────────────────┐
 │                                                                           │
 │ There are services installed on your system which need to be restarted    │
 │ when certain libraries, such as libpam, libc, and libssl, are upgraded.   │
 │ Since these restarts may cause interruptions of service for the system,   │
 │ you will normally be prompted on each upgrade for the list of services    │
 │ you wish to restart.  You can choose this option to avoid being           │
 │ prompted; instead, all necessary restarts will be done for you            │
 │ automatically so you can avoid being asked questions on each library      │
 │ upgrade.                                                                  │
 │                                                                           │
 │ Restart services during package upgrades without asking?                  │
 │                                                                           │
 │                    <Yes>                       <No>                       │
 │                                                                           │
 └───────────────────────────────────────────────────────────────────────────┘

Restarting services possibly affected by the upgrade:
  cron: restarting...done.
  atd: restarting...done.

Services restarted successfully.
(Reading database ... 27981 files and directories currently installed.)
Preparing to replace libc-bin 2.13-38+deb7u10 (using .../libc-bin_2.22-5_armel.deb) ...
Unpacking replacement libc-bin ...
Processing triggers for man-db ...
Setting up libc-bin (2.22-5) ...
Installing new version of config file /etc/bindresvport.blacklist ...
Installing new version of config file /etc/gai.conf ...
(Reading database ... 27969 files and directories currently installed.)
Preparing to replace task-english 3.14.1 (using .../task-english_3.34_all.deb) ...
Unpacking replacement task-english ...
Preparing to replace libmagic-dev:armel 5.11-2+deb7u8 (using .../libmagic-dev_1%3a5.25-2_armel.deb) ...
Unpacking replacement libmagic-dev:armel ...
Preparing to replace file 5.11-2+deb7u8 (using .../file_1%3a5.25-2_armel.deb) ...
Unpacking replacement file ...
Preparing to replace libmagic1:armel 5.11-2+deb7u8 (using .../libmagic1_1%3a5.25-2_armel.deb) ...
Unpacking replacement libmagic1:armel ...
Selecting previously unselected package libradare2-common.
Unpacking libradare2-common (from .../libradare2-common_0.9.6-3.1_all.deb) ...
Selecting previously unselected package libradare2-0.9.6:armel.
Unpacking libradare2-0.9.6:armel (from .../libradare2-0.9.6_0.9.6-3.1+b1_armel.deb) ...
Preparing to replace radare2 0.9-3 (using .../radare2_0.9.6-3.1+b1_armel.deb) ...
Unpacking replacement radare2 ...
Processing triggers for man-db ...
Setting up tasksel (3.34) ...
Setting up libkeyutils1:armel (1.5.9-8) ...
Setting up libkrb5support0:armel (1.13.2+dfsg-5) ...
Setting up libk5crypto3:armel (1.13.2+dfsg-5) ...
Setting up libkrb5-3:armel (1.13.2+dfsg-5) ...
Setting up libgssapi-krb5-2:armel (1.13.2+dfsg-5) ...
Setting up libtirpc1:armel (0.2.5-1) ...
Setting up nfs-common (1:1.2.8-9) ...
Installing new version of config file /etc/init.d/nfs-common ...
Replacing config file /etc/idmapd.conf with new version
update-rc.d: warning: default start runlevel arguments (2 3 4 5) do not match nfs-common Default-Start values (S)
insserv: warning: current start runlevel(s) (2 3 4 5 S) of script `nfs-common' overrides LSB defaults (S).
Stopping NFS common utilities: idmapd statd.
Starting NFS common utilities: statd idmapd.
Setting up libc-dev-bin (2.22-5) ...
Setting up libc6-dev:armel (2.22-5) ...
Setting up libc6-dbg:armel (2.22-5) ...
Setting up libc-l10n (2.22-5) ...
Setting up locales (2.22-5) ...
Installing new version of config file /etc/locale.alias ...
Generating locales (this might take a while)...
  en_US.UTF-8... done
Generation complete.
Setting up task-english (3.34) ...
Setting up libmagic1:armel (1:5.25-2) ...
Setting up libmagic-dev:armel (1:5.25-2) ...
Setting up file (1:5.25-2) ...
Setting up libradare2-common (0.9.6-3.1) ...
Setting up libradare2-0.9.6:armel (0.9.6-3.1+b1) ...
Setting up radare2 (0.9.6-3.1+b1) ...
Processing triggers for libc-bin ...

~#
~#
~#
~# r2
Usage: r2 [-dDwntLqv] [-P patch] [-p prj] [-a arch] [-b bits] [-i file]
          [-s addr] [-B blocksize] [-c cmd] [-e k=v] file|-
~# r2 -v
radare2 0.9.6 @ linux-little-arm-32 git.0.9.6
commit: 1: build: 2015-06-26
unixfreaxjp commented 8 years ago

I'll leave to the developer team to keep this open or close for this thread. I suggest all user using ARM v5 debian to use the repo version if you face same problem, hopefully not.

crowell commented 8 years ago

compiles and runs on a raspberry pi running debian jessie.

On Fri, Apr 8, 2016 at 12:50 PM, unixfreaxjp notifications@github.com wrote:

We will need second tester in ARM, preferred Debian user, it has every compiler libs support. Any ARM with 256M RAM will do the work.

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/radare/radare2/issues/4557#issuecomment-207510218

Jeff Crowell https://github.com/crowell

radare commented 8 years ago

Remove the pkg from debian.. And by remove i mean PURGE. Uninstall leaves traces that cause your problem because debian pkg is very old

On 08 Apr 2016, at 20:06, unixfreaxjp notifications@github.com wrote:

Well, in the end I must go back using the repo basis version instead git. Considering this as a workaround. Below is the log

apt-get install radare2 Reading package lists... Done Building dependency tree Reading state information... Done The following package was automatically installed and is no longer required: libgssglue1 Use 'apt-get autoremove' to remove it. The following extra packages will be installed: file libc-bin libc-dev-bin libc-l10n libc6 libc6-dbg libc6-dev libgssapi-krb5-2 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libmagic-dev libmagic1 libradare2-0.9.6 libradare2-common libtirpc1 locales nfs-common task-english tasksel Suggested packages: glibc-doc krb5-doc krb5-user open-iscsi watchdog The following packages will be REMOVED: locales-all The following NEW packages will be installed: libc-l10n libradare2-0.9.6 libradare2-common The following packages will be upgraded: file libc-bin libc-dev-bin libc6 libc6-dbg libc6-dev libgssapi-krb5-2 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libmagic-dev libmagic1 libtirpc1 locales nfs-common radare2 task-english tasksel 19 upgraded, 3 newly installed, 1 to remove and 257 not upgraded. Need to get 18.0 MB of archives. After this operation, 105 MB disk space will be freed. Do you want to continue [Y/n]? y Get:1 http://http.us.debian.org/debian/ testing/main tasksel all 3.34 [94.0 kB] Get:2 http://http.us.debian.org/debian/ testing/main libkeyutils1 armel 1.5.9-8 [11.4 kB] Get:3 http://http.us.debian.org/debian/ testing/main libk5crypto3 armel 1.13.2+dfsg-5 [111 kB] Get:4 http://http.us.debian.org/debian/ testing/main libgssapi-krb5-2 armel 1.13.2+dfsg-5 [130 kB] Get:5 http://http.us.debian.org/debian/ testing/main libkrb5-3 armel 1.13.2+dfsg-5 [261 kB] Get:6 http://http.us.debian.org/debian/ testing/main libkrb5support0 armel 1.13.2+dfsg-5 [56.6 kB] Get:7 http://http.us.debian.org/debian/ testing/main nfs-common armel 1:1.2.8-9 [187 kB] Get:8 http://http.us.debian.org/debian/ testing/main libtirpc1 armel 0.2.5-1 [69.9 kB] Get:9 http://http.us.debian.org/debian/ testing/main libc6-dev armel 2.22-5 [1,850 kB] Get:10 http://http.us.debian.org/debian/ testing/main libc-dev-bin armel 2.22-5 [242 kB] Get:11 http://http.us.debian.org/debian/ testing/main libc6-dbg armel 2.22-5 [5,971 kB] Get:12 http://http.us.debian.org/debian/ testing/main locales all 2.22-5 [3,340 kB] 64% [12 locales 2,474 kB/3,340 kB 74%] 96.7 kB/s 1min 7s

[...]

glibc (2.21-2) unstable; urgency=medium

Starting with version 2.21-1, the glibc requires a 3.2 or later Linux kernel. If you use an older kernel, please upgrade it before installing this glibc version. Failing to do so will end-up with the following failure:

Preparing to unpack .../libc6_2.21-1_amd64.deb ...
Checking for services that may need to be restarted...
Checking init scripts...
WARNING: this version of the GNU libc requires kernel version
3.2 or later. Please upgrade your kernel before installing
glibc.

Note: This obviously does not apply to non-Linux kernels.

-- Aurelien Jarno aurel32@debian.org Thu, 03 Dec 2015 22:46:21 +0100

apt-listchanges: Mailing root: apt-listchanges: news for debian-armel Preconfiguring packages ... (Reading database ... 33892 files and directories currently installed.) Preparing to replace tasksel 3.14.1 (using .../archives/tasksel_3.34_all.deb) ... Unpacking replacement tasksel ... Preparing to replace libkeyutils1:armel 1.5.5-3+deb7u1 (using .../libkeyutils1_1.5.9-8_armel.deb) ... Unpacking replacement libkeyutils1:armel ... Preparing to replace libk5crypto3:armel 1.10.1+dfsg-5+deb7u7 (using .../libk5crypto3_1.13.2+dfsg-5_armel.deb) ... Unpacking replacement libk5crypto3:armel ... Preparing to replace libgssapi-krb5-2:armel 1.10.1+dfsg-5+deb7u7 (using .../libgssapi-krb5-2_1.13.2+dfsg-5_armel.deb) ... Unpacking replacement libgssapi-krb5-2:armel ... Preparing to replace libkrb5-3:armel 1.10.1+dfsg-5+deb7u7 (using .../libkrb5-3_1.13.2+dfsg-5_armel.deb) ... Unpacking replacement libkrb5-3:armel ... Preparing to replace libkrb5support0:armel 1.10.1+dfsg-5+deb7u7 (using .../libkrb5support0_1.13.2+dfsg-5_armel.deb) ... Unpacking replacement libkrb5support0:armel ... Preparing to replace nfs-common 1:1.2.6-4 (using .../nfs-common_1%3a1.2.8-9_armel.deb) ... Unpacking replacement nfs-common ... dpkg: warning: unable to delete old directory '/var/lib/nfs/rpc_pipefs': Device or resource busy Preparing to replace libtirpc1:armel 0.2.2-5 (using .../libtirpc1_0.2.5-1_armel.deb) ... Unpacking replacement libtirpc1:armel ... Preparing to replace libc6-dev:armel 2.13-38+deb7u10 (using .../libc6-dev_2.22-5_armel.deb) ... Unpacking replacement libc6-dev:armel ... Preparing to replace libc-dev-bin 2.13-38+deb7u10 (using .../libc-dev-bin_2.22-5_armel.deb) ... Unpacking replacement libc-dev-bin ... Preparing to replace libc6-dbg:armel 2.13-38+deb7u10 (using .../libc6-dbg_2.22-5_armel.deb) ... Unpacking replacement libc6-dbg:armel ... Package configuration

┌────────────────────────┤ Configuring libc6:armel ├────────────────────────┐ │ │ │ There are services installed on your system which need to be restarted │ │ when certain libraries, such as libpam, libc, and libssl, are upgraded. │ │ Since these restarts may cause interruptions of service for the system, │ │ you will normally be prompted on each upgrade for the list of services │ │ you wish to restart. You can choose this option to avoid being │ │ prompted; instead, all necessary restarts will be done for you │ │ automatically so you can avoid being asked questions on each library │ │ upgrade. │ │ │ │ Restart services during package upgrades without asking? │ │ │ │ │ │ │ └───────────────────────────────────────────────────────────────────────────┘

Restarting services possibly affected by the upgrade: cron: restarting...done. atd: restarting...done.

Services restarted successfully. (Reading database ... 27981 files and directories currently installed.) Preparing to replace libc-bin 2.13-38+deb7u10 (using .../libc-bin_2.22-5_armel.deb) ... Unpacking replacement libc-bin ... Processing triggers for man-db ... Setting up libc-bin (2.22-5) ... Installing new version of config file /etc/bindresvport.blacklist ... Installing new version of config file /etc/gai.conf ... (Reading database ... 27969 files and directories currently installed.) Preparing to replace task-english 3.14.1 (using .../task-english_3.34_all.deb) ... Unpacking replacement task-english ... Preparing to replace libmagic-dev:armel 5.11-2+deb7u8 (using .../libmagic-dev_1%3a5.25-2_armel.deb) ... Unpacking replacement libmagic-dev:armel ... Preparing to replace file 5.11-2+deb7u8 (using .../file_1%3a5.25-2_armel.deb) ... Unpacking replacement file ... Preparing to replace libmagic1:armel 5.11-2+deb7u8 (using .../libmagic1_1%3a5.25-2_armel.deb) ... Unpacking replacement libmagic1:armel ... Selecting previously unselected package libradare2-common. Unpacking libradare2-common (from .../libradare2-common_0.9.6-3.1_all.deb) ... Selecting previously unselected package libradare2-0.9.6:armel. Unpacking libradare2-0.9.6:armel (from .../libradare2-0.9.6_0.9.6-3.1+b1_armel.deb) ... Preparing to replace radare2 0.9-3 (using .../radare2_0.9.6-3.1+b1_armel.deb) ... Unpacking replacement radare2 ... Processing triggers for man-db ... Setting up tasksel (3.34) ... Setting up libkeyutils1:armel (1.5.9-8) ... Setting up libkrb5support0:armel (1.13.2+dfsg-5) ... Setting up libk5crypto3:armel (1.13.2+dfsg-5) ... Setting up libkrb5-3:armel (1.13.2+dfsg-5) ... Setting up libgssapi-krb5-2:armel (1.13.2+dfsg-5) ... Setting up libtirpc1:armel (0.2.5-1) ... Setting up nfs-common (1:1.2.8-9) ... Installing new version of config file /etc/init.d/nfs-common ... Replacing config file /etc/idmapd.conf with new version update-rc.d: warning: default start runlevel arguments (2 3 4 5) do not match nfs-common Default-Start values (S) insserv: warning: current start runlevel(s) (2 3 4 5 S) of script `nfs-common' overrides LSB defaults (S). Stopping NFS common utilities: idmapd statd. Starting NFS common utilities: statd idmapd. Setting up libc-dev-bin (2.22-5) ... Setting up libc6-dev:armel (2.22-5) ... Setting up libc6-dbg:armel (2.22-5) ... Setting up libc-l10n (2.22-5) ... Setting up locales (2.22-5) ... Installing new version of config file /etc/locale.alias ... Generating locales (this might take a while)... en_US.UTF-8... done Generation complete. Setting up task-english (3.34) ... Setting up libmagic1:armel (1:5.25-2) ... Setting up libmagic-dev:armel (1:5.25-2) ... Setting up file (1:5.25-2) ... Setting up libradare2-common (0.9.6-3.1) ... Setting up libradare2-0.9.6:armel (0.9.6-3.1+b1) ... Setting up radare2 (0.9.6-3.1+b1) ... Processing triggers for libc-bin ...

~# ~# ~# ~# r2 Usage: r2 [-dDwntLqv] [-P patch] [-p prj] [-a arch] [-b bits] [-i file] [-s addr] [-B blocksize] [-c cmd] [-e k=v] file|- ~# r2 -v radare2 0.9.6 @ linux-little-arm-32 git.0.9.6 commit: 1: build: 2015-06-26 — You are receiving this because you commented. Reply to this email directly or view it on GitHub

crowell commented 8 years ago
jeff@lostwoods ~/radare2 $ cat /proc/cpuinfo
processor       : 0
model name      : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS        : 2.00
Features        : half thumb fastmult vfp edsp java tls 
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xb76
CPU revision    : 7

Hardware        : BCM2708
Revision        : 000f
Serial          : 000000001f349226
jeff@lostwoods ~/radare2 $ ldd --version
ldd (Debian GLIBC 2.19-18+deb8u3) 2.19
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
crowell commented 8 years ago

closing issue, the linking error is due to other competing symbols on your machine.

crowell commented 8 years ago

the competing symbols are the ones you installed from apt-get...

crowell commented 8 years ago

i dont think the issue has to do with glibc.

did you ever install radare2 from the debian repository before trying this? I do understand debian :smiley:

Anyway, wheezy support is getting dropped as of next week. I suggest you to upgrade.

unixfreaxjp commented 8 years ago

I tested the d1530d54115e31bff64f768c38b83390c40d803b build: 2016-04-11 It was fixed, with many thanks! Could be cb60759219a32da6aa7a1a3398c60a0ca0509a2c related(?) No changes (yet) in libraries in my side.

Screenshot for PoC:

This issue is happily closed!