From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11153 invoked by alias); 3 Dec 2011 20:01:54 -0000 Received: (qmail 11108 invoked by uid 22791); 3 Dec 2011 20:01:54 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from hagrid.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 03 Dec 2011 20:01:37 +0000 Received: by mail.ecoscentric.com (Postfix, from userid 48) id 4077F2F78001; Sat, 3 Dec 2011 20:01:36 +0000 (GMT) From: bugzilla-daemon@bugs.ecos.sourceware.org To: unassigned@bugs.ecos.sourceware.org Subject: [Bug 1001359] Incorrect include path in SNMP util_funcs.h and config.h X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: eCos X-Bugzilla-Component: SNMP X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sergei.gavrikov@gmail.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: low X-Bugzilla-Assigned-To: unassigned@bugs.ecos.sourceware.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: In-Reply-To: References: X-Bugzilla-URL: http://bugs.ecos.sourceware.org/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Sat, 03 Dec 2011 20:01:00 -0000 Message-Id: <20111203200133.89D1C2F78003@mail.ecoscentric.com> Mailing-List: contact ecos-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-bugs-owner@sourceware.org X-SW-Source: 2011/txt/msg01372.txt.bz2 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 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 /include/ucd-snmp directory. Thus, those internal headers become the API headers. Unfortunately, we have not the same headers under eCos . 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 /include. I think that we have to get all UCD-SNMP API headers in a right place, i.e. under /include/ucd-snmp directory and I think we would use CDL ``make'' command in snmpagent.cdl to copy absent headers there make -priority=1 { /include/ucd-snmp/struct.h : /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.