This is the mail archive of the
ecos-bugs@sourceware.org
mailing list for the eCos project.
[Bug 1001359] Incorrect include path in SNMP util_funcs.h andconfig.h
- From: bugzilla-daemon at bugs dot ecos dot sourceware dot org
- To: unassigned at bugs dot ecos dot sourceware dot org
- Date: Sat, 3 Dec 2011 20:01:33 +0000
- Subject: [Bug 1001359] Incorrect include path in SNMP util_funcs.h andconfig.h
- Auto-submitted: auto-generated
- References: <bug-1001359-777@http.bugs.ecos.sourceware.org/>
Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001359
--- Comment #2 from Sergei Gavrikov <sergei.gavrikov@gmail.com> 2011-12-03 20:01:30 GMT ---
(In reply to comment #1)
> If the ucd-snmp/mibgroup/util_funcs.h is included by an external code
> it includes a file from an invalid location. The same is true for
> config.h.
>
> See attach for a fix that is enough for my usage - I don't guarantee
> that it covers all of the cases.
Hi Stano,
Thank you for your report.
The ``config.h'' is not part of UCD-SNMP API headers, so, we can fix
that header as you suggested. But, to fix ``util_funcs.h'' is an issue.
As I could see (I tested original ucd-snmp-4.1.2 installation and the
latest ucd-snmp-4.2.7.1 package from net-snmp) normal ucd-snmp install
process does propagate two internal mibgroup's headers (struct.h and
util_funcs.h) under <prefix>/include/ucd-snmp directory. Thus, those
internal headers become the API headers.
Unfortunately, we have not the same headers under eCos <PREFIX>. The
eCos UCD-SNMP header files are all the UCD-SNMP's header files including
internal headers (not only API headers) and their subdirs. I think that
was KIS(s) principle as CDL command ``include_files'' does not let us to
change a structure of the package's headers under eCos <PREFIX>/include.
I think that we have to get all UCD-SNMP API headers in a right place,
i.e. under <PREFIX>/include/ucd-snmp directory and I think we would use
CDL ``make'' command in snmpagent.cdl to copy absent headers there
make -priority=1 {
<PREFIX>/include/ucd-snmp/struct.h : <PACKAGE>/include/mibgroup/struct.h
mkdir -p $(dir $@)
cp -f $^ $(dir $@)
}
and the same command for ``util_funcs.h'' header. Well, it's mine and
may be some one has either another view on your fix or yet another (own)
solution in CDL (I tested above).
Sergei
--
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.