On Mon, Nov 19, 2007 at 07:27:12PM -0800, Rich Morin wrote: > At 19:16 -0800 11/19/07, Mike Shapiro wrote: > > Hmm. That exact sequence, minus sudo, works for me on latest bits. > > Can you (a) reproduce without sudo? I can't see how that can affect > > it but let's be sure. > > % dtrace -I. -C -s d3.d > dtrace: failed to initialize dtrace: > DTrace requires additional privileges > % sudo su > Password: > sh-3.2# dtrace -I. -C -s d3.d > dtrace: failed to compile script d3.d: line 5: > syntax error near "1" > > > > Also (b) what build do you have? (uname -a output) > > % uname -a > Darwin spot.local 9.1.0 Darwin Kernel Version 9.1.0: > Wed Oct 31 17:46:22 PDT 2007; > root:xnu-1228.0.2~1/RELEASE_I386 i386
Ah. Apologies for not asking about the platform up front. Now that we run everywhere I need to ask that :) This is likely a porting bug in the MacOS X DTrace. Sun's cpp uses a different control line syntax from GNU cpp and I haven't yet modified the common DTrace code to understand both of them. Apple guys: can you comment on whether you modified dt_pragma.c to understand GCC cpp, which I assume is your default cpp? Or please post the code to your latest stuff somewhere. You will need to modify that. If you haven't done so I can give you a quick sketch of what will need to be done there. -Mike -- Mike Shapiro, Solaris Kernel Development. blogs.sun.com/mws/ _______________________________________________ dtrace-discuss mailing list [email protected]
