Gentoo Archives: gentoo-user

From: Mark Knecht <markknecht@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] mesa build failure
Date: Sat, 27 Jun 2009 17:27:19
Message-Id: 5bdc1c8b0906271027x5c961f75gbc8779ce10511edf@mail.gmail.com
In Reply to: Re: [gentoo-user] mesa build failure by Mark Knecht
1 On Sat, Jun 27, 2009 at 10:25 AM, Mark Knecht<markknecht@×××××.com> wrote:
2 > On Sat, Jun 27, 2009 at 10:18 AM, Alan McKinnon<alan.mckinnon@×××××.com> wrote:
3 >> On Saturday 27 June 2009 19:10:43 Mark Knecht wrote:
4 >>> On Sat, Jun 27, 2009 at 2:34 AM, Alan McKinnon<alan.mckinnon@×××××.com>
5 >> wrote:
6 >>> > On Saturday 27 June 2009 06:24:12 Mark Knecht wrote:
7 >>> >> On Fri, Jun 26, 2009 at 12:30 PM, Alan McKinnon<alan.mckinnon@×××××.com>
8 >>> >
9 >>> > wrote:
10 >>> >> > On Friday 26 June 2009 21:05:01 Mark Knecht wrote:
11 >>> >> >> So the weirdness continues. mesa built but then xorg-server failed
12 >>> >> >> with the same failure:
13 >>> >> >>
14 >>> >> >>
15 >>> >> >>  * >>> SetUID: [chmod go-r] /usr/bin/Xorg ...
16 >>> >> >>                        [ ok ]
17 >>> >> >>
18 >>> >> >> Switching to xorg-x11 OpenGL interface...ln: creating symbolic link
19 >>> >> >> `./libglx.so': File exists
20 >>> >> >> !!! Error: Failed to create /lib/libglx.so
21 >>> >> >
22 >>> >> > Looks like you have a file collision between xorg-server and mesa,
23 >>> >> > which is odd as those packages get a lot of testing.
24 >>> >> >
25 >>> >> > Anything on bugs.gentoo.org?
26 >>> >>
27 >>> >> Unfortunately it seem that there are bug reports on this and more
28 >>> >> unfortunately they have apparently been going on nearly a year now.
29 >>> >> It's not a Gentoo thing specifically as there are Ubuntu, Debian and
30 >>> >> other distros with reports in their forums.
31 >>> >>
32 >>> >> There was a possible by hand fix for it but I'll need to look at that
33 >>> >> over the weekend to see if it makes sense on this machine.
34 >>> >>
35 >>> >> Bummer. I hate banging my head up against a wall made of problems no
36 >>> >> one seems to be fixing.
37 >>> >>
38 >>> >> http://bugs.gentoo.org/247685
39 >>> >
40 >>> > The fix seems (in principle at least) to be brain-dead easy:
41 >>> >
42 >>> > - all ebuilds that merge opengl files should put them in distinct
43 >>> > locations by name to avoid collisions
44 >>> > - the contents of /usr/lib64/opengl/xorg-x11/extensions/ should be
45 >>> > symlinks with a sane default put there by xorg-server and modified by
46 >>> > eselect
47 >>> >
48 >>> > Nikos's comments are especially sane in that thread. Perhaps he'll come
49 >>> > along, see this thread and help you out further.
50 >>> >
51 >>> > I suspect that the temporary workaround will be to delete a symlink and
52 >>> > emerge stuff, then remember to always do this on every future re-emerge
53 >>> >
54 >>> > --
55 >>> > alan dot mckinnon at gmail dot com
56 >>>
57 >>> In concept it does seem fairly straight forward, but to some extent
58 >>> I'm not clear why my previous attempts didn't work, unless the
59 >>> questionable files remained behind. What I attempted to do was
60 >>> completely remove everything X, but I probably didn't specifically
61 >>> remove the stuff in /usr/lib/opengl/xorg-x11/extensions. I was
62 >>> expecting the emerge to do that.
63 >>
64 >> According to the bug report you mentioned earlier, the ebuild is attempting to
65 >> perform eselect too late in the process, which fails, and the ebuild
66 >> immediately exits.
67 >>
68 >> So it's not surprising that dodgy files are left behind which you must remove
69 >> manually.
70 >>
71 >> --
72 >> alan dot mckinnon at gmail dot com
73 >>
74 >>
75 > So I'm little confused by a couple of the postings in that report. I
76 > did emerge -C glproto/eselect/mesa/xorg-server and then made sure
77 > there was nothing left in those directories at all. Should I emerge
78 > eselect, manually do a select, and then emerge the rest of the files?
79 >
80 > Or emerge eselect and maybe mesa, do the eselect, then xorg-server?
81 >
82 > mesa is currently building. glproto created
83 > /usr/lib/opengl/xorg-x11/include, but the other two directories are
84 > there yet.
85 >
86 > Cheers,
87 > Mark
88 >
89
90 With mesa building in screen I tried the eselect step. It completes
91 normally but the extensions directory isn't there yet so there's
92 nothing to check.
93
94 [detached]
95 myth12 ~ # eselect opengl list
96 Available OpenGL implementations:
97 [1] xorg-x11 *
98 myth12 ~ # eselect opengl set 1
99 Switching to xorg-x11 OpenGL interface... done
100 myth12 ~ # ls -al /usr/lib/opengl/xorg-x11/
101 total 12
102 drwxr-xr-x 3 root root 4096 Jun 27 10:20 .
103 drwxr-xr-x 4 root root 4096 Jun 27 10:20 ..
104 drwxr-xr-x 2 root root 4096 Jun 27 10:20 include
105 myth12 ~ #

Replies

Subject Author
Re: [gentoo-user] mesa build failure Mark Knecht <markknecht@×××××.com>