Comment 1 for bug 1958909

Revision history for this message
Alex Rousskov (rousskov) wrote : Re: Missing include in libecap/common/registry.h

> libecap/common/registry.h makes use of types defined in libecap/common/autoconf.h

Can you give an example of such a type? My quick scan of registry.h did not flag any good candidates, and my autoconf.h does not define any types at all, but I may be looking at a stale copy or something like that.

common/autoconf.h is an internal implementation detail rather than a part of the public library API. That file is automatically included by common/libecap.h which should be included (directly or indirectly) in all other public eCAP header files.

AFAICT, common/registry.h includes common/autoconf.h via common/forward.h which includes common/libecap.h mentioned above. Please correct me if I am wrong.

* If your autoconf.h does define types, then perhaps the bug you are dealing with is related to HAVE_CONFIG_H macro being undefined, preventing common/libecap.h from including common/autoconf.h. IIRC, that autotools macro is supposed to be set via the compiler command of your project. Makefiles generated by autotools do that automatically but YMMV.

* Otherwise, you might be dealing with <tr1/memory> or other legacy code problems instead. Please share more details.