Errors compiling sysmon 0.92.2 on CentOS 64 bit
Posted September 28th, 2008 in Linux/Unix/BSD
Yesterday I looked at the undefined reference to yywrap error when compiling sysmon. That particular error occured when I was compiling sysmon 0.92.2 on a 32 bit CentOS machine. When I went to compile it on the production server - a 64 bit CentOS machine - I got a different error. This post looks at the other error and how I fixed it.
Running ./configure returned no errors. When I ran "make" I got the following error message:
make[1]: Entering directory `/home/chris/temp/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 parser.o parser.c
In file included from /usr/include/sys/stat.h:105,
from config.h:24,
from parser.l:11:
/usr/include/bits/stat.h:103: error: expected identifier or â(â before â[â token
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 `/home/chris/temp/sysmon-0.92.2/src'
make: *** [all] Error 2
Searching Google didn't help and I could only find one other person who had the same issue as me and there was no solution posted.
So how did I solve it? I downloaded the 0.93-pre3 beta version from the beta directory of the sysmon ftp server to see if that would work instead. And that installed just fine!

Comments
blog comments powered by Disqus