Thanks. I'm getting ever closer. I had to deal with __attribute__, and now I
think I'm using a reserved keyword:
# cat watchApacheRequests.d
#!/usr/sbin/dtrace
#define __builtin_va_list long
#define __attribute__(x)
#include <httpd.h>
...
# dtrace -32 -C -I /export/home/amitchel/include -x cpppath=/usr/sfw/bin/cpp
-Xs -s watchApacheRequests.d -p 843
cc1: warning: /dev/fd/6 is shorter than expected
dtrace: failed to compile script watchApacheRequests.d:
"/export/home/amitchel/include/ap_regex.h", line 117: syntax error near "string"
The offending line is:
AP_DECLARE(int) ap_regexec(const ap_regex_t *preg, const char *string,
apr_size_t nmatch, ap_regmatch_t *pmatch, int
eflags);
I know from
[http://cvs.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libdtrace/common/dt_lex.l]
that 'string' is reserved. Can you think of a trick that will let me use it?
Obviously, I'm trying to avoid touching Apache's header files.
Thanks a lot for all the help.
--
This message posted from opensolaris.org
_______________________________________________
dtrace-discuss mailing list
[email protected]