Compilation Errors
"Shakeel Ahmad" <[email protected]> Wed, 14 Feb 2007 02:29:19 +0500
| Newsgroups | gmane.comp.monitoring.sysmon.help |
|---|---|
| Message-ID | <[email protected]> |
--===============1218597019==
Content-Type: multipart/alternative;
boundary="----=_Part_80278_12616177.1171402159128"
------=_Part_80278_12616177.1171402159128
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
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@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 [email protected]
Full Error:
[root@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
------=_Part_80278_12616177.1171402159128
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
<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:[email protected]">[email protected]</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>
------=_Part_80278_12616177.1171402159128--
--===============1218597019==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Sysmon-help mailing list
Sysmon-help-li9M/[email protected]
https://puck.nether.net/mailman/listinfo/sysmon-help
--===============1218597019==--