[sysmon-help] Compilation Errors
Shakeel Ahmad
shakeel.ahmad at networkncc.com
Tue Feb 13 16:29:19 EST 2007
Guys,
On Redhat Enterprise AS 3, i am getting compilation errors - can someone
help ? :
parser.o parser.c
In file included from config.h:39,
from parser.l:11:
/usr/include/netinet/ip_icmp.h:42: unnamed fields of type other than struct
or union are not allowed
parser.l:1374:2: warning: #warning Need to add and store group
parser.l:2003:2: warning: #warning child does not do anything
make[1]: *** [parser.o] Error 1
make[1]: Leaving directory `/usr/src/sysmon-0.92.2/src'
make: *** [install] Error 2
All configure options are good:
[root at Lyniz sysmon-0.92.2]# ./configure
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking for sendmail... /usr/sbin/sendmail
checking for flex... /usr/bin/flex
checking for lex... (cached) /usr/bin/flex
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking paths.h usability... yes
checking paths.h presence... yes
checking for paths.h... yes
checking for refresh in -lcurses... yes
checking for refresh in -lncurses... yes
checking for inet_ntoa in -lnsl... yes
checking for yywrap in -lfl... yes
checking for yywrap in -ll... yes
checking for pthread_create in -lpthread... yes
checking for getpeername in -lsocket... no
checking for gethostname in -lresolv... yes
checking for gethostbyname... yes
checking for gethostbyname2... yes
checking for snprintf in -lc... yes
checking for snprintf... yes
checking for _snprintf... no
checking for revoke in -lbsd... yes
checking for main in -lkstat... no
checking for main in -lssl... yes
checking for main in -lcrypto... yes
checking for hosts_ctl in -lwrap... yes
checking tcpd.h usability... yes
checking tcpd.h presence... yes
checking for tcpd.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for netinet/icmp6.h... yes
checking net-snmp/version.h usability... yes
checking net-snmp/version.h presence... yes
checking for net-snmp/version.h... yes
checking for snmp_open in -lsnmp... yes
checking for NetSnmpVersionInfo in -lsnmp... yes
checking for snmp_open in -lnetsnmp... yes
configure: creating ./config.status
config.status: creating src/Makefile
config.status: creating src/defines.h
Configuration complete, now:
cd src
make
make install
Then read ALL the documentation in docs/ :)
If this is your first time using sysmon, please register it. That can
be done by typing:
make register
If you have problems, or have questions that are not in the docs,
send e-mail to sysmon-help at sysmon.org
Full Error:
[root at Lyniz sysmon-0.92.2]# make install
(cd src; make install)
make[1]: Entering directory `/usr/src/sysmon-0.92.2/src'
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
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
syswatch.c: In function `queue_checks_qsort_way':
syswatch.c:776: warning: passing arg 4 of `qsort' from incompatible pointer
type
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
In file included from config.h:39,
from parser.l:11:
/usr/include/netinet/ip_icmp.h:42: unnamed fields of type other than struct
or union are not allowed
parser.l:1374:2: warning: #warning Need to add and store group
parser.l:2003:2: warning: #warning child does not do anything
make[1]: *** [parser.o] Error 1
make[1]: Leaving directory `/usr/src/sysmon-0.92.2/src'
make: *** [install] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://puck.nether.net/pipermail/sysmon-help/attachments/20070214/61121f90/attachment.html
More information about the Sysmon-help
mailing list