Gentoo Archives: gentoo-amd64

From: B Vance <bvance@×××××.ca>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] Modular X,org emerge problem at xorg-server
Date: Tue, 31 Jan 2006 14:54:09
Message-Id: 1138719066.25063.36.camel@ShadowAerie.ShadowRealm
In Reply to: Re: [gentoo-amd64] Modular X,org emerge problem at xorg-server by Ben Skeggs
1 On Tue, 2006-01-31 at 14:19 +1100, Ben Skeggs wrote:
2 > On Mon, 2006-01-30 at 21:20 -0500, B Vance wrote:
3 > > I've posted onto bugzilla
4 > > (http://bugs.gentoo.org/show_bug.cgi?id=111877 ), and haven't had much
5 > > luck using the suggestions there. Basically while trying to upgrade to
6 > > the modular X.org, it dies with the following error:
7 > This is because of a long-standing bug in eselect-opengl. If you have a
8 > look at /usr/include/GL, you'll find that the the main GL headers are
9 > all symlinks to the 32-bit compat libraries (which are too old to build
10 > modular X against).
11 >
12 > You need to fix the symlinks to point to the ones
13 > in /usr/lib64/opengl/xorg-x11/include/.
14 >
15 > Ben.
16 > >
17 > > glxcmds.c: In function `__glXBindSwapBarrierSGIX':
18 > > glxcmds.c:1749: warning: cast to pointer from integer of different size
19 > > glxcmds.c: In function `__glxQueryHyperpipeNetworkSGIX':
20 > > glxcmds.c:1796: error: `xGLXQueryHyperpipeNetworkSGIXReq' undeclared (first use
21 > > in this function)
22 > > glxcmds.c:1796: error: (Each undeclared identifier is reported only once
23 > > glxcmds.c:1796: error: for each function it appears in.)
24 > > glxcmds.c:1796: error: `req' undeclared (first use in this function)
25 > > glxcmds.c:1796: error: parse error before ')' token
26 > > glxcmds.c:1797: error: `xGLXQueryHyperpipeNetworkSGIXReply' undeclared (first
27 > > use in this function)
28 > > glxcmds.c:1812: error: `reply' undeclared (first use in this function)
29 > > glxcmds.c:1825: error: `sz_xGLXQueryHyperpipeNetworkSGIXReply' undeclared
30 > > (first use in this function)
31 > > glxcmds.c: In function `__glxDestroyHyperpipeConfigSGIX':
32 > > glxcmds.c:1836: error: `xGLXDestroyHyperpipeConfigSGIXReq' undeclared (first
33 > > use in this function)
34 > > glxcmds.c:1836: error: `req' undeclared (first use in this function)
35 > > glxcmds.c:1837: error: parse error before ')' token
36 > > glxcmds.c:1838: error: `xGLXDestroyHyperpipeConfigSGIXReply' undeclared (first
37 > > use in this function)
38 > > glxcmds.c:1851: error: `reply' undeclared (first use in this function)
39 > > glxcmds.c:1863: error: `sz_xGLXDestroyHyperpipeConfigSGIXReply' undeclared
40 > > (first use in this function)
41 > > glxcmds.c: In function `__glxQueryHyperpipeConfigSGIX':
42 > > glxcmds.c:1871: error: `xGLXQueryHyperpipeConfigSGIXReq' undeclared (first use
43 > > in this function)
44 > > glxcmds.c:1871: error: `req' undeclared (first use in this function)
45 > > glxcmds.c:1872: error: parse error before ')' token
46 > > glxcmds.c:1873: error: `xGLXQueryHyperpipeConfigSGIXReply' undeclared (first
47 > > use in this function)
48 > > glxcmds.c:1889: error: `reply' undeclared (first use in this function)
49 > > glxcmds.c:1904: error: `sz_xGLXQueryHyperpipeConfigSGIXReply' undeclared (first
50 > > use in this function)
51 > > glxcmds.c: In function `__glxHyperpipeConfigSGIX':
52 > > glxcmds.c:1915: error: `xGLXHyperpipeConfigSGIXReq' undeclared (first use in
53 > > this function)
54 > > glxcmds.c:1915: error: `req' undeclared (first use in this function)
55 > > glxcmds.c:1916: error: parse error before ')' token
56 > > glxcmds.c:1917: error: `xGLXHyperpipeConfigSGIXReply' undeclared (first use in
57 > > this function)
58 > > glxcmds.c:1935: error: `reply' undeclared (first use in this function)
59 > > glxcmds.c:1949: error: `sz_xGLXHyperpipeConfigSGIXReply' undeclared (first use
60 > > in this function)
61 > > make[2]: *** [glxcmds.lo] Error 1
62 > > make[2]: *** Waiting for unfinished jobs....
63 > > x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../include
64 > > -I../../include -I../../include -I../../include -I../../include -I../../include
65 > > -I../../GL/include -I../../hw/xfree86/os-support -DHAVE_DIX_CONFIG_H
66 > > -I/home/tmp/portage/xorg-server-1.0.1-r2/work/Mesa-6.4.1/include
67 > > -DXFree86Server -DIN_MODULE -DXFree86Module -DXFree86LOADER -Wall
68 > > -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
69 > > -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN
70 > > -DHAS_STICKY_DIR_BIT -I../../include -I../../include -I../../Xext
71 > > -I../../composite -I../../damageext -I../../xfixes -I../../Xi -I../../mi
72 > > -I../../miext/shadow -I../../miext/damage -I../../render -I../../randr
73 > > -I../../fb -I../../lbx -O2 -mtune=k8 -pipe -fomit-frame-pointer -MT glxfb.lo
74 > > -MD -MP -MF .deps/glxfb.Tpo -c glxfb.c -fPIC -DPIC -o .libs/glxfb.o
75 > > x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../include
76 > > -I../../include -I../../include -I../../include -I../../include -I../../include
77 > > -I../../GL/include -I../../hw/xfree86/os-support -DHAVE_DIX_CONFIG_H
78 > > -I/home/tmp/portage/xorg-server-1.0.1-r2/work/Mesa-6.4.1/include
79 > > -DXFree86Server -DIN_MODULE -DXFree86Module -DXFree86LOADER -Wall
80 > > -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
81 > > -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN
82 > > -DHAS_STICKY_DIR_BIT -I../../include -I../../include -I../../Xext
83 > > -I../../composite -I../../damageext -I../../xfixes -I../../Xi -I../../mi
84 > > -I../../miext/shadow -I../../miext/damage -I../../render -I../../randr
85 > > -I../../fb -I../../lbx -O2 -mtune=k8 -pipe -fomit-frame-pointer -MT
86 > > glxcmdsswap.lo -MD -MP -MF .deps/glxcmdsswap.Tpo -c glxcmdsswap.c -fPIC -DPIC
87 > > -o .libs/glxcmdsswap.o
88 > > x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../include
89 > > -I../../include -I../../include -I../../include -I../../include -I../../include
90 > > -I../../GL/include -I../../hw/xfree86/os-support -DHAVE_DIX_CONFIG_H
91 > > -I/home/tmp/portage/xorg-server-1.0.1-r2/work/Mesa-6.4.1/include
92 > > -DXFree86Server -DIN_MODULE -DXFree86Module -DXFree86LOADER -Wall
93 > > -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
94 > > -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN
95 > > -DHAS_STICKY_DIR_BIT -I../../include -I../../include -I../../Xext
96 > > -I../../composite -I../../damageext -I../../xfixes -I../../Xi -I../../mi
97 > > -I../../miext/shadow -I../../miext/damage -I../../render -I../../randr
98 > > -I../../fb -I../../lbx -O2 -mtune=k8 -pipe -fomit-frame-pointer -MT
99 > > glximports.lo -MD -MP -MF .deps/glximports.Tpo -c glximports.c -fPIC -DPIC -o
100 > > .libs/glximports.o
101 > > make[2]: Leaving directory
102 > > `/home/tmp/portage/xorg-server-1.0.1-r2/work/xorg-server-1.0.1/GL/glx'
103 > > make[1]: *** [all-recursive] Error 1
104 > > make[1]: Leaving directory
105 > > `/home/tmp/portage/xorg-server-1.0.1-r2/work/xorg-server-1.0.1/GL'
106 > > make: *** [all-recursive] Error 1
107 > >
108 > > !!! ERROR: x11-base/xorg-server-1.0.1-r2 failed.
109 > > Call stack:
110 > > ebuild.sh, line 1894: Called dyn_compile
111 > > ebuild.sh, line 941: Called src_compile
112 > > ebuild.sh, line 1609: Called x-modular_src_compile
113 > > x-modular.eclass, line 246: Called x-modular_src_make
114 > >
115 > > And here's my emerge --info
116 > >
117 > > Portage 2.1_pre4-r1 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r2,
118 > > 2.6.14-gentoo-r5 x86_64)
119 > > =================================================================
120 > > System uname: 2.6.14-gentoo-r5 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor
121 > > 4200+
122 > > Gentoo Base System version 1.6.14
123 > > ccache version 2.3 [enabled]
124 > > dev-lang/python: 2.3.5-r2, 2.4.2
125 > > sys-apps/sandbox: 1.2.12
126 > > sys-devel/autoconf: 2.13, 2.59-r6
127 > > sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
128 > > sys-devel/binutils: 2.16.1
129 > > sys-devel/libtool: 1.5.22
130 > > virtual/os-headers: 2.6.11-r2
131 > > ACCEPT_KEYWORDS="amd64"
132 > > AUTOCLEAN="yes"
133 > > CBUILD="x86_64-pc-linux-gnu"
134 > > CFLAGS="-O2 -mtune=k8 -pipe -fomit-frame-pointer"
135 > > CHOST="x86_64-pc-linux-gnu"
136 > > CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
137 > > /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
138 > > /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
139 > > /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config
140 > > /var/qmail/control"
141 > > CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
142 > > CXXFLAGS="-O2 -mtune=k8 -pipe -fomit-frame-pointer"
143 > > DISTDIR="/usr/portage/distfiles"
144 > > FEATURES="autoconfig buildpkg ccache distlocks sandbox sfperms strict"
145 > > GENTOO_MIRRORS="ftp://sunsite.ualberta.ca/pub/unix/Linux/gentoo/
146 > > ftp://gentoo.risq.qc.ca/ ftp://gentoo.agsn.ca/ http://gentoo.mirrored.ca/
147 > > ftp://gentoo.mirrored.ca/ http://gentoo.osuosl.org/
148 > > ftp://sunsite.ualberta.ca/pub/unix/Linux/gentoo/"
149 > > MAKEOPTS="-j4"
150 > > PKGDIR="/usr/portage/packages"
151 > > PORTAGE_TMPDIR="/home/tmp"
152 > > PORTDIR="/usr/portage"
153 > > PORTDIR_OVERLAY="/usr/local/portage"
154 > > SYNC="rsync://rsync.gentoo.org/gentoo-portage"
155 > > USE="X acpi alsa amd64 avi berkdb bitmap-fonts cdr crypt cups dbus divx4linux
156 > > doc dri dvd dvdr eds emboss encode foomaticdb fortran gif gnome gpm gstreamer
157 > > gtk gtk2 gtkhtml hal imlib ipv6 java jpeg kde lzw lzw-tiff mp3 mpeg ncurses nls
158 > > nocd nptl nptlonly nsplugin offensive oggvorbis opengl oss pam pcre pdflib perl
159 > > png python qt quicktime readline sdl spell ssl tcpd tiff truetype-fonts
160 > > type1-fonts unicode usb userlocales xpm xv zlib elibc_glibc input_devices_mouse
161 > > input_devices_keyboard kernel_linux userland_GNU video_cards_nvidia"
162 > > Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS
163 > >
164 > > With the exception of a very few programs not available on the stable tree, The system is all
165 > > stable (Modular X.org being the biggest exception)
166 > > The biggest annoyance is I have it successfully running on my unstable AMD64 laptop (gcc-4.0.2 etc)
167 > >
168 > > Any ideas/assistance will be greatly appreciated.
169 > >
170 > > B. Vance
171 > >
172 It turned out to be a bit more indepth then just re-linking the 7
173 symlinked files to /usr/lib64/opengl/xorg-x11/include. I tried that and
174 it crashed with a variation of the same errors.
175
176 I finally got it working by doing this:
177 ShadowAerie ~ # eselect-opengl set nvidia
178 ShadowAerie ~ # rm /usr/include/GL/glext.h && ln
179 -s /usr/lib64/opengl/global/include/glext.h /usr/include/GL/glext.h
180 ShadowAerie ~ # rm /usr/include/GL/glx.h && ln
181 -s /usr/lib64/opengl/nvidia/include/glx.h /usr/include/GL/glx.h
182 ShadowAerie ~ # rm /usr/include/GL/glxext.h && ln
183 -s /usr/lib64/opengl/global/include/glxext.h /usr/include/GL/glxext.h
184 ShadowAerie ~ # rm /usr/include/GL/glxmd.h && ln
185 -s /usr/lib64/opengl/xorg-x11/include/glxmd.h /usr/include/GL/glxmd.h
186 ShadowAerie ~ # rm /usr/include/GL/glxproto.h && ln
187 -s /usr/lib64/opengl/xorg-x11/include/glxproto.h /usr/include/GL/glxproto.h
188 ShadowAerie ~ # rm /usr/include/GL/glxtokens.h && ln
189 -s /usr/lib64/opengl/xorg-x11/include/glxtokens.h /usr/include/GL/glxtokens.h
190
191 I have no idea why the compile required different files to link
192 to ../lib64/nvidia - ../lib64/xorg-x11 and ../lib64/global.
193
194 Hope this bit of info helps.. And more importantly, that after I
195 restart, there isn't going to be some hidden error that kills X for
196 me.. :-)
197
198 B. Vance
199
200 --
201 gentoo-amd64@g.o mailing list