Please forgive me if this is addressed in later versions; I'm just working against the version that was pulled into Gentoo yesterday.
The atomic operations used in debug.c and msg.c were not introduced until gcc-4.1.0; as such, systems compiling with an earlier version (i.e. hardened-gentoo) fail compilation with undefined references to __sync_fetch_and_add and __sync_sub_and_fetch. I'm not sure of the right way to check for this in atomic.h, but it would be helpful if a check was made before setting DO_HAVE_ATOMICS. In addition, although msg.c makes appropriate checks for DO_HAVE_ATOMICS, debug.c does not and fails to compile under such systems. I would supply a patch, but being completely new to your codebase thought I'd start with reporting. Thanks for your time! RB _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog

