Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 361203 - sys-cluster/ceph-0.25.2 - include/rbd/../rados/atomic.h:57:22: error: Spinlock.h: No such file or directory
Summary: sys-cluster/ceph-0.25.2 - include/rbd/../rados/atomic.h:57:22: error: Spinloc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-29 23:39 UTC by Ivan Chavero
Modified: 2011-04-01 12:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Chavero 2011-03-29 23:39:12 UTC
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.
Comment 1 Ivan Chavero 2011-03-30 00:16:15 UTC
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?
Comment 2 Ultrabug gentoo-dev 2011-04-01 12:13:14 UTC
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.