Should I be worried? rsyslogd will probably be racy!

Everything related with getting rsyslog up and running (but not beyond that point ;))

Moderator: rgerhards

Should I be worried? rsyslogd will probably be racy!

Postby kellinwood » Sat Jun 27, 2009 2:09 am

Hi,

I built 4.2.0 on CentOS 5.3 with gcc 4.1.2 and noticed the following warning in the compiler output. Should I be worried?

Code: Select all
atomic.h:57:3: warning: #warning "atomic builtins not available, using nul operations - rsyslogd will probably be racy!"


Thanks,
Ken
kellinwood
New
 
Posts: 2
Joined: Sat Jun 27, 2009 1:25 am

Professional Services Information

  • Custom written rsyslog.conf?
  • Maintenance Contract?
  • Installation support?

Re: Should I be worried? rsyslogd will probably be racy!

Postby rgerhards » Sat Jun 27, 2009 10:16 am

yes, definitely, it'll crash under heavy load (at random). In the next release, I have changed it that it does not even compile without atomics. However, gcc 4.1.x should include support for atomic operations, so I wonder why it is not enabled. Maybe we should evaluate configure's log in depth...
User avatar
rgerhards
Site Admin
 
Posts: 2647
Joined: Thu Feb 13, 2003 11:57 am

Re: Should I be worried? rsyslogd will probably be racy!

Postby kellinwood » Mon Jun 29, 2009 7:43 pm

OK, I figured it out... somehow the build was incorrectly assuming an i386 target. Apparently the atomic built-ins are not supported for i386 (we need 486 or above). So if I use the following configure command the warning goes away.

Code: Select all
CFLAGS=-march=i686 ./configure


Ken
kellinwood
New
 
Posts: 2
Joined: Sat Jun 27, 2009 1:25 am

Re: Should I be worried? rsyslogd will probably be racy!

Postby rgerhards » Mon Jun 29, 2009 7:58 pm

ahh, good to know. I should probably emit this together with the warning message.
User avatar
rgerhards
Site Admin
 
Posts: 2647
Joined: Thu Feb 13, 2003 11:57 am

Google Ads



Return to Installation

Who is online

Users browsing this forum: No registered users and 0 guests

cron