[syslog-ng] Cross compiling syslog-ng - problem with pthread_spin_lock
Balazs Scheidler
bazsi at balabit.hu
Wed Feb 29 09:24:01 CET 2012
On Fri, 2012-02-24 at 13:20 +0100, Gergely Nagy wrote:
> Radha Krishna Srimanthula <srimanthula.radhakrishna at gmail.com> writes:
>
> > Hi,
> >
> > I am trying to cross compile syslog-ng for my embedded platform. When I run
> > ./configure pointing it to the proper tool chain, it indicates "checking
> > for pthread_spin_lock... no". And when I compile, it complains -
> > "iv_thr.h:97: error: conflicting type qualifiers for 'pthread_spinlock_t'"
>
> I suspect ivykis (lib/ivykis/) is a bit buggy when
> cross-compiling. Since it fails to detect pthread_spin_lock, it will
> have HAVE_PTHREAD_SPIN_LOCK disabled, which in turn means that it will
> try to typedef pthread_spinlock_t to an int. But! Your embedded platform
> DOES have pthread_spin_lock_t, so this will fail.
>
> I would suggest editing lib/ivykis/config.h after configure, and
> enabling HAVE_PTHREAD_SPIN_LOCK.
>
> Hopefully this'll help.
>
> (Why the detection fails, though, is not entirely clear to me..)
>
It'd make sense to forward this email to
libivykis-discuss at lists.sourceforge.net so the ivykis authors become
aware of the issue.
--
Bazsi
More information about the syslog-ng
mailing list