You'll probably have better luck on the dtrace-discuss list for the
Dtrace part of your query.
However, I can offer this: It is my experience is that not all header
files are suitable for consumption by the D preprocessor.
You may have to manually extract the definitions you want (I'm guessing
you need it for the SYS_NMLN declaration) and include it as a #define in
place of the #include. There appears to be something in <sys/utsname.h>
which the D preprocessor is objecting to.
Nothing in the header file itself has changed since opensolaris was
"launched" in 2005, so my guess would have to be something in dtrace has
changed.
Regards,
Brian
Juan Damian Bernabe wrote:
Hello everybody,
Im running OSol 2009.06 snv_134 on an Intel x86 pc.
Well, I can't get the saptel drivers to work. I've tried the instructions below
but no success. This is the message that returns:
ad...@server:/export~# cat sysrelease.d
#!/usr/sbin/dtrace -Cws
#include <sys/utsname.h>
syscall::uname:entry
{
this->in = (struct utsname *)arg0;
}
syscall::uname:return
{
copyoutstr($$1, (uintptr_t)&this->in->release[0], SYS_NMLN);
}
ad...@server:/export~# ./sysrelease.d 5.10
dtrace: failed to compile script ./sysrelease.d: "/usr/include/sys/utsname.h", line 107:
syntax error near "{"
ad...@server:/export~#
HELP!
I want to use asterisk with Ekiga and bluetooth headsets on my office :D
Thanks!
--
Brian Ruthven
Solaris Network RPE (Sustaining)
Oracle UK
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org