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 -I/home/alex/svn/prj6_ha2/branches/module/ha_code/contrib/grm/ -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/ +posixlib -preproc 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> splint -help parseerrors.)<br>*** Cannot continue.<br><br><br><br>so , I run:<br>$ cat -n /usr/include/arpa/inet.h | grep -3 35<br><br> 32<br> 33 /* Convert Internet host address from numbers-and-dots notation in CP
<br> 34 into binary data in network byte order. */<br> 35 extern in_addr_t inet_addr (__const char *__cp) __THROW;<br> 36<br> 37 /* Return the local host address part of the Internet address in IN. */<br>
38 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 <
<a href="mailto:lholzheid@bihl-wiedemann.de">lholzheid@bihl-wiedemann.de</a>>:</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>> [..]<br>> Splint 3.1.1 --- 22 Aug 2006<br>><br>> 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>> nrmd.c:18:25: Cannot find include file portability.h on search path:<br>> /usr/include/...<br>> Preprocessing error. (Use -preproc to inhibit warning)<br><br>This is a fatal error: Splint does not find '
portability.h' in the<br>directories given as search path.<br><br>> ../../../../../tags/tag1/module/heartbeat/include/heartbeat.h:77:66:<br>> #error "Syslog.h does not define either LOG_PRI or LOG_PRIMASK."
<br>> 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>> ../../../../../tags/tag1/module/heartbeat/contrib/nrm/nrm_api.h:27:25:<br>> Cannot find include file portability.h on search path:<br>> /usr/include/...<br>> In file included from
nrmd.c:54<br><br>'portability.h' is missing again.<br><br>> ../../../../../tags/tag1/module/heartbeat/contrib/nrm/nrm_msg.h:35:25:<br>> Cannot find include file portability.h on search path:<br>> /usr/include/...
<br>> In file included from nrmd.c:55<br><br>'portability.h' should be included a third time.<br><br>> Preprocessing error for file:<br>> /home/alex/svn/prj6_ha2/branches/module/heartbeat/<br>> contrib/nrm/nrmd.c
<br>> *** 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 Tel: +49 621 339960<br>Bihl+Wiedemann GmbH Fax: +49 621 3392239
<br>Floßwörthstraße 41 e-mail: <a href="mailto:lholzheid@bihl-wiedemann.de">lholzheid@bihl-wiedemann.de</a><br>D-68199 Mannheim, Germany<br>---------------------------------------------------------------<br><br> LocalWords: warnflags
<br><br></blockquote></div><br>