Bug#732853: radare2: FTBFS on various archs

2013-12-28 Thread David Martínez Moreno
On 12/27/13 5:20 AM, Sebastian Reichel wrote:
 On Fri, Dec 27, 2013 at 04:07:39AM -0800, David Martínez Moreno wrote:
 gcc rabin2.o -L.. -o rabin2 -Wl,-z,relro
 -L/«PKGBUILDDIR»/libr/lib -L/«PKGBUILDDIR»/libr/magic
 -L/«PKGBUILDDIR»/libr/core -L/«PKGBUILDDIR»/libr/db
 -L/«PKGBUILDDIR»/libr/bin -L/«PKGBUILDDIR»/libr/egg
 -L/«PKGBUILDDIR»/libr/cons -L/«PKGBUILDDIR»/libr/config
 -L/«PKGBUILDDIR»/libr/io -L/«PKGBUILDDIR»/libr/cmd
 -L/«PKGBUILDDIR»/libr/flags -L/«PKGBUILDDIR»/libr/asm
 -L/«PKGBUILDDIR»/libr/debug -L/«PKGBUILDDIR»/libr/hash
 -L/«PKGBUILDDIR»/libr/lang -L/«PKGBUILDDIR»/libr/anal
 -L/«PKGBUILDDIR»/libr/parse -L/«PKGBUILDDIR»/libr/bp
 -L/«PKGBUILDDIR»/libr/reg -L/«PKGBUILDDIR»/libr/search
 -L/«PKGBUILDDIR»/libr/syscall -L/«PKGBUILDDIR»/libr/sign
 -L/«PKGBUILDDIR»/libr/diff -L/«PKGBUILDDIR»/libr/socket
 -L/«PKGBUILDDIR»/libr/fs -L/«PKGBUILDDIR»/libr/magic
 -L/«PKGBUILDDIR»/libr/util -lr_lib -lr_magic -lr_core -lr_db
 -lr_bin -lr_egg -lr_cons -lr_config -lr_io -lr_cmd -lr_flags
 -lr_asm -lr_debug -lr_hash -lr_lang -lr_anal -lr_parse -lr_bp
 -lr_reg -lr_s
 earch -lr_syscall -lr_sign -lr_diff -lr_socket -lr_fs -lr_magic
 -lr_util -fPIC -ldl
 /«PKGBUILDDIR»/libr/debug/libr_debug.so: undefined reference to `strlcat'
 /«PKGBUILDDIR»/libr/debug/libr_debug.so: undefined reference to `strlcpy'
 collect2: error: ld returned 1 exit status

  I have no idea yet on how to fix this.
 
 This seems to be a bug in kfreebsd's libc. The irony is, that both methods
 origin from the BSD world.
 
 I tried the following testcase on falla.debian.org:
 
 --
 falla% cat test.c
 #include stdlib.h
 #include string.h
 
 int main(int argc, char **argv) {
 char *foo = this is a test;
 char *bar = malloc(100);
 strlcpy(bar, foo, 5);
 return 0;
 }
 falla% gcc test.c
 /tmp/ccp6Q0It.o: In function `main':
 test.c:(.text+0x3e): undefined reference to `strlcpy'
 collect2: error: ld returned 1 exit status
 --

Have you maybe opened a bug for the KFreeBSD porters?  Have you tried 
if libbsd
can help us here?


Ender.




signature.asc
Description: OpenPGP digital signature


Bug#732853: radare2: FTBFS on various archs

2013-12-28 Thread Sebastian Reichel
On Sat, Dec 28, 2013 at 12:43:54AM -0800, David Martínez Moreno wrote:
 On 12/27/13 5:20 AM, Sebastian Reichel wrote:
  On Fri, Dec 27, 2013 at 04:07:39AM -0800, David Martínez Moreno wrote:
  gcc rabin2.o -L.. -o rabin2 -Wl,-z,relro
  -L/«PKGBUILDDIR»/libr/lib -L/«PKGBUILDDIR»/libr/magic
  -L/«PKGBUILDDIR»/libr/core -L/«PKGBUILDDIR»/libr/db
  -L/«PKGBUILDDIR»/libr/bin -L/«PKGBUILDDIR»/libr/egg
  -L/«PKGBUILDDIR»/libr/cons -L/«PKGBUILDDIR»/libr/config
  -L/«PKGBUILDDIR»/libr/io -L/«PKGBUILDDIR»/libr/cmd
  -L/«PKGBUILDDIR»/libr/flags -L/«PKGBUILDDIR»/libr/asm
  -L/«PKGBUILDDIR»/libr/debug -L/«PKGBUILDDIR»/libr/hash
  -L/«PKGBUILDDIR»/libr/lang -L/«PKGBUILDDIR»/libr/anal
  -L/«PKGBUILDDIR»/libr/parse -L/«PKGBUILDDIR»/libr/bp
  -L/«PKGBUILDDIR»/libr/reg -L/«PKGBUILDDIR»/libr/search
  -L/«PKGBUILDDIR»/libr/syscall -L/«PKGBUILDDIR»/libr/sign
  -L/«PKGBUILDDIR»/libr/diff -L/«PKGBUILDDIR»/libr/socket
  -L/«PKGBUILDDIR»/libr/fs -L/«PKGBUILDDIR»/libr/magic
  -L/«PKGBUILDDIR»/libr/util -lr_lib -lr_magic -lr_core -lr_db
  -lr_bin -lr_egg -lr_cons -lr_config -lr_io -lr_cmd -lr_flags
  -lr_asm -lr_debug -lr_hash -lr_lang -lr_anal -lr_parse -lr_bp
  -lr_reg -lr_s
  earch -lr_syscall -lr_sign -lr_diff -lr_socket -lr_fs -lr_magic
  -lr_util -fPIC -ldl
  /«PKGBUILDDIR»/libr/debug/libr_debug.so: undefined reference to `strlcat'
  /«PKGBUILDDIR»/libr/debug/libr_debug.so: undefined reference to `strlcpy'
  collect2: error: ld returned 1 exit status
 
 I have no idea yet on how to fix this.
  
  This seems to be a bug in kfreebsd's libc. The irony is, that both methods
  origin from the BSD world.
  
  I tried the following testcase on falla.debian.org:
  
  --
  falla% cat test.c
  #include stdlib.h
  #include string.h
  
  int main(int argc, char **argv) {
  char *foo = this is a test;
  char *bar = malloc(100);
  strlcpy(bar, foo, 5);
  return 0;
  }
  falla% gcc test.c
  /tmp/ccp6Q0It.o: In function `main':
  test.c:(.text+0x3e): undefined reference to `strlcpy'
  collect2: error: ld returned 1 exit status
  --
 
   Have you maybe opened a bug for the KFreeBSD porters?  Have you tried 
 if libbsd
 can help us here?

No. I just did a little testing if this is broken in the r2
buildsystem or if I can reproduce it without the r2 bits.

-- Sebastian


signature.asc
Description: Digital signature


Bug#732853: radare2: FTBFS on various archs

2013-12-28 Thread Julien Cristau
On Fri, Dec 27, 2013 at 14:20:54 +0100, Sebastian Reichel wrote:

 On Fri, Dec 27, 2013 at 04:07:39AM -0800, David Martínez Moreno wrote:
   gcc rabin2.o -L.. -o rabin2 -Wl,-z,relro
   -L/«PKGBUILDDIR»/libr/lib -L/«PKGBUILDDIR»/libr/magic
   -L/«PKGBUILDDIR»/libr/core -L/«PKGBUILDDIR»/libr/db
   -L/«PKGBUILDDIR»/libr/bin -L/«PKGBUILDDIR»/libr/egg
   -L/«PKGBUILDDIR»/libr/cons -L/«PKGBUILDDIR»/libr/config
   -L/«PKGBUILDDIR»/libr/io -L/«PKGBUILDDIR»/libr/cmd
   -L/«PKGBUILDDIR»/libr/flags -L/«PKGBUILDDIR»/libr/asm
   -L/«PKGBUILDDIR»/libr/debug -L/«PKGBUILDDIR»/libr/hash
   -L/«PKGBUILDDIR»/libr/lang -L/«PKGBUILDDIR»/libr/anal
   -L/«PKGBUILDDIR»/libr/parse -L/«PKGBUILDDIR»/libr/bp
   -L/«PKGBUILDDIR»/libr/reg -L/«PKGBUILDDIR»/libr/search
   -L/«PKGBUILDDIR»/libr/syscall -L/«PKGBUILDDIR»/libr/sign
   -L/«PKGBUILDDIR»/libr/diff -L/«PKGBUILDDIR»/libr/socket
   -L/«PKGBUILDDIR»/libr/fs -L/«PKGBUILDDIR»/libr/magic
   -L/«PKGBUILDDIR»/libr/util -lr_lib -lr_magic -lr_core -lr_db
   -lr_bin -lr_egg -lr_cons -lr_config -lr_io -lr_cmd -lr_flags
   -lr_asm -lr_debug -lr_hash -lr_lang -lr_anal -lr_parse -lr_bp
   -lr_reg -lr_s
  earch -lr_syscall -lr_sign -lr_diff -lr_socket -lr_fs -lr_magic
  -lr_util -fPIC -ldl
   /«PKGBUILDDIR»/libr/debug/libr_debug.so: undefined reference to `strlcat'
   /«PKGBUILDDIR»/libr/debug/libr_debug.so: undefined reference to `strlcpy'
   collect2: error: ld returned 1 exit status
  
  I have no idea yet on how to fix this.
 
 This seems to be a bug in kfreebsd's libc. The irony is, that both methods
 origin from the BSD world.
 
That's not a bug.  glibc has never included strl* afaik.

Cheers,
Julien


signature.asc
Description: Digital signature


Bug#732853: radare2: FTBFS on various archs

2013-12-27 Thread David Martínez Moreno
On 12/22/13 7:14 AM, Julien Cristau wrote:
 Source: radare2
 Version: 0.9.4-2
 Severity: serious
 Justification: fails to build from source
 
 Hi,
 
 your package fails to build from source on ia64, powerpc, s390x and
 sparc:
 p/debug_native.c: In function 'r_debug_native_reg_read':
 p/debug_native.c:1530:3: error: unknown type name 'R_DEBUG_REG_T'
 p/debug_native.c: In function 'r_debug_native_reg_write':
 p/debug_native.c:1621:15: error: 'R_DEBUG_REG_T' undeclared (first use in 
 this function)

Upstream changed --disable-debugger with --without-debugger, so the
previously-disabled debugger in those arches that was causing them FTBFS was
enabled again.  I fixed it in 0.9.6, but if it takes a long time I may do an
0.9.4-2 release.

 and on kfreebsd:
 gcc rabin2.o -L.. -o rabin2 -Wl,-z,relro   -L/«PKGBUILDDIR»/libr/lib 
 -L/«PKGBUILDDIR»/libr/magic -L/«PKGBUILDDIR»/libr/core 
 -L/«PKGBUILDDIR»/libr/db -L/«PKGBUILDDIR»/libr/bin -L/«PKGBUILDDIR»/libr/egg 
 -L/«PKGBUILDDIR»/libr/cons -L/«PKGBUILDDIR»/libr/config 
 -L/«PKGBUILDDIR»/libr/io -L/«PKGBUILDDIR»/libr/cmd 
 -L/«PKGBUILDDIR»/libr/flags -L/«PKGBUILDDIR»/libr/asm 
 -L/«PKGBUILDDIR»/libr/debug -L/«PKGBUILDDIR»/libr/hash 
 -L/«PKGBUILDDIR»/libr/lang -L/«PKGBUILDDIR»/libr/anal 
 -L/«PKGBUILDDIR»/libr/parse -L/«PKGBUILDDIR»/libr/bp 
 -L/«PKGBUILDDIR»/libr/reg -L/«PKGBUILDDIR»/libr/search 
 -L/«PKGBUILDDIR»/libr/syscall -L/«PKGBUILDDIR»/libr/sign 
 -L/«PKGBUILDDIR»/libr/diff -L/«PKGBUILDDIR»/libr/socket 
 -L/«PKGBUILDDIR»/libr/fs -L/«PKGBUILDDIR»/libr/magic 
 -L/«PKGBUILDDIR»/libr/util -lr_lib -lr_magic -lr_core -lr_db -lr_bin -lr_egg 
 -lr_cons -lr_config -lr_io -lr_cmd -lr_flags -lr_asm -lr_debug -lr_hash 
 -lr_lang -lr_anal -lr_parse -lr_bp -lr_reg -lr_s
earch -lr_syscall -lr_sign -lr_diff -lr_socket -lr_fs -lr_magic -lr_util -fPIC 
-ldl
 /«PKGBUILDDIR»/libr/debug/libr_debug.so: undefined reference to `strlcat'
 /«PKGBUILDDIR»/libr/debug/libr_debug.so: undefined reference to `strlcpy'
 collect2: error: ld returned 1 exit status

I have no idea yet on how to fix this.


Ender.



signature.asc
Description: OpenPGP digital signature


Bug#732853: radare2: FTBFS on various archs

2013-12-27 Thread Sebastian Reichel
On Fri, Dec 27, 2013 at 04:07:39AM -0800, David Martínez Moreno wrote:
  gcc rabin2.o -L.. -o rabin2 -Wl,-z,relro
  -L/«PKGBUILDDIR»/libr/lib -L/«PKGBUILDDIR»/libr/magic
  -L/«PKGBUILDDIR»/libr/core -L/«PKGBUILDDIR»/libr/db
  -L/«PKGBUILDDIR»/libr/bin -L/«PKGBUILDDIR»/libr/egg
  -L/«PKGBUILDDIR»/libr/cons -L/«PKGBUILDDIR»/libr/config
  -L/«PKGBUILDDIR»/libr/io -L/«PKGBUILDDIR»/libr/cmd
  -L/«PKGBUILDDIR»/libr/flags -L/«PKGBUILDDIR»/libr/asm
  -L/«PKGBUILDDIR»/libr/debug -L/«PKGBUILDDIR»/libr/hash
  -L/«PKGBUILDDIR»/libr/lang -L/«PKGBUILDDIR»/libr/anal
  -L/«PKGBUILDDIR»/libr/parse -L/«PKGBUILDDIR»/libr/bp
  -L/«PKGBUILDDIR»/libr/reg -L/«PKGBUILDDIR»/libr/search
  -L/«PKGBUILDDIR»/libr/syscall -L/«PKGBUILDDIR»/libr/sign
  -L/«PKGBUILDDIR»/libr/diff -L/«PKGBUILDDIR»/libr/socket
  -L/«PKGBUILDDIR»/libr/fs -L/«PKGBUILDDIR»/libr/magic
  -L/«PKGBUILDDIR»/libr/util -lr_lib -lr_magic -lr_core -lr_db
  -lr_bin -lr_egg -lr_cons -lr_config -lr_io -lr_cmd -lr_flags
  -lr_asm -lr_debug -lr_hash -lr_lang -lr_anal -lr_parse -lr_bp
  -lr_reg -lr_s
 earch -lr_syscall -lr_sign -lr_diff -lr_socket -lr_fs -lr_magic
 -lr_util -fPIC -ldl
  /«PKGBUILDDIR»/libr/debug/libr_debug.so: undefined reference to `strlcat'
  /«PKGBUILDDIR»/libr/debug/libr_debug.so: undefined reference to `strlcpy'
  collect2: error: ld returned 1 exit status
 
   I have no idea yet on how to fix this.

This seems to be a bug in kfreebsd's libc. The irony is, that both methods
origin from the BSD world.

I tried the following testcase on falla.debian.org:

--
falla% cat test.c
#include stdlib.h
#include string.h

int main(int argc, char **argv) {
char *foo = this is a test;
char *bar = malloc(100);
strlcpy(bar, foo, 5);
return 0;
}
falla% gcc test.c
/tmp/ccp6Q0It.o: In function `main':
test.c:(.text+0x3e): undefined reference to `strlcpy'
collect2: error: ld returned 1 exit status
--

-- Sebastian


signature.asc
Description: Digital signature


Bug#732853: radare2: FTBFS on various archs

2013-12-22 Thread Julien Cristau
Source: radare2
Version: 0.9.4-2
Severity: serious
Justification: fails to build from source

Hi,

your package fails to build from source on ia64, powerpc, s390x and
sparc:
 p/debug_native.c: In function 'r_debug_native_reg_read':
 p/debug_native.c:1530:3: error: unknown type name 'R_DEBUG_REG_T'
 p/debug_native.c: In function 'r_debug_native_reg_write':
 p/debug_native.c:1621:15: error: 'R_DEBUG_REG_T' undeclared (first use in 
 this function)

and on kfreebsd:
 gcc rabin2.o -L.. -o rabin2 -Wl,-z,relro   -L/«PKGBUILDDIR»/libr/lib 
 -L/«PKGBUILDDIR»/libr/magic -L/«PKGBUILDDIR»/libr/core 
 -L/«PKGBUILDDIR»/libr/db -L/«PKGBUILDDIR»/libr/bin -L/«PKGBUILDDIR»/libr/egg 
 -L/«PKGBUILDDIR»/libr/cons -L/«PKGBUILDDIR»/libr/config 
 -L/«PKGBUILDDIR»/libr/io -L/«PKGBUILDDIR»/libr/cmd 
 -L/«PKGBUILDDIR»/libr/flags -L/«PKGBUILDDIR»/libr/asm 
 -L/«PKGBUILDDIR»/libr/debug -L/«PKGBUILDDIR»/libr/hash 
 -L/«PKGBUILDDIR»/libr/lang -L/«PKGBUILDDIR»/libr/anal 
 -L/«PKGBUILDDIR»/libr/parse -L/«PKGBUILDDIR»/libr/bp 
 -L/«PKGBUILDDIR»/libr/reg -L/«PKGBUILDDIR»/libr/search 
 -L/«PKGBUILDDIR»/libr/syscall -L/«PKGBUILDDIR»/libr/sign 
 -L/«PKGBUILDDIR»/libr/diff -L/«PKGBUILDDIR»/libr/socket 
 -L/«PKGBUILDDIR»/libr/fs -L/«PKGBUILDDIR»/libr/magic 
 -L/«PKGBUILDDIR»/libr/util -lr_lib -lr_magic -lr_core -lr_db -lr_bin -lr_egg 
 -lr_cons -lr_config -lr_io -lr_cmd -lr_flags -lr_asm -lr_debug -lr_hash 
 -lr_lang -lr_anal -lr_parse -lr_bp -lr_reg -lr_search -lr_syscall -lr_sign 
 -lr_diff -lr_socket -lr_fs -lr_magic -lr_util -fPIC -ldl
 /«PKGBUILDDIR»/libr/debug/libr_debug.so: undefined reference to `strlcat'
 /«PKGBUILDDIR»/libr/debug/libr_debug.so: undefined reference to `strlcpy'
 collect2: error: ld returned 1 exit status

Cheers,
Julien


signature.asc
Description: Digital signature