Saadia Fatima
2010-Oct-11 14:27 UTC
[dtrace-discuss] dtrace: no struct definition available
Hi I have been using dtrace script to monitor WiFi frames. For some reason, when I run the script I get the following error: dtrace: failed on compile script....line 56: operator -> can not be applied to a forward declaration: no struct ieee80211_frame definition is avaiable. And this is happening in all the scripts that use this structure. They were running fine previously. I had a few system freeze-reboot cycles in between though. How can I resolve this issue and run them again. Thanks -SF -- This message posted from opensolaris.org
James Carlson
2010-Oct-11 15:08 UTC
[dtrace-discuss] dtrace: no struct definition available
Saadia Fatima wrote:> Hi > > I have been using dtrace script to monitor WiFi frames. For some reason, when I run the script I get the following error: > > dtrace: failed on compile script....line 56: operator -> can not be applied to a forward declaration: no struct ieee80211_frame definition is avaiable. > > And this is happening in all the scripts that use this structure. They were running fine previously. I had a few system freeze-reboot cycles in between though. > > How can I resolve this issue and run them again.That structure isn''t normally a packaged part of the system. It''s in $SRC/uts/common/sys/net80211_proto.h, which I suppose you could copy from the source tree to any place you want. Or you could try contacting the folks who maintain that file (laptop-discuss at opensolaris.org would be a good choice) and see why it''s not normally delivered and whether you could get it to be included. Most likely, your D script depends on an implementation artifact, and this is an early warning that the underlying code you''re trying to use may change incompatibly without warning. -- James Carlson 42.703N 71.076W <carlsonj at workingcode.com>