I tried upgrading to modular xorg based on the howto, but when it tries emerging mesa it fails. The first warnings right at the start: >>> Compiling source in /var/tmp/portage/mesa-6.4.1-r1/work/Mesa-6.4.1 ... (cd configs && rm -f current && ln -s linux-dri-x86 current) make default make[1]: Entering directory `/var/tmp/portage/mesa-6.4.1-r1/work/Mesa-6.4.1' make[2]: Entering directory `/var/tmp/portage/mesa-6.4.1-r1/work/Mesa-6.4.1/src' Making sources for linux-dri-x86 mkdir ../lib make[3]: Entering directory `/var/tmp/portage/mesa-6.4.1-r1/work/Mesa-6.4.1/src/glx/x11' Makefile:95: depend: No such file or directory touch depend /usr/bin/makedepend -fdepend -I. -I../../../include -I../../../include/GL/internal -I../../../src/mesa/main -I../../../src/mesa/glapi -I../../../src/mesa/drivers/dri/common `pkg-config --cflags libdrm` -I/usr/X11R6/include ../../../src/mesa/glapi/glapi.c ../../../src/mesa/glapi/glthread.c ../../../src/mesa/main/dispatch.c glcontextmodes.c clientattrib.c compsize.c eval.c glxcmds.c glxext.c glxextensions.c indirect.c indirect_init.c indirect_size.c indirect_window_pos.c indirect_transpose_matrix.c indirect_vertex_array.c indirect_vertex_program.c pixel.c pixelstore.c render2.c renderpix.c single2.c singlepix.c vertarr.c xfont.c glx_pbuffer.c glx_query.c glx_texture_compression.c dri_glx.c XF86dri.c ../../../src/mesa/x86/glapi_x86.S /usr/bin/makedepend: warning: ../../../src/mesa/glapi/glapi.c (reading /usr/X11R6/include/bits/types.h, line 31): cannot find include file "stddef.h" not in ./stddef.h not in ../../../include/stddef.h not in ../../../include/GL/internal/stddef.h not in ../../../src/mesa/main/stddef.h not in ../../../src/mesa/glapi/stddef.h not in ../../../src/mesa/drivers/dri/common/stddef.h not in /usr/include/drm/stddef.h not in /usr/X11R6/include/stddef.h not in /usr/include/stddef.h /usr/bin/makedepend: warning: ../../../src/mesa/glapi/glapi.c (reading /usr/include/limits.h, line 124): cannot find include file "limits.h" /usr/bin/makedepend: warning: ../../../src/mesa/glapi/glapi.c (reading /usr/X11R6/include/stdlib.h, line 33): cannot find include file "stddef.h" not in ./stddef.h not in ../../../include/stddef.h ............. the same warnings come with every driver: a - x86/read_rgba_span_x86.o a - tnl/t_vtx_x86_gcc.o ranlib mesa.a cd drivers/dri ; make make[5]: Entering directory `/var/tmp/portage/mesa-6.4.1-r1/work/Mesa-6.4.1/src/mesa/drivers/dri' echo i810 i830 i915 mach64 mga r128 r200 r300 radeon s3v savage sis tdfx trident unichrome ffb i810 i830 i915 mach64 mga r128 r200 r300 radeon s3v savage sis tdfx trident unichrome ffb i810 make[6]: Entering directory `/var/tmp/portage/mesa-6.4.1-r1/work/Mesa-6.4.1/src/mesa/drivers/dri/i810' ../Makefile.template:109: depend: No such file or directory touch depend /usr/bin/makedepend -fdepend -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DHAVE_ALIAS -I. -I../../../../../src/mesa/drivers/dri/common -Iserver -I../../../../../../drm/shared-core -I../../../../../include -I../../../../../include/GL/internal -I../../../../../src/mesa -I../../../../../src/mesa/main -I../../../../../src/mesa/glapi -I../../../../../src/mesa/math -I../../../../../src/mesa/transform -I../../../../../src/mesa/shader -I../../../../../src/mesa/swrast -I../../../../../src/mesa/swrast_setup -I../../../../../src/egl/main -I../../../../../src/egl/drivers/dri `pkg-config --cflags libdrm` ../../common/driverfuncs.c ../common/utils.c ../common/texmem.c ../common/vblank.c ../common/dri_util.c ../common/xmlconfig.c ../common/drirenderbuffer.c i810context.c i810ioctl.c i810render.c i810screen.c i810span.c i810state.c i810tex.c i810texmem.c i810texstate.c i810tris.c i810vb.c \ > /dev/null /usr/bin/makedepend: warning: ../../common/driverfuncs.c (reading /usr/include/bits/types.h, line 31): cannot find include file "stddef.h" not in ./stddef.h not in ../../../../../src/mesa/drivers/dri/common/stddef.h not in server/stddef.h not in ../../../../../../drm/shared-core/stddef.h not in ../../../../../include/stddef.h not in ../../../../../include/GL/internal/stddef.h not in ../../../../../src/mesa/stddef.h not in ../../../../../src/mesa/main/stddef.h not in ../../../../../src/mesa/glapi/stddef.h not in ../../../../../src/mesa/math/stddef.h not in ../../../../../src/mesa/transform/stddef.h not in ../../../../../src/mesa/shader/stddef.h ................. in the end compile brakes with: i686-pc-linux-gnu-gcc -c -I../../include -I/usr/include/Motif1.2 -I/usr/contrib/X11R6/include -I/usr/X11R6/include -Wall -O3 -march=pentium4 -fomit-frame-pointer -fPIC -m32 -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DHAVE_ALIAS -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -std=c99 -ffast-math GLwMDrawA.c In file included from GLwMDrawA.c:41: GLwDrawA.c:53:27: Xm/PrimitiveP.h: No such file or directory In file included from GLwMDrawAP.h:41, from GLwDrawA.c:54, from GLwMDrawA.c:41: GLwDrawAP.h:57: error: parse error before "XmPrimitiveClassPart" GLwDrawAP.h:57: warning: no semicolon at end of struct or union GLwDrawAP.h:59: error: parse error before '}' token ..... GLwDrawA.c:655: error: dereferencing pointer to incomplete type GLwDrawA.c:656: error: dereferencing pointer to incomplete type GLwDrawA.c:657: error: dereferencing pointer to incomplete type make[3]: *** [GLwMDrawA.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/mesa-6.4.1-r1/work/Mesa-6.4.1/src/glw' make[2]: *** [subdirs] Error 1 make[2]: Leaving directory `/var/tmp/portage/mesa-6.4.1-r1/work/Mesa-6.4.1/src' make[1]: *** [default] Error 1 make[1]: Leaving directory `/var/tmp/portage/mesa-6.4.1-r1/work/Mesa-6.4.1' make: *** [linux-dri-x86] Error 2 !!! ERROR: media-libs/mesa-6.4.1-r1 failed. !!! Function src_compile, Line 122, Exitcode 2 !!! Build failed !!! If you need support, post the topmost build error, NOT this status message. Portage 2.1_pre3 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r3, 2.6.14-gentoo-r2 i686) ================================================================= System uname: 2.6.14-gentoo-r2 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz Gentoo Base System version 1.12.0_pre12 dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 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-r1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.inode.at http://gd.tuwien.ac.at/opsys/linux/gentoo" LANG="en_IE.iso885915@euro" LC_ALL="en_IE.iso885915@euro" PKGDIR="/home/portage/" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://www.corinis.com/portage" USE="x86 X aac aalib acl alsa apache2 apm audiofile avi berkdb bitmap-fonts bluetooth bonobo bzip2 bzlib cairo cardbus cddb cdparanoia cdr cdrom codecs crypt cups curl dbus devfs26 directfb divx4linux dlloader dri dvd dvdr dvdread eds encode escreen esd etwin evo exif expat fam ffmpeg firefox flac foomaticdb fortran gdbm gif gimp gimpprint glitz glut glx gnome gpm gtk gtk2 gtkhtml guile hal hpn idn ieee1394 imagemagick imlib imlib2 ipv6 ithreads jack java jpeg jpeg2k junit kde lcms ldap libcaca libg++ libwww logitech-mouse lua mad madwifi matroska mikmod mmx mng motif mozilla moznoirc mozsvg mp3 mpeg mpeg4 mplayer mysql ncurses network nls nvidia ogg oggvorbis opengl oss pam pcmcia pcre pdf pdflib perl png python qt quicktime readline samba slang spell sqlite sse sse2 ssl svg svga tcpd theora tidy tiff transcode truetype truetype-fonts type1-fonts udev usb vcd vorbis wifi win32codecs wmf xine xinerama xml xml2 xmms xrandr xv xvid zlib elibc_glibc kernel_linux userland_GNU" Unset: ASFLAGS, CTARGET, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Which version of openmotif/lesstif do you have installed? ls -ld /usr/include/Xm and make sure it points somewhere that exists.
thanks, it seems that Xm wasnt linked correctly I then remerged openmotif nd glproto and now it compiles fine
I have this exact same problem (as other people too) with mesa 6.4.1-r2. I have openmotif and lesstif installed. My /usr/include/Xm point to itself; I did not do what the previous post did, but as I saw in the forums ( http://forums.gentoo.org/viewtopic-t-416956-highlight-xm+primitivep+h+directory.html ) It worked with doing symlinks in /usr/include and /usr/lib Motif1.2 --> openmotif... (Mesa is trying to include Motif1.2 while compiling).
*** Bug 128315 has been marked as a duplicate of this bug. ***
One comment in another bug report asked someone to run motif-config. This didn't seem to do anything useful, mor did the suggestor bother to indicate which motif-config option might useful (it seems to be a profile manager), so I re-emerged motif, and that solved the problem for me.