<div>Guys,</div>
<div> </div>
<div>On Redhat Enterprise AS 3, i am getting compilation errors - can someone help ? :</div>
<div> </div>
<div>parser.o parser.c<br>In file included from config.h:39,<br> from parser.l:11:<br>/usr/include/netinet/ip_icmp.h:42: unnamed fields of type other than struct or union are not allowed<br>parser.l:1374:2: warning: #warning Need to add and store group
<br>parser.l:2003:2: warning: #warning child does not do anything<br>make[1]: *** [parser.o] Error 1<br>make[1]: Leaving directory `/usr/src/sysmon-0.92.2/src'<br>make: *** [install] Error 2<br> </div>
<div> </div>
<div>All configure options are good:</div>
<div> </div>
<div>
<p>[root@Lyniz sysmon-0.92.2]# ./configure<br>checking whether make sets $(MAKE)... yes<br>checking for gcc... gcc<br>checking for C compiler default output file name... a.out<br>checking whether the C compiler works... yes
<br>checking whether we are cross compiling... no<br>checking for suffix of executables...<br>checking for suffix of object files... o<br>checking whether we are using the GNU C compiler... yes<br>checking whether gcc accepts -g... yes
<br>checking for gcc option to accept ANSI C... none needed<br>checking for ranlib... ranlib<br>checking for a BSD-compatible install... /usr/bin/install -c<br>checking for sendmail... /usr/sbin/sendmail<br>checking for flex... /usr/bin/flex
<br>checking for lex... (cached) /usr/bin/flex<br>checking how to run the C preprocessor... gcc -E<br>checking for egrep... grep -E<br>checking for ANSI C header files... yes<br>checking for sys/types.h... yes<br>checking for sys/stat.h... yes
<br>checking for stdlib.h... yes<br>checking for string.h... yes<br>checking for memory.h... yes<br>checking for strings.h... yes<br>checking for inttypes.h... yes<br>checking for stdint.h... yes<br>checking for unistd.h..
. yes<br>checking paths.h usability... yes<br>checking paths.h presence... yes<br>checking for paths.h... yes<br>checking for refresh in -lcurses... yes<br>checking for refresh in -lncurses... yes<br>checking for inet_ntoa in -lnsl... yes
<br>checking for yywrap in -lfl... yes<br>checking for yywrap in -ll... yes<br>checking for pthread_create in -lpthread... yes<br>checking for getpeername in -lsocket... no<br>checking for gethostname in -lresolv... yes<br>
checking for gethostbyname... yes<br>checking for gethostbyname2... yes<br>checking for snprintf in -lc... yes<br>checking for snprintf... yes<br>checking for _snprintf... no<br>checking for revoke in -lbsd... yes<br>checking for main in -lkstat... no
<br>checking for main in -lssl... yes<br>checking for main in -lcrypto... yes<br>checking for hosts_ctl in -lwrap... yes<br>checking tcpd.h usability... yes<br>checking tcpd.h presence... yes<br>checking for tcpd.h... yes
<br>checking sys/socket.h usability... yes<br>checking sys/socket.h presence... yes<br>checking for sys/socket.h... yes<br>checking netinet/in.h usability... yes<br>checking netinet/in.h presence... yes<br>checking for netinet/in.h... yes
<br>checking for netinet/icmp6.h... yes<br>checking net-snmp/version.h usability... yes<br>checking net-snmp/version.h presence... yes<br>checking for net-snmp/version.h... yes<br>checking for snmp_open in -lsnmp... yes<br>
checking for NetSnmpVersionInfo in -lsnmp... yes<br>checking for snmp_open in -lnetsnmp... yes<br>configure: creating ./config.status<br>config.status: creating src/Makefile<br>config.status: creating src/defines.h</p>
<p>Configuration complete, now:<br>cd src<br>make<br>make install</p>
<p>Then read ALL the documentation in docs/ :)</p>
<p>If this is your first time using sysmon, please register it. That can<br>be done by typing:<br>make register</p>
<p>If you have problems, or have questions that are not in the docs,<br>send e-mail to <a href="mailto:sysmon-help@sysmon.org">sysmon-help@sysmon.org</a><br></p>
<p>Full Error:</p>
<p> </p>
<p>[root@Lyniz sysmon-0.92.2]# make install<br>(cd src; make install)<br>make[1]: Entering directory `/usr/src/sysmon-0.92.2/src'<br>gcc -g -O2 '-DMAIL="/usr/sbin/sendmail"' -DCFILE='"/usr/local/etc/sysmon.conf"' -DHAVE_SNPRINTF -I/usr/local/include -c -o
heartbeat.o heartbeat.c<br>gcc -g -O2 '-DMAIL="/usr/sbin/sendmail"' -DCFILE='"/usr/local/etc/sysmon.conf"' -DHAVE_SNPRINTF -I/usr/local/include -c -o syswatch.o syswatch.c<br>syswatch.c
: In function `queue_checks_qsort_way':<br>syswatch.c:776: warning: passing arg 4 of `qsort' from incompatible pointer type<br>gcc -g -O2 '-DMAIL="/usr/sbin/sendmail"' -DCFILE='"/usr/local/etc/sysmon.conf"' -DHAVE_SNPRINTF -I/usr/local/include -c -o
page.o page.c<br>gcc -g -O2 '-DMAIL="/usr/sbin/sendmail"' -DCFILE='"/usr/local/etc/sysmon.conf"' -DHAVE_SNPRINTF -I/usr/local/include -c -o tcp.o tcp.c<br>gcc -g -O2 '-DMAIL="/usr/sbin/sendmail"' -DCFILE='"/usr/local/etc/sysmon.conf"' -DHAVE_SNPRINTF -I/usr/local/include -c -o
udp.o udp.c<br>gcc -g -O2 '-DMAIL="/usr/sbin/sendmail"' -DCFILE='"/usr/local/etc/sysmon.conf"' -DHAVE_SNPRINTF -I/usr/local/include -c -o icmp.o icmp.c<br>gcc -g -O2 '-DMAIL="/usr/sbin/sendmail"' -DCFILE='"/usr/local/etc/sysmon.conf"' -DHAVE_SNPRINTF -I/usr/local/include -c -o
pop3.o pop3.c<br>gcc -g -O2 '-DMAIL="/usr/sbin/sendmail"' -DCFILE='"/usr/local/etc/sysmon.conf"' -DHAVE_SNPRINTF -I/usr/local/include -c -o umichX500.o umichX500.c<br>gcc -g -O2 '-DMAIL="/usr/sbin/sendmail"' -DCFILE='"/usr/local/etc/sysmon.conf"' -DHAVE_SNPRINTF -I/usr/local/include -c -o
loadconfig.o loadconfig.c<br>gcc -g -O2 '-DMAIL="/usr/sbin/sendmail"' -DCFILE='"/usr/local/etc/sysmon.conf"' -DHAVE_SNPRINTF -I/usr/local/include -c -o smtp.o smtp.c<br>gcc -g -O2 '-DMAIL="/usr/sbin/sendmail"' -DCFILE='"/usr/local/etc/sysmon.conf"' -DHAVE_SNPRINTF -I/usr/local/include -c -o
nntp.o nntp.c<br>gcc -g -O2 '-DMAIL="/usr/sbin/sendmail"' -DCFILE='"/usr/local/etc/sysmon.conf"' -DHAVE_SNPRINTF -I/usr/local/include -c -o talktcp.o talktcp.c<br>gcc -g -O2 '-DMAIL="/usr/sbin/sendmail"' -DCFILE='"/usr/local/etc/sysmon.conf"' -DHAVE_SNPRINTF -I/usr/local/include -c -o
imap.o imap.c<br>gcc -g -O2 '-DMAIL="/usr/sbin/sendmail"' -DCFILE='"/usr/local/etc/sysmon.conf"' -DHAVE_SNPRINTF -I/usr/local/include -c -o lib.o lib.c<br>gcc -g -O2 '-DMAIL="/usr/sbin/sendmail"' -DCFILE='"/usr/local/etc/sysmon.conf"' -DHAVE_SNPRINTF -I/usr/local/include -c -o
textfile.o textfile.c<br>gcc -g -O2 '-DMAIL="/usr/sbin/sendmail"' -DCFILE='"/usr/local/etc/sysmon.conf"' -DHAVE_SNPRINTF -I/usr/local/include -c -o http.o http.c<br>gcc -g -O2 '-DMAIL="/usr/sbin/sendmail"' -DCFILE='"/usr/local/etc/sysmon.conf"' -DHAVE_SNPRINTF -I/usr/local/include -c -o
srvclient.o srvclient.c<br>gcc -g -O2 '-DMAIL="/usr/sbin/sendmail"' -DCFILE='"/usr/local/etc/sysmon.conf"' -DHAVE_SNPRINTF -I/usr/local/include -c -o dnscache.o dnscache.c<br>gcc -g -O2 '-DMAIL="/usr/sbin/sendmail"' -DCFILE='"/usr/local/etc/sysmon.conf"' -DHAVE_SNPRINTF -I/usr/local/include -c -o
ircd.o ircd.c<br>gcc -g -O2 '-DMAIL="/usr/sbin/sendmail"' -DCFILE='"/usr/local/etc/sysmon.conf"' -DHAVE_SNPRINTF -I/usr/local/include -c -o sysmon.o sysmon.c<br>gcc -g -O2 '-DMAIL="/usr/sbin/sendmail"' -DCFILE='"/usr/local/etc/sysmon.conf"' -DHAVE_SNPRINTF -I/usr/local/include -c -o
radius.o radius.c<br>gcc -g -O2 '-DMAIL="/usr/sbin/sendmail"' -DCFILE='"/usr/local/etc/sysmon.conf"' -DHAVE_SNPRINTF -I/usr/local/include -c -o md5.o md5.c<br>gcc -g -O2 '-DMAIL="/usr/sbin/sendmail"' -DCFILE='"/usr/local/etc/sysmon.conf"' -DHAVE_SNPRINTF -I/usr/local/include -c -o
parser.o parser.c<br>In file included from config.h:39,<br> from parser.l:11:<br>/usr/include/netinet/ip_icmp.h:42: unnamed fields of type other than struct or union are not allowed<br>parser.l:1374:2: warning: #warning Need to add and store group
<br>parser.l:2003:2: warning: #warning child does not do anything<br>make[1]: *** [parser.o] Error 1<br>make[1]: Leaving directory `/usr/src/sysmon-0.92.2/src'<br>make: *** [install] Error 2<br></p></div>