<html><body>
<DIV>New to splint, so sorry if this post has already been addressed in the past.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Trying to parse source that is kernel module source and am getting numerous parse errors. Specifically, I am trying to parse e.g. iptables code (actually, netfilter code) like ip_conntrack_proto_sctp.c from a LK 2.6.9-xx source.</DIV>
<DIV>&nbsp;</DIV>
<DIV>splint complains about not being able to parse things like __u32int and the like. Basically, about a dozen or so defines from /linux/types.h which is the first include in the source file noted above.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I have created a .splintrc that I am populating with -Dxxx=yyy directives as these occur in running splint. Wound up with about 14 of these. Then, splint complains about not being able to parse the fs_struct.h which is an include in the sched.h</DIV>
<DIV>&nbsp;</DIV>
<DIV>Tried having -I directives in the command line like -I/usr/src/linux/include/linux/ and the like - still no go.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Also tried +posixlib and&nbsp;+unixlib - still no go</DIV>
<DIV>&nbsp;</DIV>
<DIV>I gave up at this point.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Doesn't seem like it should take this much effort but maybe it does. Or maybe I'm missing something more obvious.</DIV>
<DIV>&nbsp;</DIV>
<DIV class=signature id=signature>--<BR>Bruce Rosenthal <BR>Chief Architect, TranStrophe <BR>Turning Information and Technology Into Business Opportunities <BR><BR>505 521 4879 <BR>510 432 7912</DIV></body></html>