dout/err and ldout/err rely on CeohContext being available. It's possible the includes should be separated; i'd have to look more closely to have a real judgment. But the macros really do need a cct to work at all. On Dec 20, 2012, at 6:52 AM, Roald van Loon <roaldvanloon@xxxxxxxxx> wrote: > Hi ceph devs, > > I was wondering. In common/dout.h is an #include of > global/ceph_context.h, but it is not used there (I stumbled upon it > because while playing around in the codebase, I noticed librados would > not link because of an undefined reference to g_ceph_context). I have > no idea why this include is in dout.h, but it seems that a lot of > different sources fail to compile (because g_ceph_context definition > is missing) when I remove the include from dout.h. > > So it seems like it's used as some sort of forward include (because > dout.h is almost always included through include/Context.h) to make > sure g_ceph_context is defined in most places. > > What is the rationale of having this here? Isn't it better to try to > split global and common as much as possible? > > Ciao, > > Roald > -- > To unsubscribe from this list: send the line "unsubscribe ceph-devel" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html