Hi folks,

I'm trying to cross compile rsyslog for an embedded system running with
ARM v5t processor. While doing this I ran into some troubles:
(I've considered some hints from this site:
http://cross-lfs.org/view/clfs-2.0/arm/final-system/rsyslog.html)
 

1. Configure seems to not determine correct values for the following: 
- ac_cv_func_malloc_0_nonnull
- ac_cv_func_realloc_0_nonnull
After setting these to yes the list of errors shrinks dramatically but
there are still some left...


2. There seems to be a problem with atomic operations. AFAIK my
processor supports atomic operations (please correct me if I'm wrong).
Configure instead determines that atomic support should not be enabled
(ap_cv_atomic_builtins=no). When running make afterwards i get some
errors like "glbl.c:134: undefined reference to
'ATOMIC_STORE_1_TO_INT'". When looking into atomic.h it becomes clear
what causes this error: some macros are not defined when
HAVE_ATOMIC_BUILTINS is not defined but are obviously used nevertheless.

I get rid of this problem by setting ap_cv_atomic_builtins=yes
explicitly. When combining the solutions of 1. and 2. make builds
successfully.
 

3. When starting rsyslogd an the ARM machine I get a segmentation fault
(unfortunately i have no stack trace, but i could send debug output from
rsyslogd and rsyslog.conf if neccessary).


4. When commenting out the two lines for module load i get an alignment
trap: Alignment trap: rs:main Q:Reg (12879) PC=0x0004ff8c
Instr=0xe5932014 Address=0x20766f62 FSR 0x001 Bus error 
(debug output could be sent if neccessary)


Is it possible that issues 3. and 4. have something to do with the
atomics issue? 
Maybe anyone has an idea what else could be wrong here?
Thanks a lot.
 
Cheers,
Lutz
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com

Reply via email to