On Tue, 2006-01-31 at 14:19 +1100, Ben Skeggs wrote: > On Mon, 2006-01-30 at 21:20 -0500, B Vance wrote: > > I've posted onto bugzilla > > (http://bugs.gentoo.org/show_bug.cgi?id=111877 ), and haven't had much > > luck using the suggestions there. Basically while trying to upgrade to > > the modular X.org, it dies with the following error: > This is because of a long-standing bug in eselect-opengl. If you have a > look at /usr/include/GL, you'll find that the the main GL headers are > all symlinks to the 32-bit compat libraries (which are too old to build > modular X against). > > You need to fix the symlinks to point to the ones > in /usr/lib64/opengl/xorg-x11/include/. > > Ben. > > > > glxcmds.c: In function `__glXBindSwapBarrierSGIX': > > glxcmds.c:1749: warning: cast to pointer from integer of different size > > glxcmds.c: In function `__glxQueryHyperpipeNetworkSGIX': > > glxcmds.c:1796: error: `xGLXQueryHyperpipeNetworkSGIXReq' undeclared (first > > use > > in this function) > > glxcmds.c:1796: error: (Each undeclared identifier is reported only once > > glxcmds.c:1796: error: for each function it appears in.) > > glxcmds.c:1796: error: `req' undeclared (first use in this function) > > glxcmds.c:1796: error: parse error before ')' token > > glxcmds.c:1797: error: `xGLXQueryHyperpipeNetworkSGIXReply' undeclared > > (first > > use in this function) > > glxcmds.c:1812: error: `reply' undeclared (first use in this function) > > glxcmds.c:1825: error: `sz_xGLXQueryHyperpipeNetworkSGIXReply' undeclared > > (first use in this function) > > glxcmds.c: In function `__glxDestroyHyperpipeConfigSGIX': > > glxcmds.c:1836: error: `xGLXDestroyHyperpipeConfigSGIXReq' undeclared (first > > use in this function) > > glxcmds.c:1836: error: `req' undeclared (first use in this function) > > glxcmds.c:1837: error: parse error before ')' token > > glxcmds.c:1838: error: `xGLXDestroyHyperpipeConfigSGIXReply' undeclared > > (first > > use in this function) > > glxcmds.c:1851: error: `reply' undeclared (first use in this function) > > glxcmds.c:1863: error: `sz_xGLXDestroyHyperpipeConfigSGIXReply' undeclared > > (first use in this function) > > glxcmds.c: In function `__glxQueryHyperpipeConfigSGIX': > > glxcmds.c:1871: error: `xGLXQueryHyperpipeConfigSGIXReq' undeclared (first > > use > > in this function) > > glxcmds.c:1871: error: `req' undeclared (first use in this function) > > glxcmds.c:1872: error: parse error before ')' token > > glxcmds.c:1873: error: `xGLXQueryHyperpipeConfigSGIXReply' undeclared (first > > use in this function) > > glxcmds.c:1889: error: `reply' undeclared (first use in this function) > > glxcmds.c:1904: error: `sz_xGLXQueryHyperpipeConfigSGIXReply' undeclared > > (first > > use in this function) > > glxcmds.c: In function `__glxHyperpipeConfigSGIX': > > glxcmds.c:1915: error: `xGLXHyperpipeConfigSGIXReq' undeclared (first use in > > this function) > > glxcmds.c:1915: error: `req' undeclared (first use in this function) > > glxcmds.c:1916: error: parse error before ')' token > > glxcmds.c:1917: error: `xGLXHyperpipeConfigSGIXReply' undeclared (first use > > in > > this function) > > glxcmds.c:1935: error: `reply' undeclared (first use in this function) > > glxcmds.c:1949: error: `sz_xGLXHyperpipeConfigSGIXReply' undeclared (first > > use > > in this function) > > make[2]: *** [glxcmds.lo] Error 1 > > make[2]: *** Waiting for unfinished jobs.... > > x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../include > > -I../../include -I../../include -I../../include -I../../include > > -I../../include > > -I../../GL/include -I../../hw/xfree86/os-support -DHAVE_DIX_CONFIG_H > > -I/home/tmp/portage/xorg-server-1.0.1-r2/work/Mesa-6.4.1/include > > -DXFree86Server -DIN_MODULE -DXFree86Module -DXFree86LOADER -Wall > > -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes > > -Wmissing-declarations > > -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN > > -DHAS_STICKY_DIR_BIT -I../../include -I../../include -I../../Xext > > -I../../composite -I../../damageext -I../../xfixes -I../../Xi -I../../mi > > -I../../miext/shadow -I../../miext/damage -I../../render -I../../randr > > -I../../fb -I../../lbx -O2 -mtune=k8 -pipe -fomit-frame-pointer -MT glxfb.lo > > -MD -MP -MF .deps/glxfb.Tpo -c glxfb.c -fPIC -DPIC -o .libs/glxfb.o > > x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../include > > -I../../include -I../../include -I../../include -I../../include > > -I../../include > > -I../../GL/include -I../../hw/xfree86/os-support -DHAVE_DIX_CONFIG_H > > -I/home/tmp/portage/xorg-server-1.0.1-r2/work/Mesa-6.4.1/include > > -DXFree86Server -DIN_MODULE -DXFree86Module -DXFree86LOADER -Wall > > -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes > > -Wmissing-declarations > > -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN > > -DHAS_STICKY_DIR_BIT -I../../include -I../../include -I../../Xext > > -I../../composite -I../../damageext -I../../xfixes -I../../Xi -I../../mi > > -I../../miext/shadow -I../../miext/damage -I../../render -I../../randr > > -I../../fb -I../../lbx -O2 -mtune=k8 -pipe -fomit-frame-pointer -MT > > glxcmdsswap.lo -MD -MP -MF .deps/glxcmdsswap.Tpo -c glxcmdsswap.c -fPIC > > -DPIC > > -o .libs/glxcmdsswap.o > > x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../include > > -I../../include -I../../include -I../../include -I../../include > > -I../../include > > -I../../GL/include -I../../hw/xfree86/os-support -DHAVE_DIX_CONFIG_H > > -I/home/tmp/portage/xorg-server-1.0.1-r2/work/Mesa-6.4.1/include > > -DXFree86Server -DIN_MODULE -DXFree86Module -DXFree86LOADER -Wall > > -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes > > -Wmissing-declarations > > -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN > > -DHAS_STICKY_DIR_BIT -I../../include -I../../include -I../../Xext > > -I../../composite -I../../damageext -I../../xfixes -I../../Xi -I../../mi > > -I../../miext/shadow -I../../miext/damage -I../../render -I../../randr > > -I../../fb -I../../lbx -O2 -mtune=k8 -pipe -fomit-frame-pointer -MT > > glximports.lo -MD -MP -MF .deps/glximports.Tpo -c glximports.c -fPIC -DPIC > > -o > > .libs/glximports.o > > make[2]: Leaving directory > > `/home/tmp/portage/xorg-server-1.0.1-r2/work/xorg-server-1.0.1/GL/glx' > > make[1]: *** [all-recursive] Error 1 > > make[1]: Leaving directory > > `/home/tmp/portage/xorg-server-1.0.1-r2/work/xorg-server-1.0.1/GL' > > make: *** [all-recursive] Error 1 > > > > !!! ERROR: x11-base/xorg-server-1.0.1-r2 failed. > > Call stack: > > ebuild.sh, line 1894: Called dyn_compile > > ebuild.sh, line 941: Called src_compile > > ebuild.sh, line 1609: Called x-modular_src_compile > > x-modular.eclass, line 246: Called x-modular_src_make > > > > And here's my emerge --info > > > > Portage 2.1_pre4-r1 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r2, > > 2.6.14-gentoo-r5 x86_64) > > ================================================================= > > System uname: 2.6.14-gentoo-r5 x86_64 AMD Athlon(tm) 64 X2 Dual Core > > Processor > > 4200+ > > Gentoo Base System version 1.6.14 > > ccache version 2.3 [enabled] > > dev-lang/python: 2.3.5-r2, 2.4.2 > > sys-apps/sandbox: 1.2.12 > > sys-devel/autoconf: 2.13, 2.59-r6 > > sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 > > sys-devel/binutils: 2.16.1 > > sys-devel/libtool: 1.5.22 > > virtual/os-headers: 2.6.11-r2 > > ACCEPT_KEYWORDS="amd64" > > AUTOCLEAN="yes" > > CBUILD="x86_64-pc-linux-gnu" > > CFLAGS="-O2 -mtune=k8 -pipe -fomit-frame-pointer" > > CHOST="x86_64-pc-linux-gnu" > > CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env > > /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env > > /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config > > /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config > > /var/qmail/control" > > CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" > > CXXFLAGS="-O2 -mtune=k8 -pipe -fomit-frame-pointer" > > DISTDIR="/usr/portage/distfiles" > > FEATURES="autoconfig buildpkg ccache distlocks sandbox sfperms strict" > > GENTOO_MIRRORS="ftp://sunsite.ualberta.ca/pub/unix/Linux/gentoo/ > > ftp://gentoo.risq.qc.ca/ ftp://gentoo.agsn.ca/ http://gentoo.mirrored.ca/ > > ftp://gentoo.mirrored.ca/ http://gentoo.osuosl.org/ > > ftp://sunsite.ualberta.ca/pub/unix/Linux/gentoo/" > > MAKEOPTS="-j4" > > PKGDIR="/usr/portage/packages" > > PORTAGE_TMPDIR="/home/tmp" > > PORTDIR="/usr/portage" > > PORTDIR_OVERLAY="/usr/local/portage" > > SYNC="rsync://rsync.gentoo.org/gentoo-portage" > > USE="X acpi alsa amd64 avi berkdb bitmap-fonts cdr crypt cups dbus > > divx4linux > > doc dri dvd dvdr eds emboss encode foomaticdb fortran gif gnome gpm > > gstreamer > > gtk gtk2 gtkhtml hal imlib ipv6 java jpeg kde lzw lzw-tiff mp3 mpeg ncurses > > nls > > nocd nptl nptlonly nsplugin offensive oggvorbis opengl oss pam pcre pdflib > > perl > > png python qt quicktime readline sdl spell ssl tcpd tiff truetype-fonts > > type1-fonts unicode usb userlocales xpm xv zlib elibc_glibc > > input_devices_mouse > > input_devices_keyboard kernel_linux userland_GNU video_cards_nvidia" > > Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, > > LINGUAS > > > > With the exception of a very few programs not available on the stable tree, > > The system is all > > stable (Modular X.org being the biggest exception) > > The biggest annoyance is I have it successfully running on my unstable > > AMD64 laptop (gcc-4.0.2 etc) > > > > Any ideas/assistance will be greatly appreciated. > > > > B. Vance > > It turned out to be a bit more indepth then just re-linking the 7 symlinked files to /usr/lib64/opengl/xorg-x11/include. I tried that and it crashed with a variation of the same errors.
I finally got it working by doing this: ShadowAerie ~ # eselect-opengl set nvidia ShadowAerie ~ # rm /usr/include/GL/glext.h && ln -s /usr/lib64/opengl/global/include/glext.h /usr/include/GL/glext.h ShadowAerie ~ # rm /usr/include/GL/glx.h && ln -s /usr/lib64/opengl/nvidia/include/glx.h /usr/include/GL/glx.h ShadowAerie ~ # rm /usr/include/GL/glxext.h && ln -s /usr/lib64/opengl/global/include/glxext.h /usr/include/GL/glxext.h ShadowAerie ~ # rm /usr/include/GL/glxmd.h && ln -s /usr/lib64/opengl/xorg-x11/include/glxmd.h /usr/include/GL/glxmd.h ShadowAerie ~ # rm /usr/include/GL/glxproto.h && ln -s /usr/lib64/opengl/xorg-x11/include/glxproto.h /usr/include/GL/glxproto.h ShadowAerie ~ # rm /usr/include/GL/glxtokens.h && ln -s /usr/lib64/opengl/xorg-x11/include/glxtokens.h /usr/include/GL/glxtokens.h I have no idea why the compile required different files to link to ../lib64/nvidia - ../lib64/xorg-x11 and ../lib64/global. Hope this bit of info helps.. And more importantly, that after I restart, there isn't going to be some hidden error that kills X for me.. :-) B. Vance -- [email protected] mailing list
