Libecap relies on HAVE_CONFIG_H too much
Bug #1958909 reported by
Amos Jeffries
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eCAP |
Triaged
|
Undecided
|
Unassigned |
Bug Description
When building a host application or an adapter without using autotools:
/usr/
extern bool RegisterVersion
----
Original description: libecap/
description: | updated |
To post a comment you must log in.
> 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.