On Wed, May 17, 2006 at 11:23:00AM -0700, Richard Fish wrote:
> On 5/17/06, Leopold Gouverneur <[EMAIL PROTECTED]> wrote:
> >emerge lvm2 abort during compilation with this message:
> >...
> >../include/lvm-string.h:40: attention : 'struct dm_pool' declared inside
> >parameter list
> >...
> >
> >wordir/.../lvm-string.h i see:
> >...
> >struct pool;
> >       ^^^^
> >....
> >char *build_dm_name(struct dm_pool *mem, ....
> >                           ^^^^^^^
> >.....
> >
> >It is not surprising then that the compiler complains about
> >dm_pool being declared inside parameter list!
> >Now what surprised me, was that if i untar  LVM2.2.02.05.tgz
> >and look in lvm-string.h, i see:
> >
> >...
> >struct dm_pool;
> >       ^^^^^^^
> >...
> >char *build_dm_name(struct dm_pool *mem, ....
> >...
> >which makes the compiler happy.
> >
> >How and why was this file changed?
> 
> I don't see any change in this file:
> 
> carcharias ~ # ebuild /usr/portage/sys-fs/lvm2/lvm2-2.02.05.ebuild unpack
> ...
> >>>Unpacking source...
> >>>Unpacking LVM2.2.02.05.tgz to /var/tmp/portage/lvm2-2.02.05/work
> >>>Source unpacked.
> carcharias ~ # grep struct /var/.../work/LVM2.2.02.05/lib/misc/lvm-string.h
> struct pool;
> char *build_dm_name(struct dm_pool *mem, const char *vg,
> int split_dm_name(struct dm_pool *mem, const char *dmname,
> carcharias ~ #
> 
> carcharias src # tar -xzf /usr/portage/distfiles/LVM2.2.02.05.tgz
> carcharias src # grep struct LVM2.2.02.05/lib/misc/lvm-string.h
> struct pool;
> char *build_dm_name(struct dm_pool *mem, const char *vg,
> int split_dm_name(struct dm_pool *mem, const char *dmname,
> 
> What use flags are you using?  Because somehow I managed to merge
> 2.02.05 without hitting this problem.
> 
> -Richard

[ebuild  N    ] sys-fs/lvm2-2.02.05  USE="nolvm1 nolvmstatic nosnapshots
readline -clvm -cman -gulm -nomirrors"

Anyway i think that without a previous declaration of dm_pool the
compilation should abort.But since i seem to be the only one
encountering that error the problem is surely with me but where???

-- 
[email protected] mailing list

Reply via email to