From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.nokia.com ([192.100.122.230] helo=mgw-mx03.nokia.com) by bombadil.infradead.org with esmtps (Exim 4.69 #1 (Red Hat Linux)) id 1MMcdU-0002SX-Vq for linux-mtd@lists.infradead.org; Fri, 03 Jul 2009 06:52:47 +0000 Subject: Re: Compile Error: structure has no member named lowest_vol_num From: Artem Bityutskiy To: Mike Frysinger In-Reply-To: <8bd0f97a0907011815r644dd021mc394406ba913767a@mail.gmail.com> References: <077E41CFFD002C4CAB7DFA4386A53264F5D7E7@DEMUEXC014.nsn-intra.net> <1246373088.20721.11.camel@localhost.localdomain> <8bd0f97a0907011815r644dd021mc394406ba913767a@mail.gmail.com> Content-Type: text/plain; charset="UTF-8" Date: Fri, 03 Jul 2009 09:52:22 +0300 Message-Id: <1246603942.20721.29.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: "Biefel, Reiner \(NSN - DE/Munich\)" , linux-mtd@lists.infradead.org Reply-To: dedekind@infradead.org List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, 2009-07-01 at 21:15 -0400, Mike Frysinger wrote: > the CPPFLAGS in the env changes how make initializes/appends CPPFLAGS > in sub-makes. this causes the old ubi utils to find the newer headers > at ubi-utils/include/ before the ubi-utils/old-utils/inc/. i'd pose > the question of whether keeping old-utils makes sense anymore ? "old" > sounds to me like "punt" ... Well, some people use them so far, AFAIK... > barring that, here is the simple fix: > --- a/ubi-utils/old-utils/Makefile > +++ b/ubi-utils/old-utils/Makefile > @@ -5,8 +5,8 @@ > KERNELHDR := ../../include > > CFLAGS ?= -O2 -g -Werror > -CPPFLAGS += -I./inc -I./src -I$(KERNELHDR) \ > - -std=gnu99 -DPACKAGE_VERSION=\"1.0\" > +CPPFLAGS := -I./inc -I./src -I$(KERNELHDR) \ > + -std=gnu99 -DPACKAGE_VERSION=\"1.0\" $(CPPFLAGS) > > PERLPROGS = mkpfi ubicrc32.pl Thanks! Reiner, please, check this. -- Best regards, Artem Bityutskiy (Битюцкий Артём)