Thanks for your help, now I solved the problem about include head file, but I got the error I still can't find a solution.<br><br>$ splint&nbsp; -I/home/alex/svn/prj6_ha2/branches/module/ha_code/contrib/grm/&nbsp; -I/home/alex/svn/prj6_ha2/trunk/module/heartbeat/libltdl -I/home/alex/svn/prj6_ha2/branches/module/heartbeat/linux-ha/ -I/usr/include/glib-
2.0/ -I/home/alex/svn/prj6_ha2/branches/module/heartbeat/include/ -I/home/alex/svn/prj6_ha2/branches/module/heartbeat/contrib/nrm/&nbsp; +posixlib -preproc&nbsp; nrmd.c<br><br><br><br>Splint 3.1.1 --- 22 Aug 2006<br><br>/usr/include/arpa/inet.h:35:27
<a></a>: Parse Error. (For help on parse errors, see<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; splint -help parseerrors.)<br>*** Cannot continue.<br><br><br><br>so , I run:<br>$ cat -n /usr/include/arpa/inet.h | grep -3&nbsp; 35<br><br>&nbsp;&nbsp;&nbsp; 32<br>&nbsp;&nbsp;&nbsp; 33&nbsp; /* Convert Internet host address from numbers-and-dots notation in CP
<br>&nbsp;&nbsp;&nbsp; 34&nbsp;&nbsp;&nbsp;&nbsp; into binary data in network byte order.&nbsp; */<br>&nbsp;&nbsp;&nbsp; 35&nbsp; extern in_addr_t inet_addr (__const char *__cp) __THROW;<br>&nbsp;&nbsp;&nbsp; 36<br>&nbsp;&nbsp;&nbsp; 37&nbsp; /* Return the local host address part of the Internet address in IN.&nbsp; */<br>
&nbsp;&nbsp;&nbsp; 38&nbsp; extern in_addr_t inet_lnaof (struct in_addr __in) __THROW;<br><br><br>I don't know why paser error at line 35, so ......:-)<br><br>best regard!<br><br><br><br><br><br><div><span class="gmail_quote">2006/8/25, Ludolf Holzheid &lt;
<a href="mailto:lholzheid@bihl-wiedemann.de">lholzheid@bihl-wiedemann.de</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Thu, 2006-08-24 10:37:17 +0800, jiping shao wrote:
<br>&gt; [..]<br>&gt; Splint 3.1.1 --- 22 Aug 2006<br>&gt;<br>&gt; Command Line: Setting +gnuextensions redundant with current value<br><br>Hello Jiping,<br><br>This first message is a warning only, saying the '+gnuextensions' flag
<br>does not change anything (as it is the default).<br><br>If you still want to specify '+gnuextensions' on the command line and<br>you don't want to see this message, place a '-warnflags' flag left of<br>'+gnuextensions'.
<br><br>&gt; nrmd.c:18:25: Cannot find include file portability.h on search path:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;/usr/include/...<br>&gt;&nbsp;&nbsp;Preprocessing error. (Use -preproc to inhibit warning)<br><br>This is a fatal error:&nbsp;&nbsp;Splint does not find '
portability.h' in the<br>directories given as search path.<br><br>&gt; ../../../../../tags/tag1/module/heartbeat/include/heartbeat.h:77:66:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;#error &quot;Syslog.h does not define either LOG_PRI or LOG_PRIMASK.&quot;
<br>&gt;&nbsp;&nbsp; In file included from nrmd.c:37<br><br>In 'heartbeat.h', it is checked whether LOG_PRI or LOG_PRIMASK is<br>defined. They are not (maybe due to the missing header). Reaching an<br>#error directive is regarded as a fatal error.
<br><br>This is a fatal error too.<br><br>&gt; ../../../../../tags/tag1/module/heartbeat/contrib/nrm/nrm_api.h:27:25:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;Cannot find include file portability.h on search path:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;/usr/include/...<br>&gt;&nbsp;&nbsp; In file included from 
nrmd.c:54<br><br>'portability.h' is missing again.<br><br>&gt; ../../../../../tags/tag1/module/heartbeat/contrib/nrm/nrm_msg.h:35:25:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;Cannot find include file portability.h on search path:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;/usr/include/...
<br>&gt;&nbsp;&nbsp; In file included from nrmd.c:55<br><br>'portability.h' should be included a third time.<br><br>&gt; Preprocessing error for file:<br>&gt; /home/alex/svn/prj6_ha2/branches/module/heartbeat/<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;contrib/nrm/nrmd.c
<br>&gt; *** Cannot continue.<br><br>This final message means, splint bailed out after preprocessing phase.<br><br><br>It's a proven strategy to take care for the first error message first,<br>so try adding the path to 'portability.h
' to the search path.<br><br>OTOH, if 'nrmd.c' cannot be compiled (due to the compiler also chokes<br>on the missing headers and failed tests), you may still run splint on<br>it by specifying '-preproc' flag. (I'm not sure whether this would be
<br>meaningful, though).<br><br>HTH,<br><br>Ludolf<br><br>--<br><br>---------------------------------------------------------------<br>Ludolf Holzheid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Tel:&nbsp;&nbsp;&nbsp;&nbsp;+49 621 339960<br>Bihl+Wiedemann GmbH&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Fax:&nbsp;&nbsp;&nbsp;&nbsp;+49 621 3392239
<br>Floßwörthstraße 41&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;e-mail: <a href="mailto:lholzheid@bihl-wiedemann.de">lholzheid@bihl-wiedemann.de</a><br>D-68199 Mannheim, Germany<br>---------------------------------------------------------------<br><br> LocalWords:&nbsp;&nbsp;warnflags
<br><br></blockquote></div><br>