We want to begin centralizing our system logs to a dedicated server, using a daemon that is flexible and offers more features. After some research, I decided to give rsyslog a whirl (versus syslog-ng). The problem has come down to compilation errors which, unfortunately, I've not been able to resolve otherwise (rsyslog forums) and it appears this is a larger problem with the product. So before I begin making another decision, I wanted to get some input from others here.
Here is a snippet of the errors:
Code:
/usr/local/src/rsyslog/rsyslog-5.4.0/runtime/queue.c:1291: undefined reference to `ATOMIC_SUB'
/usr/local/src/rsyslog/rsyslog-5.4.0/runtime/queue.c:1292: undefined reference to `ATOMIC_SUB'
/usr/local/src/rsyslog/rsyslog-5.4.0/runtime/queue.c:1291: undefined reference to `ATOMIC_SUB'
/usr/local/src/rsyslog/rsyslog-5.4.0/runtime/queue.c:1292: undefined reference to `ATOMIC_SUB'
/usr/local/src/rsyslog/rsyslog-5.4.0/runtime/queue.c:1291: undefined reference to `ATOMIC_SUB'
../runtime/.libs/librsyslog.a(librsyslog_la-queue.o):/usr/local/src/rsyslog/rsyslog-5.4.0/runtime/queue.c:1292: more undefined references to `ATOMIC_SUB' follow
collect2: ld returned 1 exit status
make[2]: *** [rsyslogd] Error 1
make[2]: Leaving directory `/usr/local/src/rsyslog/rsyslog-5.4.0/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/rsyslog/rsyslog-5.4.0'
make: *** [all] Error 2
So where is this ATOMIC_SUB not being defined correctly?
My configure args are very simple:
Code:
./configure --enable-mysql --enable-mail --enable-gui
When I trim this down to just enable mysql, it still has the same errors. Early on in the compile process I see these errors:
Code:
make all-recursive
make[1]: Entering directory `/usr/local/src/rsyslog/rsyslog-5.4.0'
Making all in doc
make[2]: Entering directory `/usr/local/src/rsyslog/rsyslog-5.4.0/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/src/rsyslog/rsyslog-5.4.0/doc'
Making all in runtime
make[2]: Entering directory `/usr/local/src/rsyslog/rsyslog-5.4.0/runtime'
CC librsyslog_la-rsyslog.lo
CC librsyslog_la-glbl.lo
In file included from glbl.c:42:
atomic.h:64:3: warning: #warning "atomic builtins not available, using nul operations - rsyslogd will probably be racy!"
I tried compiling 5.5.2 and get the same errors.
So at this point it's not looking very promising. I suppose there may be a reason why Redhat's distribution (RPM) only has version 3.x of rsyslog, perhaps related to this.
Any constructive feedback would be welcomed. Even suggestions of a different product/direction.
Thanks.