* Compile Error: structure has no member named lowest_vol_num
@ 2009-06-25 12:12 Biefel, Reiner (NSN - DE/Munich)
2009-06-29 7:29 ` Biefel, Reiner (NSN - DE/Munich)
2009-06-30 14:44 ` Artem Bityutskiy
0 siblings, 2 replies; 15+ messages in thread
From: Biefel, Reiner (NSN - DE/Munich) @ 2009-06-25 12:12 UTC (permalink / raw)
To: linux-mtd
Hello,
till snapshot a2d010f8fca904fffa3c6e5a5d148cc96a37a08a from 27.02.2009 I
can compile the sources. Also cross-compile worked fine.
All releases after that release I couldn't compile anymore.
I allways get the error
./src/libubi.c:347: error: structure has no member named
`lowest_vol_num'
>From my try to compile git snapshot version
mtd-utils-e4d5eea6414093fb074b19585cb8bebadc2d3e0e.tar.gz from
2009-06-08
.....
gcc -I /utran/fdd/nodeb/opt/i686-pc-linux-gnu/zlib/include -I
/utran/fdd/nodeb/opt/i686-pc-linux-gnu//lzo/include -I
/utran/fdd/nodeb/opt/i686-pc-linux-gnu/e2fsprogs/include -I./include
-DWITHOUT_XATTR -D_FILE_OFFSET_BITS=64 -Iinclude -Isrc -I../include
-D_FILE_OFFSET_BITS=64 -I./inc -I./src -I../../include -std=gnu99
-DPACKAGE_VERSION=\"1.0\" -D_FILE_OFFSET_BITS=64 -O2 -Wall -Wextra
-Wwrite-strings -Wno-sign-compare -Wall -Wextra -Wwrite-strings
-Wno-sign-compare -Wall -Wextra -Wwrite-strings -Wno-sign-compare -c -o
/utran/fdd/nodeb/opt/src/build/i686-pc-linux-gnu/mtd-utils/ubi-utils/old
-utils/pfi.o ./src/pfi.c -g
-Wp,-MD,/utran/fdd/nodeb/opt/src/build/i686-pc-linux-gnu/mtd-utils/ubi-u
tils/old-utils/.pfi.c.dep
gcc -I /utran/fdd/nodeb/opt/i686-pc-linux-gnu/zlib/include -I
/utran/fdd/nodeb/opt/i686-pc-linux-gnu//lzo/include -I
/utran/fdd/nodeb/opt/i686-pc-linux-gnu/e2fsprogs/include -I./include
-DWITHOUT_XATTR -D_FILE_OFFSET_BITS=64 -Iinclude -Isrc -I../include
-D_FILE_OFFSET_BITS=64 -I./inc -I./src -I../../include -std=gnu99
-DPACKAGE_VERSION=\"1.0\" -D_FILE_OFFSET_BITS=64 -O2 -Wall -Wextra
-Wwrite-strings -Wno-sign-compare -Wall -Wextra -Wwrite-strings
-Wno-sign-compare -Wall -Wextra -Wwrite-strings -Wno-sign-compare -c -o
/utran/fdd/nodeb/opt/src/build/i686-pc-linux-gnu/mtd-utils/ubi-utils/old
-utils/libubi.o ./src/libubi.c -g
-Wp,-MD,/utran/fdd/nodeb/opt/src/build/i686-pc-linux-gnu/mtd-utils/ubi-u
tils/old-utils/.libubi.c.dep
./src/libubi.c: In function `ubi_get_dev_info1':
./src/libubi.c:347: error: structure has no member named
`lowest_vol_num'
./src/libubi.c:355: error: structure has no member named
`highest_vol_num'
./src/libubi.c:356: error: structure has no member named
`highest_vol_num'
./src/libubi.c:357: error: structure has no member named
`lowest_vol_num'
./src/libubi.c:358: error: structure has no member named
`lowest_vol_num'
./src/libubi.c:364: error: structure has no member named
`lowest_vol_num'
./src/libubi.c:365: error: structure has no member named
`lowest_vol_num'
./src/libubi.c:367: error: structure has no member named `avail_ebs'
./src/libubi.c:369: error: structure has no member named `total_ebs'
./src/libubi.c:373: error: structure has no member named `eb_size'
./src/libubi.c:384: error: structure has no member named `avail_ebs'
./src/libubi.c:384: error: structure has no member named `eb_size'
./src/libubi.c:385: error: structure has no member named `total_ebs'
./src/libubi.c:385: error: structure has no member named `eb_size'
./src/libubi.c: In function `ubi_get_vol_info1':
./src/libubi.c:439: error: structure has no member named `rsvd_ebs'
./src/libubi.c:442: error: structure has no member named `eb_size'
./src/libubi.c:449: error: structure has no member named `eb_size'
./src/libubi.c:449: error: structure has no member named `rsvd_ebs'
./src/libubi.c: In function `find_vol_num':
./src/libubi.c:894: error: structure has no member named
`lowest_vol_num'
./src/libubi.c:894: error: structure has no member named
`highest_vol_num'
make[2]: ***
[/utran/fdd/nodeb/opt/src/build/i686-pc-linux-gnu/mtd-utils/ubi-utils/ol
d-utils/libubi.o] Error 1
make[2]: Leaving directory
`/utran/fdd/nodeb/opt/src/build/i686-pc-linux-gnu/mtd-utils/ubi-utils/ol
d-utils'
make[1]: *** [subdirs_old-utils_all] Error 2
What I'm doing wrong?
BR
Reiner
^ permalink raw reply [flat|nested] 15+ messages in thread
* RE: Compile Error: structure has no member named lowest_vol_num
2009-06-25 12:12 Compile Error: structure has no member named lowest_vol_num Biefel, Reiner (NSN - DE/Munich)
@ 2009-06-29 7:29 ` Biefel, Reiner (NSN - DE/Munich)
2009-06-30 11:45 ` Artem Bityutskiy
2009-06-30 14:44 ` Artem Bityutskiy
1 sibling, 1 reply; 15+ messages in thread
From: Biefel, Reiner (NSN - DE/Munich) @ 2009-06-29 7:29 UTC (permalink / raw)
To: linux-mtd
Hello,
does really nobody have an idea, why I always get this error?
...
gcc -I /utran/fdd/nodeb/opt/i686-pc-linux-gnu/zlib/include -I
/utran/fdd/nodeb/opt/i686-pc-linux-gnu//lzo/include -I
/utran/fdd/nodeb/opt/i686-pc-linux-gnu/e2fsprogs/include -I./include
-DWITHOUT_XATTR -D_FILE_OFFSET_BITS=64 -Iinclude -Isrc -I../include
-D_FILE_OFFSET_BITS=64 -I./inc -I./src -I../../include -std=gnu99
-DPACKAGE_VERSION=\"1.0\" -D_FILE_OFFSET_BITS=64 -O2 -Wall -Wextra
-Wwrite-strings -Wno-sign-compare -Wall -Wextra -Wwrite-strings
-Wno-sign-compare -Wall -Wextra -Wwrite-strings -Wno-sign-compare -c -o
/utran/fdd/nodeb/opt/src/build/i686-pc-linux-gnu/mtd-utils/ubi-utils/old
-utils/libubi.o ./src/libubi.c -g
-Wp,-MD,/utran/fdd/nodeb/opt/src/build/i686-pc-linux-gnu/mtd-utils/ubi-u
tils/old-utils/.libubi.c.dep
./src/libubi.c: In function `ubi_get_dev_info1':
./src/libubi.c:347: error: structure has no member named
`lowest_vol_num'
./src/libubi.c:355: error: structure has no member named
`highest_vol_num'
./src/libubi.c:356: error: structure has no member named
`highest_vol_num'
./src/libubi.c:357: error: structure has no member named
`lowest_vol_num'
./src/libubi.c:358: error: structure has no member named
`lowest_vol_num'
./src/libubi.c:364: error: structure has no member named
`lowest_vol_num'
./src/libubi.c:365: error: structure has no member named
`lowest_vol_num'
./src/libubi.c:367: error: structure has no member named `avail_ebs'
./src/libubi.c:369: error: structure has no member named `total_ebs'
./src/libubi.c:373: error: structure has no member named `eb_size'
./src/libubi.c:384: error: structure has no member named `avail_ebs'
./src/libubi.c:384: error: structure has no member named `eb_size'
./src/libubi.c:385: error: structure has no member named `total_ebs'
./src/libubi.c:385: error: structure has no member named `eb_size'
./src/libubi.c: In function `ubi_get_vol_info1':
./src/libubi.c:439: error: structure has no member named `rsvd_ebs'
./src/libubi.c:442: error: structure has no member named `eb_size'
./src/libubi.c:449: error: structure has no member named `eb_size'
./src/libubi.c:449: error: structure has no member named `rsvd_ebs'
./src/libubi.c: In function `find_vol_num':
./src/libubi.c:894: error: structure has no member named
`lowest_vol_num'
./src/libubi.c:894: error: structure has no member named
`highest_vol_num'
make[2]: ***
[/utran/fdd/nodeb/opt/src/build/i686-pc-linux-gnu/mtd-utils/ubi-utils/ol
d-utils/libubi.o] Error 1
make[2]: Leaving directory
`/utran/fdd/nodeb/opt/src/build/i686-pc-linux-gnu/mtd-utils/ubi-utils/ol
d-utils'
make[1]: *** [subdirs_old-utils_all] Error 2
BR
Reiner
-----Original Message-----
From: linux-mtd-bounces@lists.infradead.org
[mailto:linux-mtd-bounces@lists.infradead.org] On Behalf Of ext Biefel,
Reiner (NSN - DE/Munich)
Sent: Thursday, June 25, 2009 2:13 PM
To: linux-mtd@lists.infradead.org
Subject: Compile Error: structure has no member named lowest_vol_num
Hello,
till snapshot a2d010f8fca904fffa3c6e5a5d148cc96a37a08a from 27.02.2009 I
can compile the sources. Also cross-compile worked fine.
All releases after that release I couldn't compile anymore.
I allways get the error
./src/libubi.c:347: error: structure has no member named
`lowest_vol_num'
>From my try to compile git snapshot version
mtd-utils-e4d5eea6414093fb074b19585cb8bebadc2d3e0e.tar.gz from
2009-06-08
.....
gcc -I /utran/fdd/nodeb/opt/i686-pc-linux-gnu/zlib/include -I
/utran/fdd/nodeb/opt/i686-pc-linux-gnu//lzo/include -I
/utran/fdd/nodeb/opt/i686-pc-linux-gnu/e2fsprogs/include -I./include
-DWITHOUT_XATTR -D_FILE_OFFSET_BITS=64 -Iinclude -Isrc -I../include
-D_FILE_OFFSET_BITS=64 -I./inc -I./src -I../../include -std=gnu99
-DPACKAGE_VERSION=\"1.0\" -D_FILE_OFFSET_BITS=64 -O2 -Wall -Wextra
-Wwrite-strings -Wno-sign-compare -Wall -Wextra -Wwrite-strings
-Wno-sign-compare -Wall -Wextra -Wwrite-strings -Wno-sign-compare -c -o
/utran/fdd/nodeb/opt/src/build/i686-pc-linux-gnu/mtd-utils/ubi-utils/old
-utils/pfi.o ./src/pfi.c -g
-Wp,-MD,/utran/fdd/nodeb/opt/src/build/i686-pc-linux-gnu/mtd-utils/ubi-u
tils/old-utils/.pfi.c.dep
gcc -I /utran/fdd/nodeb/opt/i686-pc-linux-gnu/zlib/include -I
/utran/fdd/nodeb/opt/i686-pc-linux-gnu//lzo/include -I
/utran/fdd/nodeb/opt/i686-pc-linux-gnu/e2fsprogs/include -I./include
-DWITHOUT_XATTR -D_FILE_OFFSET_BITS=64 -Iinclude -Isrc -I../include
-D_FILE_OFFSET_BITS=64 -I./inc -I./src -I../../include -std=gnu99
-DPACKAGE_VERSION=\"1.0\" -D_FILE_OFFSET_BITS=64 -O2 -Wall -Wextra
-Wwrite-strings -Wno-sign-compare -Wall -Wextra -Wwrite-strings
-Wno-sign-compare -Wall -Wextra -Wwrite-strings -Wno-sign-compare -c -o
/utran/fdd/nodeb/opt/src/build/i686-pc-linux-gnu/mtd-utils/ubi-utils/old
-utils/libubi.o ./src/libubi.c -g
-Wp,-MD,/utran/fdd/nodeb/opt/src/build/i686-pc-linux-gnu/mtd-utils/ubi-u
tils/old-utils/.libubi.c.dep
./src/libubi.c: In function `ubi_get_dev_info1':
./src/libubi.c:347: error: structure has no member named
`lowest_vol_num'
./src/libubi.c:355: error: structure has no member named
`highest_vol_num'
./src/libubi.c:356: error: structure has no member named
`highest_vol_num'
./src/libubi.c:357: error: structure has no member named
`lowest_vol_num'
./src/libubi.c:358: error: structure has no member named
`lowest_vol_num'
./src/libubi.c:364: error: structure has no member named
`lowest_vol_num'
./src/libubi.c:365: error: structure has no member named
`lowest_vol_num'
./src/libubi.c:367: error: structure has no member named `avail_ebs'
./src/libubi.c:369: error: structure has no member named `total_ebs'
./src/libubi.c:373: error: structure has no member named `eb_size'
./src/libubi.c:384: error: structure has no member named `avail_ebs'
./src/libubi.c:384: error: structure has no member named `eb_size'
./src/libubi.c:385: error: structure has no member named `total_ebs'
./src/libubi.c:385: error: structure has no member named `eb_size'
./src/libubi.c: In function `ubi_get_vol_info1':
./src/libubi.c:439: error: structure has no member named `rsvd_ebs'
./src/libubi.c:442: error: structure has no member named `eb_size'
./src/libubi.c:449: error: structure has no member named `eb_size'
./src/libubi.c:449: error: structure has no member named `rsvd_ebs'
./src/libubi.c: In function `find_vol_num':
./src/libubi.c:894: error: structure has no member named
`lowest_vol_num'
./src/libubi.c:894: error: structure has no member named
`highest_vol_num'
make[2]: ***
[/utran/fdd/nodeb/opt/src/build/i686-pc-linux-gnu/mtd-utils/ubi-utils/ol
d-utils/libubi.o] Error 1
make[2]: Leaving directory
`/utran/fdd/nodeb/opt/src/build/i686-pc-linux-gnu/mtd-utils/ubi-utils/ol
d-utils'
make[1]: *** [subdirs_old-utils_all] Error 2
What I'm doing wrong?
BR
Reiner
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
^ permalink raw reply [flat|nested] 15+ messages in thread
* RE: Compile Error: structure has no member named lowest_vol_num
2009-06-29 7:29 ` Biefel, Reiner (NSN - DE/Munich)
@ 2009-06-30 11:45 ` Artem Bityutskiy
2009-06-30 14:27 ` Biefel, Reiner (NSN - DE/Munich)
0 siblings, 1 reply; 15+ messages in thread
From: Artem Bityutskiy @ 2009-06-30 11:45 UTC (permalink / raw)
To: Biefel, Reiner (NSN - DE/Munich); +Cc: linux-mtd
On Mon, 2009-06-29 at 09:29 +0200, Biefel, Reiner (NSN - DE/Munich)
wrote:
> Hello,
>
> does really nobody have an idea, why I always get this error?
I do not see this. How would I reproduce this?
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
^ permalink raw reply [flat|nested] 15+ messages in thread
* RE: Compile Error: structure has no member named lowest_vol_num
2009-06-30 11:45 ` Artem Bityutskiy
@ 2009-06-30 14:27 ` Biefel, Reiner (NSN - DE/Munich)
0 siblings, 0 replies; 15+ messages in thread
From: Biefel, Reiner (NSN - DE/Munich) @ 2009-06-30 14:27 UTC (permalink / raw)
To: dedekind; +Cc: linux-mtd
I've downloaded the snapshot from http://git.infradead.org/mtd-utils.git
with enty
2009-06-08
Detlef Bardtholdt
libubi: fix wrong size calculation with sizes > 4GiB
commit | commitdiff | tree | snapshot
- tar xzvf mtd-utils-e4d5eea6414093fb074b19585cb8bebadc2d3e0e.tar.gz
- cd mtd-utils
- CFLAGS='-O2' CPPFLAGS='-I
/utran/fdd/nodeb/opt/i686-pc-linux-gnu/zlib/include -I
/utran/fdd/nodeb/opt/i686-pc-linux-gnu//lzo/include -I
/utran/fdd/nodeb/opt/i686-pc-linux-gnu/e2fsprogs/include' LDFLAGS='-L
/utran/fdd/nodeb/opt/i686-pc-linux-gnu/zlib/lib -L
/utran/fdd/nodeb/opt/i686-pc-linux-gnu//lzo/lib -L
/utran/fdd/nodeb/opt/i686-pc-linux-gnu/e2fsprogs/lib' make CC=gcc
WITHOUT_XATTR=1
BUILDDIR=/utran/fdd/nodeb/opt/src/build/i686-pc-linux-gnu/mtd-utils
BR,
Reiner
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Compile Error: structure has no member named lowest_vol_num
2009-06-25 12:12 Compile Error: structure has no member named lowest_vol_num Biefel, Reiner (NSN - DE/Munich)
2009-06-29 7:29 ` Biefel, Reiner (NSN - DE/Munich)
@ 2009-06-30 14:44 ` Artem Bityutskiy
2009-07-02 1:15 ` Mike Frysinger
1 sibling, 1 reply; 15+ messages in thread
From: Artem Bityutskiy @ 2009-06-30 14:44 UTC (permalink / raw)
To: Mike Frysinger; +Cc: Biefel, Reiner (NSN - DE/Munich), linux-mtd
On Thu, 2009-06-25 at 14:12 +0200, Biefel, Reiner (NSN - DE/Munich)
wrote:
> Hello,
>
> till snapshot a2d010f8fca904fffa3c6e5a5d148cc96a37a08a from 27.02.2009 I
> can compile the sources. Also cross-compile worked fine.
> All releases after that release I couldn't compile anymore.
>
> I allways get the error
> ./src/libubi.c:347: error: structure has no member named
> `lowest_vol_num'
>
> >From my try to compile git snapshot version
> mtd-utils-e4d5eea6414093fb074b19585cb8bebadc2d3e0e.tar.gz from
> 2009-06-08
> .....
> gcc -I /utran/fdd/nodeb/opt/i686-pc-linux-gnu/zlib/include -I
> /utran/fdd/nodeb/opt/i686-pc-linux-gnu//lzo/include -I
> /utran/fdd/nodeb/opt/i686-pc-linux-gnu/e2fsprogs/include -I./include
> -DWITHOUT_XATTR -D_FILE_OFFSET_BITS=64 -Iinclude -Isrc -I../include
> -D_FILE_OFFSET_BITS=64 -I./inc -I./src -I../../include -std=gnu99
> -DPACKAGE_VERSION=\"1.0\" -D_FILE_OFFSET_BITS=64 -O2 -Wall -Wextra
> -Wwrite-strings -Wno-sign-compare -Wall -Wextra -Wwrite-strings
> -Wno-sign-compare -Wall -Wextra -Wwrite-strings -Wno-sign-compare -c -o
> /utran/fdd/nodeb/opt/src/build/i686-pc-linux-gnu/mtd-utils/ubi-utils/old
> -utils/pfi.o ./src/pfi.c -g
> -Wp,-MD,/utran/fdd/nodeb/opt/src/build/i686-pc-linux-gnu/mtd-utils/ubi-u
> tils/old-utils/.pfi.c.dep
> gcc -I /utran/fdd/nodeb/opt/i686-pc-linux-gnu/zlib/include -I
> /utran/fdd/nodeb/opt/i686-pc-linux-gnu//lzo/include -I
> /utran/fdd/nodeb/opt/i686-pc-linux-gnu/e2fsprogs/include -I./include
> -DWITHOUT_XATTR -D_FILE_OFFSET_BITS=64 -Iinclude -Isrc -I../include
> -D_FILE_OFFSET_BITS=64 -I./inc -I./src -I../../include -std=gnu99
> -DPACKAGE_VERSION=\"1.0\" -D_FILE_OFFSET_BITS=64 -O2 -Wall -Wextra
> -Wwrite-strings -Wno-sign-compare -Wall -Wextra -Wwrite-strings
> -Wno-sign-compare -Wall -Wextra -Wwrite-strings -Wno-sign-compare -c -o
> /utran/fdd/nodeb/opt/src/build/i686-pc-linux-gnu/mtd-utils/ubi-utils/old
> -utils/libubi.o ./src/libubi.c -g
> -Wp,-MD,/utran/fdd/nodeb/opt/src/build/i686-pc-linux-gnu/mtd-utils/ubi-u
> tils/old-utils/.libubi.c.dep
> ./src/libubi.c: In function `ubi_get_dev_info1':
> ./src/libubi.c:347: error: structure has no member named
> `lowest_vol_num'
> ./src/libubi.c:355: error: structure has no member named
> `highest_vol_num'
> ./src/libubi.c:356: error: structure has no member named
> `highest_vol_num'
> ./src/libubi.c:357: error: structure has no member named
> `lowest_vol_num'
> ./src/libubi.c:358: error: structure has no member named
> `lowest_vol_num'
> ./src/libubi.c:364: error: structure has no member named
> `lowest_vol_num'
> ./src/libubi.c:365: error: structure has no member named
> `lowest_vol_num'
> ./src/libubi.c:367: error: structure has no member named `avail_ebs'
> ./src/libubi.c:369: error: structure has no member named `total_ebs'
> ./src/libubi.c:373: error: structure has no member named `eb_size'
> ./src/libubi.c:384: error: structure has no member named `avail_ebs'
> ./src/libubi.c:384: error: structure has no member named `eb_size'
> ./src/libubi.c:385: error: structure has no member named `total_ebs'
> ./src/libubi.c:385: error: structure has no member named `eb_size'
> ./src/libubi.c: In function `ubi_get_vol_info1':
> ./src/libubi.c:439: error: structure has no member named `rsvd_ebs'
> ./src/libubi.c:442: error: structure has no member named `eb_size'
> ./src/libubi.c:449: error: structure has no member named `eb_size'
> ./src/libubi.c:449: error: structure has no member named `rsvd_ebs'
> ./src/libubi.c: In function `find_vol_num':
> ./src/libubi.c:894: error: structure has no member named
> `lowest_vol_num'
> ./src/libubi.c:894: error: structure has no member named
> `highest_vol_num'
> make[2]: ***
> [/utran/fdd/nodeb/opt/src/build/i686-pc-linux-gnu/mtd-utils/ubi-utils/ol
> d-utils/libubi.o] Error 1
> make[2]: Leaving directory
> `/utran/fdd/nodeb/opt/src/build/i686-pc-linux-gnu/mtd-utils/ubi-utils/ol
> d-utils'
> make[1]: *** [subdirs_old-utils_all] Error 2
Hi Mike,
this seems to be after your build system re-work. Do you have any
idea what could be wrong? I cannot reproduce this.
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Compile Error: structure has no member named lowest_vol_num
2009-06-30 14:44 ` Artem Bityutskiy
@ 2009-07-02 1:15 ` Mike Frysinger
2009-07-03 6:52 ` Artem Bityutskiy
` (2 more replies)
0 siblings, 3 replies; 15+ messages in thread
From: Mike Frysinger @ 2009-07-02 1:15 UTC (permalink / raw)
To: dedekind; +Cc: Biefel, Reiner (NSN - DE/Munich), linux-mtd
On Tue, Jun 30, 2009 at 10:44, Artem Bityutskiy wrote:
> On Thu, 2009-06-25 at 14:12 +0200, Biefel, Reiner wrote:
>>
>> till snapshot a2d010f8fca904fffa3c6e5a5d148cc96a37a08a from 27.02.2009 I
>> can compile the sources. Also cross-compile worked fine.
>> All releases after that release I couldn't compile anymore.
>>
>> I allways get the error
>> ./src/libubi.c:347: error: structure has no member named
>> `lowest_vol_num'
>>
>> >From my try to compile git snapshot version
>> mtd-utils-e4d5eea6414093fb074b19585cb8bebadc2d3e0e.tar.gz from
>> 2009-06-08
>> .....
>> gcc -I /utran/fdd/nodeb/opt/i686-pc-linux-gnu/zlib/include -I
>> /utran/fdd/nodeb/opt/i686-pc-linux-gnu//lzo/include -I
>> /utran/fdd/nodeb/opt/i686-pc-linux-gnu/e2fsprogs/include -I./include
>> -DWITHOUT_XATTR -D_FILE_OFFSET_BITS=64 -Iinclude -Isrc -I../include
>> -D_FILE_OFFSET_BITS=64 -I./inc -I./src -I../../include -std=gnu99
>> -DPACKAGE_VERSION=\"1.0\" -D_FILE_OFFSET_BITS=64 -O2 -Wall -Wextra
>> -Wwrite-strings -Wno-sign-compare -Wall -Wextra -Wwrite-strings
>> -Wno-sign-compare -Wall -Wextra -Wwrite-strings -Wno-sign-compare -c -o
>> /utran/fdd/nodeb/opt/src/build/i686-pc-linux-gnu/mtd-utils/ubi-utils/old
>> -utils/pfi.o ./src/pfi.c -g
>> -Wp,-MD,/utran/fdd/nodeb/opt/src/build/i686-pc-linux-gnu/mtd-utils/ubi-u
>> tils/old-utils/.pfi.c.dep
>> gcc -I /utran/fdd/nodeb/opt/i686-pc-linux-gnu/zlib/include -I
>> /utran/fdd/nodeb/opt/i686-pc-linux-gnu//lzo/include -I
>> /utran/fdd/nodeb/opt/i686-pc-linux-gnu/e2fsprogs/include -I./include
>> -DWITHOUT_XATTR -D_FILE_OFFSET_BITS=64 -Iinclude -Isrc -I../include
>> -D_FILE_OFFSET_BITS=64 -I./inc -I./src -I../../include -std=gnu99
>> -DPACKAGE_VERSION=\"1.0\" -D_FILE_OFFSET_BITS=64 -O2 -Wall -Wextra
>> -Wwrite-strings -Wno-sign-compare -Wall -Wextra -Wwrite-strings
>> -Wno-sign-compare -Wall -Wextra -Wwrite-strings -Wno-sign-compare -c -o
>> /utran/fdd/nodeb/opt/src/build/i686-pc-linux-gnu/mtd-utils/ubi-utils/old
>> -utils/libubi.o ./src/libubi.c -g
>> -Wp,-MD,/utran/fdd/nodeb/opt/src/build/i686-pc-linux-gnu/mtd-utils/ubi-u
>> tils/old-utils/.libubi.c.dep
>> ./src/libubi.c: In function `ubi_get_dev_info1':
>> ./src/libubi.c:347: error: structure has no member named
>> `lowest_vol_num'
>
> this seems to be after your build system re-work. Do you have any
> idea what could be wrong? I cannot reproduce this.
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" ...
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
-mike
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Compile Error: structure has no member named lowest_vol_num
2009-07-02 1:15 ` Mike Frysinger
@ 2009-07-03 6:52 ` Artem Bityutskiy
2009-07-03 7:00 ` Biefel, Reiner (NSN - DE/Munich)
2009-07-03 7:22 ` Artem Bityutskiy
2009-07-03 7:41 ` Artem Bityutskiy
2 siblings, 1 reply; 15+ messages in thread
From: Artem Bityutskiy @ 2009-07-03 6:52 UTC (permalink / raw)
To: Mike Frysinger; +Cc: Biefel, Reiner (NSN - DE/Munich), linux-mtd
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 (Битюцкий Артём)
^ permalink raw reply [flat|nested] 15+ messages in thread
* RE: Compile Error: structure has no member named lowest_vol_num
2009-07-03 6:52 ` Artem Bityutskiy
@ 2009-07-03 7:00 ` Biefel, Reiner (NSN - DE/Munich)
2009-07-03 7:02 ` Mike Frysinger
0 siblings, 1 reply; 15+ messages in thread
From: Biefel, Reiner (NSN - DE/Munich) @ 2009-07-03 7:00 UTC (permalink / raw)
To: dedekind, Mike Frysinger; +Cc: linux-mtd
Hi all,
Thanks. This patch worked fine.
BTW: I don't understand why nobody else did have this problem till now.
BR
Reiner
-----Original Message-----
From: Artem Bityutskiy [mailto:dedekind@infradead.org]
Sent: Friday, July 03, 2009 8:52 AM
To: Mike Frysinger
Cc: Biefel, Reiner (NSN - DE/Munich); linux-mtd@lists.infradead.org
Subject: Re: Compile Error: structure has no member named lowest_vol_num
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 (Битюцкий Артём)
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Compile Error: structure has no member named lowest_vol_num
2009-07-03 7:00 ` Biefel, Reiner (NSN - DE/Munich)
@ 2009-07-03 7:02 ` Mike Frysinger
2009-07-03 7:08 ` Biefel, Reiner (NSN - DE/Munich)
0 siblings, 1 reply; 15+ messages in thread
From: Mike Frysinger @ 2009-07-03 7:02 UTC (permalink / raw)
To: Biefel, Reiner (NSN - DE/Munich); +Cc: linux-mtd
2009/7/3 Biefel, Reiner
> BTW: I don't understand why nobody else did have this problem till now.
in my summary:
>> the CPPFLAGS in the env changes how make initializes/appends CPPFLAGS
people rarely set CPPFLAGS
-mike
^ permalink raw reply [flat|nested] 15+ messages in thread
* RE: Compile Error: structure has no member named lowest_vol_num
2009-07-03 7:02 ` Mike Frysinger
@ 2009-07-03 7:08 ` Biefel, Reiner (NSN - DE/Munich)
2009-07-03 7:12 ` Mike Frysinger
0 siblings, 1 reply; 15+ messages in thread
From: Biefel, Reiner (NSN - DE/Munich) @ 2009-07-03 7:08 UTC (permalink / raw)
To: ext Mike Frysinger; +Cc: linux-mtd
>people rarely set CPPFLAGS
And how do they include headers of ZLIB, LZO and E2FSPROGS when header
files are not in standard path, for example during cross-build?
- Reiner
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Compile Error: structure has no member named lowest_vol_num
2009-07-03 7:08 ` Biefel, Reiner (NSN - DE/Munich)
@ 2009-07-03 7:12 ` Mike Frysinger
2009-07-03 7:17 ` Biefel, Reiner (NSN - DE/Munich)
0 siblings, 1 reply; 15+ messages in thread
From: Mike Frysinger @ 2009-07-03 7:12 UTC (permalink / raw)
To: Biefel, Reiner (NSN - DE/Munich); +Cc: linux-mtd
On Fri, Jul 3, 2009 at 03:08, Biefel, Reiner wrote:
>>people rarely set CPPFLAGS
>
> And how do they include headers of ZLIB, LZO and E2FSPROGS when header
> files are not in standard path, for example during cross-build?
they either have then in the standard path like a sane toolchain, or
they use CFLAGS. i'm not saying putting -I flags in CFLAGS vs
CPPFLAGS is correct, just that people rarely do it the right way.
-mike
^ permalink raw reply [flat|nested] 15+ messages in thread
* RE: Compile Error: structure has no member named lowest_vol_num
2009-07-03 7:12 ` Mike Frysinger
@ 2009-07-03 7:17 ` Biefel, Reiner (NSN - DE/Munich)
2009-07-03 7:19 ` Mike Frysinger
0 siblings, 1 reply; 15+ messages in thread
From: Biefel, Reiner (NSN - DE/Munich) @ 2009-07-03 7:17 UTC (permalink / raw)
To: ext Mike Frysinger; +Cc: linux-mtd
>they either have then in the standard path like a sane toolchain, or
>they use CFLAGS. i'm not saying putting -I flags in CFLAGS vs
>CPPFLAGS is correct, just that people rarely do it the right way.
Does this mean, if I had used CFLAGS instead CPPFLAGS I don't need your
patch?
-Reiner
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Compile Error: structure has no member named lowest_vol_num
2009-07-03 7:17 ` Biefel, Reiner (NSN - DE/Munich)
@ 2009-07-03 7:19 ` Mike Frysinger
0 siblings, 0 replies; 15+ messages in thread
From: Mike Frysinger @ 2009-07-03 7:19 UTC (permalink / raw)
To: Biefel, Reiner (NSN - DE/Munich); +Cc: linux-mtd
On Fri, Jul 3, 2009 at 03:17, Biefel, Reiner wrote:
>>they either have then in the standard path like a sane toolchain, or
>>they use CFLAGS. i'm not saying putting -I flags in CFLAGS vs
>>CPPFLAGS is correct, just that people rarely do it the right way.
>
> Does this mean, if I had used CFLAGS instead CPPFLAGS I don't need your
> patch?
probably, but considering you're one of the few people using the right
variable for its intended purpose, why stop now ? ;)
-mike
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Compile Error: structure has no member named lowest_vol_num
2009-07-02 1:15 ` Mike Frysinger
2009-07-03 6:52 ` Artem Bityutskiy
@ 2009-07-03 7:22 ` Artem Bityutskiy
2009-07-03 7:41 ` Artem Bityutskiy
2 siblings, 0 replies; 15+ messages in thread
From: Artem Bityutskiy @ 2009-07-03 7:22 UTC (permalink / raw)
To: Riku Voipio; +Cc: Biefel, Reiner (NSN - DE/Munich), linux-mtd, Mike Frysinger
Riku,
I think this should fix your compilation issues which your reported
at #mtd some time ago.
On Wed, 2009-07-01 at 21:15 -0400, Mike Frysinger wrote:
> On Tue, Jun 30, 2009 at 10:44, Artem Bityutskiy wrote:
> > On Thu, 2009-06-25 at 14:12 +0200, Biefel, Reiner wrote:
> >>
> >> till snapshot a2d010f8fca904fffa3c6e5a5d148cc96a37a08a from 27.02.2009 I
> >> can compile the sources. Also cross-compile worked fine.
> >> All releases after that release I couldn't compile anymore.
> >>
> >> I allways get the error
> >> ./src/libubi.c:347: error: structure has no member named
> >> `lowest_vol_num'
> >>
> >> >From my try to compile git snapshot version
> >> mtd-utils-e4d5eea6414093fb074b19585cb8bebadc2d3e0e.tar.gz from
> >> 2009-06-08
> >> .....
> >> gcc -I /utran/fdd/nodeb/opt/i686-pc-linux-gnu/zlib/include -I
> >> /utran/fdd/nodeb/opt/i686-pc-linux-gnu//lzo/include -I
> >> /utran/fdd/nodeb/opt/i686-pc-linux-gnu/e2fsprogs/include -I./include
> >> -DWITHOUT_XATTR -D_FILE_OFFSET_BITS=64 -Iinclude -Isrc -I../include
> >> -D_FILE_OFFSET_BITS=64 -I./inc -I./src -I../../include -std=gnu99
> >> -DPACKAGE_VERSION=\"1.0\" -D_FILE_OFFSET_BITS=64 -O2 -Wall -Wextra
> >> -Wwrite-strings -Wno-sign-compare -Wall -Wextra -Wwrite-strings
> >> -Wno-sign-compare -Wall -Wextra -Wwrite-strings -Wno-sign-compare -c -o
> >> /utran/fdd/nodeb/opt/src/build/i686-pc-linux-gnu/mtd-utils/ubi-utils/old
> >> -utils/pfi.o ./src/pfi.c -g
> >> -Wp,-MD,/utran/fdd/nodeb/opt/src/build/i686-pc-linux-gnu/mtd-utils/ubi-u
> >> tils/old-utils/.pfi.c.dep
> >> gcc -I /utran/fdd/nodeb/opt/i686-pc-linux-gnu/zlib/include -I
> >> /utran/fdd/nodeb/opt/i686-pc-linux-gnu//lzo/include -I
> >> /utran/fdd/nodeb/opt/i686-pc-linux-gnu/e2fsprogs/include -I./include
> >> -DWITHOUT_XATTR -D_FILE_OFFSET_BITS=64 -Iinclude -Isrc -I../include
> >> -D_FILE_OFFSET_BITS=64 -I./inc -I./src -I../../include -std=gnu99
> >> -DPACKAGE_VERSION=\"1.0\" -D_FILE_OFFSET_BITS=64 -O2 -Wall -Wextra
> >> -Wwrite-strings -Wno-sign-compare -Wall -Wextra -Wwrite-strings
> >> -Wno-sign-compare -Wall -Wextra -Wwrite-strings -Wno-sign-compare -c -o
> >> /utran/fdd/nodeb/opt/src/build/i686-pc-linux-gnu/mtd-utils/ubi-utils/old
> >> -utils/libubi.o ./src/libubi.c -g
> >> -Wp,-MD,/utran/fdd/nodeb/opt/src/build/i686-pc-linux-gnu/mtd-utils/ubi-u
> >> tils/old-utils/.libubi.c.dep
> >> ./src/libubi.c: In function `ubi_get_dev_info1':
> >> ./src/libubi.c:347: error: structure has no member named
> >> `lowest_vol_num'
> >
> > this seems to be after your build system re-work. Do you have any
> > idea what could be wrong? I cannot reproduce this.
>
> 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" ...
>
> 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
> -mike
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Compile Error: structure has no member named lowest_vol_num
2009-07-02 1:15 ` Mike Frysinger
2009-07-03 6:52 ` Artem Bityutskiy
2009-07-03 7:22 ` Artem Bityutskiy
@ 2009-07-03 7:41 ` Artem Bityutskiy
2 siblings, 0 replies; 15+ messages in thread
From: Artem Bityutskiy @ 2009-07-03 7:41 UTC (permalink / raw)
To: Mike Frysinger; +Cc: Biefel, Reiner (NSN - DE/Munich), linux-mtd
On Wed, 2009-07-01 at 21:15 -0400, Mike Frysinger wrote:
> 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
Pushed this patch, thanks!
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2009-07-03 7:42 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-25 12:12 Compile Error: structure has no member named lowest_vol_num Biefel, Reiner (NSN - DE/Munich)
2009-06-29 7:29 ` Biefel, Reiner (NSN - DE/Munich)
2009-06-30 11:45 ` Artem Bityutskiy
2009-06-30 14:27 ` Biefel, Reiner (NSN - DE/Munich)
2009-06-30 14:44 ` Artem Bityutskiy
2009-07-02 1:15 ` Mike Frysinger
2009-07-03 6:52 ` Artem Bityutskiy
2009-07-03 7:00 ` Biefel, Reiner (NSN - DE/Munich)
2009-07-03 7:02 ` Mike Frysinger
2009-07-03 7:08 ` Biefel, Reiner (NSN - DE/Munich)
2009-07-03 7:12 ` Mike Frysinger
2009-07-03 7:17 ` Biefel, Reiner (NSN - DE/Munich)
2009-07-03 7:19 ` Mike Frysinger
2009-07-03 7:22 ` Artem Bityutskiy
2009-07-03 7:41 ` Artem Bityutskiy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.