Hi,

I can't compile rsyslog-5.3.7 by gcc-4.1.2 (on 32-bit
system):


$ ./configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/bin \
--bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc \
--localstatedir=/var --datadir=/usr/share --infodir=/usr/share/info \
--mandir=/usr/share/man --enable-pgsql --enable-mail --enable-imfile \
--enable-omprog
...
checking whether the compiler provides atomic builtins... no
checking whether the compiler provides atomic builtins for 64 bit data 
types... no
...

Configure script run without errors.



$ make
...
  CC     rsyslogd-omfile.o
In file included from omfile.c:67:
../runtime/atomic.h:64:3: warning: #warning "atomic builtins not available, 
using nul operations - rsyslogd will probably be racy!"
omfile.c: In function 'getClockFileAccess':
omfile.c:95: warning: implicit declaration of function 'ATOMIC_INC_AND_FETCH'
  CC     rsyslogd-omdiscard.o
  CC     rsyslogd-pmrfc5424.o
  CC     rsyslogd-pmrfc3164.o
  CC     rsyslogd-iminternal.o
  CC     rsyslogd-pidfile.o
pidfile.c: In function 'read_pid':
pidfile.c:58: warning: ignoring return value of 'fscanf', declared with 
attribute warn_unused_result
pidfile.c: In function 'write_pid':
pidfile.c:116: warning: ignoring return value of 'fscanf', declared with 
attribute warn_unused_result
  CCLD   rsyslogd
rsyslogd-omfile.o: In function `getClockFileAccess':
/usr/src/pakbuilder-work/server/rsyslog/rsyslog-5.3.7/tools/omfile.c:95: 
undefined reference to `ATOMIC_INC_AND_FETCH'
/usr/src/pakbuilder-work/server/rsyslog/rsyslog-5.3.7/tools/omfile.c:95: 
undefined reference to `ATOMIC_INC_AND_FETCH'
/usr/src/pakbuilder-work/server/rsyslog/rsyslog-5.3.7/tools/omfile.c:95: 
undefined reference to `ATOMIC_INC_AND_FETCH'
../runtime/.libs/librsyslog.a(librsyslog_la-glbl.o): In function 
`SetGlobalInputTermination':
/usr/src/pakbuilder-work/server/rsyslog/rsyslog-5.3.7/runtime/glbl.c:136: 
undefined reference to `ATOMIC_STORE_1_TO_INT'
../runtime/.libs/librsyslog.a(librsyslog_la-msg.o): In function `msgDestruct':
/usr/src/pakbuilder-work/server/rsyslog/rsyslog-5.3.7/runtime/msg.c:802: 
undefined reference to `ATOMIC_INC_AND_FETCH'
../runtime/.libs/librsyslog.a(librsyslog_la-wti.o): In function `wtiSetState':
/usr/src/pakbuilder-work/server/rsyslog/rsyslog-5.3.7/runtime/wti.c:109: 
undefined reference to `ATOMIC_STORE_1_TO_INT'
/usr/src/pakbuilder-work/server/rsyslog/rsyslog-5.3.7/runtime/wti.c:111: 
undefined reference to `ATOMIC_STORE_0_TO_INT'
../runtime/.libs/librsyslog.a(librsyslog_la-queue.o): In function 
`DoDeleteBatchFromQStore':
/usr/src/pakbuilder-work/server/rsyslog/rsyslog-5.3.7/runtime/queue.c:1291: 
undefined reference to `ATOMIC_SUB'
/usr/src/pakbuilder-work/server/rsyslog/rsyslog-5.3.7/runtime/queue.c:1292: 
undefined reference to `ATOMIC_SUB'
/usr/src/pakbuilder-work/server/rsyslog/rsyslog-5.3.7/runtime/queue.c:1291: 
undefined reference to `ATOMIC_SUB'
/usr/src/pakbuilder-work/server/rsyslog/rsyslog-5.3.7/runtime/queue.c:1292: 
undefined reference to `ATOMIC_SUB'
/usr/src/pakbuilder-work/server/rsyslog/rsyslog-5.3.7/runtime/queue.c:1291: 
undefined reference to `ATOMIC_SUB'
../runtime/.libs/librsyslog.a(librsyslog_la-queue.o):/usr/src/pakbuilder-work/server/rsyslog/rsyslog-5.3.7/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/src/pakbuilder-work/server/rsyslog/rsyslog-5.3.7/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
`/usr/src/pakbuilder-work/server/rsyslog/rsyslog-5.3.7'
make: *** [all] Error 2



Any help is appreciated.


--
Regards,
Sergei Butakov

_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com

Reply via email to