Gentoo Archives: gentoo-user

From: Richard Fish <bigfish@××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] lvm2 emerge problem
Date: Wed, 17 May 2006 18:40:32
Message-Id: 7573e9640605171123r3430f3eby7bbc7f446c55de86@mail.gmail.com
In Reply to: [gentoo-user] lvm2 emerge problem by Leopold Gouverneur
1 On 5/17/06, Leopold Gouverneur <lgouv@×××××.be> wrote:
2 > emerge lvm2 abort during compilation with this message:
3 > ...
4 > ../include/lvm-string.h:40: attention : 'struct dm_pool' declared inside
5 > parameter list
6 > ...
7 >
8 > wordir/.../lvm-string.h i see:
9 > ...
10 > struct pool;
11 > ^^^^
12 > ....
13 > char *build_dm_name(struct dm_pool *mem, ....
14 > ^^^^^^^
15 > .....
16 >
17 > It is not surprising then that the compiler complains about
18 > dm_pool being declared inside parameter list!
19 > Now what surprised me, was that if i untar LVM2.2.02.05.tgz
20 > and look in lvm-string.h, i see:
21 >
22 > ...
23 > struct dm_pool;
24 > ^^^^^^^
25 > ...
26 > char *build_dm_name(struct dm_pool *mem, ....
27 > ...
28 > which makes the compiler happy.
29 >
30 > How and why was this file changed?
31
32 I don't see any change in this file:
33
34 carcharias ~ # ebuild /usr/portage/sys-fs/lvm2/lvm2-2.02.05.ebuild unpack
35 ...
36 >>> Unpacking source...
37 >>> Unpacking LVM2.2.02.05.tgz to /var/tmp/portage/lvm2-2.02.05/work
38 >>> Source unpacked.
39 carcharias ~ # grep struct /var/.../work/LVM2.2.02.05/lib/misc/lvm-string.h
40 struct pool;
41 char *build_dm_name(struct dm_pool *mem, const char *vg,
42 int split_dm_name(struct dm_pool *mem, const char *dmname,
43 carcharias ~ #
44
45 carcharias src # tar -xzf /usr/portage/distfiles/LVM2.2.02.05.tgz
46 carcharias src # grep struct LVM2.2.02.05/lib/misc/lvm-string.h
47 struct pool;
48 char *build_dm_name(struct dm_pool *mem, const char *vg,
49 int split_dm_name(struct dm_pool *mem, const char *dmname,
50
51 What use flags are you using? Because somehow I managed to merge
52 2.02.05 without hitting this problem.
53
54 -Richard
55
56 --
57 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] lvm2 emerge problem Leopold Gouverneur <lgouv@×××××.be>