Gentoo Archives: gentoo-user

From: Leopold Gouverneur <lgouv@×××××.be>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] lvm2 emerge problem[solved?]
Date: Fri, 19 May 2006 09:16:04
Message-Id: 20060519090440.GA18243@localhost
In Reply to: Re: [gentoo-user] lvm2 emerge problem by Richard Fish
1 On Wed, May 17, 2006 at 02:29:26PM -0700, Richard Fish wrote:
2 > On 5/17/06, Leopold Gouverneur <lgouv@×××××.be> wrote:
3 > >[ebuild N ] sys-fs/lvm2-2.02.05 USE="nolvm1 nolvmstatic nosnapshots
4 > >readline -clvm -cman -gulm -nomirrors"
5 > >
6 > >Anyway i think that without a previous declaration of dm_pool the
7 > >compilation should abort.But since i seem to be the only one
8 > >encountering that error the problem is surely with me but where???
9 >
10 > Well it is definitely a bug in the code...the declaration *should* be
11 > dm_pool. But for some reason I don't get a fatal error from this.
12 > Even using the same USE flags, I don't seem to have an issue with
13 > this...
14 >
15 > Maybe it is CFLAGS or gcc version? I am using:
16 >
17 > carcharias rjf # emerge --info
18 > Portage 2.1_rc1-r2 (default-linux/x86/2005.1, gcc-3.4.6, glibc-2.4-r3,
19 > 2.6.16-suspend2-r5 i686)
20 > =================================================================
21 >
22 > -Richard
23
24 ~# emerge --info
25 Portage 2.1_rc1-r2 (default-linux/x86/2005.1, gcc-3.4.6, glibc-2.4-r3,
26 2.6.17-rc4-mm1 i686)
27
28 There is my problem.I installed gcc-4-02 whithout emerge thinking that
29 under /usr/local it was in a safe place (not in root PATH).
30 Now when i untar and compile LVM2.2.02.05.tgz as root it uses gcc-3.4.6
31 and everything is OK but as user it uses gcc-4.0.2 and it fails!
32 Although emerge --info says gcc-3.4.6 , it fails because it uses
33 gcc-4.0.2 ( the error messages are exactly the same ).
34 Now, why it says one thing and does another and why 4.0.2 fails where
35 3.4.6 succeeds is another question.I noticed the presence of a file
36 libdevmapper.h under /usr/local/lib/gcc that was quite different from
37 /usr/include/libdevmapper.h. I replacing it with a symlink and the
38 emerge succeeded. But is that safe? Anyway,for me the lesson is clear:be
39 carefull before installing something outside portage control!
40
41 Thankx!
42
43 --
44 gentoo-user@g.o mailing list