Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] lvm2 emerge problem Richard Fish <bigfish@××××××××××.org>