Current-Users archive

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

Re: userland atomics



Well, it seems it doesn't work on NetBSD 5.0, at least I got the same missing 
symbol
when I tried to build pulseaudio.

Patrick Welche wrote:

> On Fri, Dec 12, 2008 at 08:45:32PM -0800, John Nemeth wrote:
> >      Supposedly it trys to link that.  It should fail at configure
> > time.  The configure.ac snippet is:
> > 
> > AC_MSG_CHECKING(for compiler atomic operations)
> > AC_LINK_IFELSE(
> > AC_LANG_PROGRAM([], [int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);]),
> > AC_MSG_RESULT(yes)
> > AC_DEFINE([HAVE_GCC_ATOMICS], 1, [Define to 1 if your GCC C compiler 
> > provides at
> > omic operations.]),
> > AC_MSG_RESULT(no)
> > )
> 
> That looks right - what does config.log have to say about it?
> 
> Cheers,
> 
> Patrick


--
When in doubt, use brute force.

Adam Hoka <ahoka%NetBSD.org@localhost>
Adam Hoka <ahoka%MirBSD.de@localhost>
Adam Hoka <adam.hoka%gmail.com@localhost>

Attachment: pgpNNwcxvt6gB.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index