[sheepdog] [PATCH] configure: exit if urcu/uatomic.h is not found

Liu Yuan namei.unix at gmail.com
Sun May 20 15:17:39 CEST 2012


On 05/20/2012 10:59 AM, MORITA Kazutaka wrote:

> 
> On my environment (debian squeeze), the package version of liburcu is
> too old (0.4.1) and I cannot compile the latest sheepdog because
> urcu/uatomic.h is missing.
> 
> Is there any way to build Sheepdog with the older version of liburcu?
> If no, we'd better check the existence of urcu/uatomic.h.


urcu/uatomic_arch.h might be the compatible header to include, but it
will issue a annoying warning for a recent version like following:

/usr/include/urcu/uatomic_arch.h:1: warning: #warning
"urcu/uatomic_arch.h is deprecated. Please include urcu/uatomic.h instead."

Maybe we can use complex macros to check urcu version to get rid of this
warning, but I think would be better use your patch directly to simplify
the thing.

Thanks,
Yuan



More information about the sheepdog mailing list