[syslog-ng] [libivykis-discuss] Cross compiling syslog-ng - problem with pthread_spin_lock

Balazs Scheidler bazsi at balabit.hu
Wed Feb 29 21:03:22 CET 2012


----- Original message -----
> Hey guys,
> 
> 
> On Wed, Feb 29, 2012 at 09:24:01AM +0100, Balazs Scheidler wrote:
> 
> > > > 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.
> 
> Upstream ivykis just assumes that pthread_spin_lock() is always
> there, i.e. it doesn't even do a configure test for it, so I think
> that this issue is due to a patch unique to syslog-ng's branch/fork
> of ivykis.
> 

oops. my bad. probably messed up the configure test. sorry for bothering you Lennart.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20120229/5711cc6b/attachment.htm 


More information about the syslog-ng mailing list