[issue13405] Add DTrace probes

Marc Abramowitz report at bugs.python.org
Thu Jun 7 23:58:03 CEST 2012


Marc Abramowitz <msabramo at gmail.com> added the comment:

I hacked around the previous error (duplicate definitions of `collect`) and then ran into:

gcc -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes    -I. -I./Include    -DPy_BUILD_CORE -o ./Include/pydtrace_offsets \
		./Include/pydtrace_offsets.c
./Include/pydtrace_offsets.c: In function ‘main’:
./Include/pydtrace_offsets.c:26: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long int’
./Include/pydtrace_offsets.c:29: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long unsigned int’
./Include/pydtrace_offsets.c:31: warning: implicit declaration of function ‘offsetof’
./Include/pydtrace_offsets.c:31: error: expected expression before ‘PyCompactUnicodeObject’
./Include/pydtrace_offsets.c:33: error: expected expression before ‘PyCompactUnicodeObject’
make: *** [Include/pydtrace_offsets.h] Error 1

I was able to fix this by adding "#include <stddef.h>".

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13405>
_______________________________________


More information about the Python-bugs-list mailing list