tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

sysutils/rsyslog and powerpc


this time I don't have a recipe for a workaround or fix, but am
instead looking for hints:

The build fails with

ld: ../runtime/.libs/librsyslog.a(librsyslog_la-action.o): in function `doSubmitToActionQNotAllMark':
/usr/pkgsrc/sysutils/rsyslog/work/rsyslog-8.38.0/runtime/../action.c:1892: undefined reference to `__sync_bool_compare_and_swap_8'
*** Error code 1

and that line (and the following) contains

        } while(ATOMIC_CAS_time_t(&pAction->f_time, lastAct,
                pMsg->ttGenTime, &pAction->mutCAS) == 0);

config.h ends up with (on NetBSD/macppc -current):

/* Define if compiler provides atomic builtins */

/* Define if compiler provides 64 bit atomic builtins */

Trying to link with -latomic doesn't change anything about the
build failure (no surprise, the above symbol doesn't exist

And ... despite runtime/atomic.h, I have not been able to trace
exactly how __sync_bool_compare_and_swap_8 comes to be referenced
(i.e. tracing the various actual declarations and #defines) and
where it's expected to be defined.

Hints, anyone?


- Håvard

Home | Main Index | Thread Index | Old Index