Hi, The problem is that PTRACE_* is not defined in freebsd, instead, the counterparts are PT_*. I'll try to fix them, but I'll need to set up a freebsd env at first.
Best, - Lu 2010.04.20 On Tue, Apr 20, 2010 at 8:18 AM, Cyril Brulebois <k...@debian.org> wrote: > Source: scanmem > Version: 0.10-1 > Severity: serious > Justification: FTBFS > User: debian-...@lists.debian.org > Usertags: kfreebsd > > Hi, > > your package no longer builds on kfreebsd-*: > | cc -DHAVE_CONFIG_H -I. -O2 -g -Wall -g -O2 -g -Wall -O2 -c -o > scanmem-ptrace.o `test -f 'ptrace.c' || echo './'`ptrace.c > | ptrace.c: In function 'attach': > | ptrace.c:77: error: 'PTRACE_ATTACH' undeclared (first use in this > function) > | ptrace.c:77: error: (Each undeclared identifier is reported only once > | ptrace.c:77: error: for each function it appears in.) > | ptrace.c:77: warning: passing argument 4 of 'ptrace' makes integer from > pointer without a cast > | /usr/include/sys/ptrace.h:109: note: expected 'int' but argument is of > type 'void *' > | ptrace.c: In function 'detach': > | ptrace.c:99: error: 'PTRACE_DETACH' undeclared (first use in this > function) > | ptrace.c: In function 'peekdata': > | ptrace.c:170: error: 'PTRACE_PEEKDATA' undeclared (first use in this > function) > | ptrace.c:170: warning: passing argument 4 of 'ptrace' makes integer from > pointer without a cast > | /usr/include/sys/ptrace.h:109: note: expected 'int' but argument is of > type 'void *' > | ptrace.c:181: warning: passing argument 4 of 'ptrace' makes integer from > pointer without a cast > | /usr/include/sys/ptrace.h:109: note: expected 'int' but argument is of > type 'void *' > | ptrace.c: In function 'setaddr': > | ptrace.c:617: error: 'PTRACE_POKEDATA' undeclared (first use in this > function) > | ptrace.c: In function 'write_array': > | ptrace.c:681: error: 'PTRACE_POKEDATA' undeclared (first use in this > function) > | ptrace.c:700: error: 'PTRACE_PEEKDATA' undeclared (first use in this > function) > | ptrace.c:700: warning: passing argument 4 of 'ptrace' makes integer from > pointer without a cast > | /usr/include/sys/ptrace.h:109: note: expected 'int' but argument is of > type 'void *' > | make[3]: *** [scanmem-ptrace.o] Error 1 > | make[3]: Leaving directory > `/build/buildd-scanmem_0.10-1-kfreebsd-i386-fam1rq/scanmem-0.10' > | make[2]: *** [all-recursive] Error 1 > | make[2]: Leaving directory > `/build/buildd-scanmem_0.10-1-kfreebsd-i386-fam1rq/scanmem-0.10' > | make[1]: *** [all] Error 2 > | make[1]: Leaving directory > `/build/buildd-scanmem_0.10-1-kfreebsd-i386-fam1rq/scanmem-0.10' > | make: *** [debian/stamp-makefile-build] Error 2 > > Full build logs: > https://buildd.debian.org/status/package.php?p=scanmem > > Mraw, > KiBi. > > >