strace v4.6-60-g9015cd9 build error

Steve Bennett msteveb at gmail.com
Mon Jul 18 02:38:01 UTC 2011


On 18/07/2011, at 3:15 AM, Douglas Mencken wrote:

> I'm trying to build strace-v4.6-60-g9015cd9 (currently latest git
> master), and got:
> 
> # make V=1
> make  all-recursive
> make[1]: Entering directory `/root/build-farm/strace-v4.6-60-g9015cd9.builddir'
> Making all in tests
> make[2]: Entering directory
> `/root/build-farm/strace-v4.6-60-g9015cd9.builddir/tests'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory
> `/root/build-farm/strace-v4.6-60-g9015cd9.builddir/tests'
> make[2]: Entering directory `/root/build-farm/strace-v4.6-60-g9015cd9.builddir'
> powerpc-gnu-linux-uclibc-gcc -DHAVE_CONFIG_H -I.  -I./linux/powerpc
> -I./linux -I./linux  -Wall -Wwrite-strings -g -O2 -MT strace.o -MD -MP
> -MF .deps/strace.Tpo -c -o strace.o strace.c
> strace.c: In function 'test_ptrace_setoptions_for_all':
> strace.c:806:36: error: 'PTRACE_O_TRACESYSGOOD' undeclared (first use
> in this function)
> strace.c:806:36: note: each undeclared identifier is reported only
> once for each function it appears in
> strace.c:806:60: error: 'PTRACE_O_TRACEEXEC' undeclared (first use in
> this function)
> strace.c: In function 'handle_ptrace_event':
> strace.c:2336:22: error: 'PTRACE_EVENT_EXEC' undeclared (first use in
> this function)
> strace.c: In function 'trace':
> strace.c:2425:7: error: 'PTRACE_EVENT_VFORK_DONE' undeclared (first
> use in this function)
> strace.c:2425:6: error: array index in initializer not of integer type
> strace.c:2425:6: error: (near initialization for 'event_names')
> strace.c:2426:7: error: 'PTRACE_EVENT_EXEC' undeclared (first use in
> this function)
> strace.c:2426:6: error: array index in initializer not of integer type
> strace.c:2426:6: error: (near initialization for 'event_names')
> strace.c:2427:7: error: 'PTRACE_EVENT_EXIT' undeclared (first use in
> this function)
> strace.c:2427:6: error: array index in initializer not of integer type
> strace.c:2427:6: error: (near initialization for 'event_names')
> strace.c:2647:5: warning: passing argument 4 of 'ptrace' makes integer
> from pointer without a cast [enabled by default]
> defs.h:162:13: note: expected 'long int' but argument is of type
> 'struct siginfo_t *'
> make[2]: *** [strace.o] Error 1
> make[2]: Leaving directory `/root/build-farm/strace-v4.6-60-g9015cd9.builddir'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/root/build-farm/strace-v4.6-60-g9015cd9.builddir'
> make: *** [all] Error 2
> 
> I'm configuring strace as:
> 
> autoreconf -vi
> ./configure --prefix=/usr --sysconfdir=/etc
> --build=powerpc-gnu-linux-uclibc --host=powerpc-gnu-linux-uclibc

Seems like configure.ac and defs.h haven't been updated to check for the
additional values. Shouldn't be too hard to add.

Cheers,
Steve

--
µWeb: Embedded Web Framework - http://uweb.workware.net.au/
WorkWare Systems Pty Ltd
W: www.workware.net.au      P: +61 434 921 300
E: steveb at workware.net.au   F: +61 7 3391 6002









More information about the Strace-devel mailing list