Source: radare2
Version: 1.0+dfsg-1
Severity: serious
Justification: fails to build from source (but built successfully in the past)

The latest arm64 build of radare2 failed, per the log excerpt below.
Could you please take a look, and ensure that linux_debug.h includes
all necessary headers?

Thanks!

  p/native/linux/linux_debug.c: In function 'linux_handle_signals':
  p/native/linux/linux_debug.c:67:2: warning: #warning DO MORE RDEBUGREASON 
HERE [-Wcpp]
   #warning DO MORE RDEBUGREASON HERE
    ^~~~~~~
  p/native/linux/linux_debug.c: In function 'print_fpu':
  p/native/linux/linux_debug.c:376:2: warning: #warning not implemented for 
this platform [-Wcpp]
   #warning not implemented for this platform
    ^~~~~~~
  p/native/linux/linux_debug.c: In function 'linux_reg_read':
  p/native/linux/linux_debug.c:466:3: warning: #warning not implemented for 
this platform [-Wcpp]
    #warning not implemented for this platform
     ^~~~~~~
  p/native/linux/linux_debug.c:473:18: error: storage size of 'regs' isn't known
      R_DEBUG_REG_T regs;
                    ^~~~
  p/native/linux/linux_debug.c:482:41: error: 'NT_PRSTATUS' undeclared (first 
use in this function)
      ret = ptrace (PTRACE_GETREGSET, pid, NT_PRSTATUS, &io);
                                           ^~~~~~~~~~~
  p/native/linux/linux_debug.c:482:41: note: each undeclared identifier is 
reported only once for each function it appears in
  p/native/linux/linux_debug.c:473:18: warning: unused variable 'regs' 
[-Wunused-variable]
      R_DEBUG_REG_T regs;
                    ^~~~
  p/native/linux/linux_debug.c:381:7: warning: variable 'showfpu' set but not 
used [-Wunused-but-set-variable]
    bool showfpu = false;
         ^~~~~~~
  p/native/linux/linux_debug.c: In function 'linux_reg_write':
  p/native/linux/linux_debug.c:528:16: warning: initialization discards 'const' 
qualifier from pointer target type [-Wdiscarded-qualifiers]
      .iov_base = buf,
                  ^~~
  In file included from p/native/linux/linux_debug.c:14:0:
  p/native/linux/linux_debug.h:44:23: error: invalid application of 'sizeof' to 
incomplete type 'struct user_pt_regs'
   #define R_DEBUG_REG_T struct user_pt_regs
                         ^
  p/native/linux/linux_debug.c:529:23: note: in expansion of macro 
'R_DEBUG_REG_T'
      .iov_len = sizeof (R_DEBUG_REG_T)
                         ^~~~~~~~~~~~~
  p/native/linux/linux_debug.c:531:49: error: 'NT_PRSTATUS' undeclared (first 
use in this function)
     int ret = ptrace (PTRACE_SETREGSET, dbg->pid, NT_PRSTATUS, &io);
                                                   ^~~~~~~~~~~
  In file included from p/native/linux/linux_debug.c:14:0:
  p/native/linux/linux_debug.h:44:23: error: invalid application of 'sizeof' to 
incomplete type 'struct user_pt_regs'
   #define R_DEBUG_REG_T struct user_pt_regs
                         ^

-- 
Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org)
http://www.mit.edu/~amu/ | http://stuff.mit.edu/cgi/finger/?a...@monk.mit.edu

Reply via email to