when i try to emerge sys-cluster/ceph-0.25.2 i get a compile error, here's part of the relevant output x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -Wall -D__CEPH__ -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_THREAD_SAFE -rdynamic -march=opteron -O2 -pipe -MT testlibrbdpp.o -MD -MP -MF .deps/testlibrbdpp.Tpo -c -o testlibrbdpp.o testlibrbdpp.cc In file included from include/rbd/../rados/buffer.h:55, from include/rbd/librbd.hpp:23, from testlibrbdpp.cc:16: include/rbd/../rados/atomic.h:57:22: error: Spinlock.h: No such file or directory In file included from include/rbd/../rados/buffer.h:55, from include/rbd/librbd.hpp:23, from testlibrbdpp.cc:16: include/rbd/../rados/atomic.h:62: error: 'Spinlock' does not name a type .... there's more but i think is derived from the missing Spinlock.h error Reproducible: Always Steps to Reproduce: 1. emerge sys-cluster/ceph-0.25.2 2. 3.
i've found the problem, the path of the Spinlock.h header file is wrong, it should be "include/Spinlock.h" instead of just "Spinlock.h" --- ./include/rados/atomic.h.old 2011-03-29 11:13:26.000000000 -0700 +++ ./include/rados/atomic.h 2011-03-29 10:45:07.000000000 -0700 @@ -54,7 +54,7 @@ /* * crappy slow implementation that uses a pthreads spinlock. */ -#include "Spinlock.h" +#include "include/Spinlock.h" namespace ceph { what should i do? should i create an overlay and add this patch to it?
Hi Ivan, thanks for reporting and providing the fix ! + 01 Apr 2011; Ultrabug <ultrabug@gentoo.org> ceph-0.25.2.ebuild: + fix Spinlock.h include path, wrt #361203, thanks to Ivan Chavero. It's pushed in main tree.