I followed the doc to install a modular Xorg 7 there:http://gentoo-wiki.com/HOWTO_Modular_Xorg But once I typed this : jungle:/usr/portage/profiles# emerge -avt xorg-x11 These are the packages that I would merge, in reverse order: Calculating dependencies ...done! [ebuild N ] x11-base/xorg-x11-7.0-r1 USE="-3dfx" INPUT_DEVICES="-acecad -aiptek -calcomp -citron -digitaledge -dmc -dynapro -elo2300 -elographics -evdev -fpit -hyperpen -jamstudio -joystick -keyboard -magellan -magictouch -microtouch -mouse -mutouch -palmax -penmount -spaceorb -summa -synaptics -tek4957 -ur98 -vmmouse -void -wacom" VIDEO_CARDS="-apm -ark -ati -chips -cirrus -cyrix -dummy -fbdev -fglrx -glint -i128 -i740 -i810 -imstt -mga -neomagic -newport -nsc -nv -nvidia -rendition -s3 -s3virge -savage -siliconmotion -sis -sisusb -tdfx -tga -trident -tseng -v4l -vesa -vga -via -vmware -voodoo" 0 kB [ebuild N ] x11-drivers/xf86-video-i128-1.1.0.5 USE="-debug" 248 kB [ebuild N ] x11-drivers/xf86-input-magellan-1.0.0.5 USE="-debug" 211 kB [ebuild N ] x11-drivers/xf86-input-acecad-1.0.0.5 USE="-debug" 212 kB [ebuild N ] x11-apps/mesa-progs-6.4.2 3,639 kB [ebuild N ] media-libs/glut-3.7.1 2,479 kB [ebuild N ] x11-drivers/xf86-video-via-0.1.33.2 USE="dri -debug" 355 kB [ebuild N ] x11-drivers/xf86-video-s3-0.3.5.5 USE="-debug" 236 kB [ebuild N ] x11-drivers/xf86-video-i810-1.4.1.3 USE="dri -debug" 368 kB [ebuild N ] x11-libs/libXvMC-1.0.1 USE="-debug" 213 kB [ebuild N ] x11-drivers/xf86-video-chips-1.0.1.3 USE="-debug" 291 kB [ebuild N ] x11-drivers/xf86-input-tek4957-1.0.0.5 USE="-debug" 212 kB [ebuild N ] x11-drivers/xf86-input-mouse-1.0.3.1 USE="-debug" 253 kB [ebuild N ] x11-drivers/xf86-video-rendition-4.0.1.3 USE="-debug" 272 kB [ebuild N ] x11-drivers/xf86-video-apm-1.0.1.5 USE="-debug" 252 kB [ebuild N ] x11-drivers/xf86-video-vga-4.0.0.5 USE="-debug" 215 kB [ebuild N ] media-fonts/font-bh-ttf-1.0.0 374 kB [ebuild N ] x11-drivers/xf86-video-nv-1.0.1.5 USE="-debug" 258 kB [ebuild N ] x11-drivers/xf86-video-trident-1.0.1.3 USE="-debug" 273 kB [ebuild N ] x11-drivers/xf86-input-vmmouse-12.3.1.0 USE="-debug" 212 kB [ebuild N ] x11-drivers/xf86-input-mutouch-1.0.0.5 USE="-debug" 219 kB [ebuild N ] x11-drivers/xf86-video-dummy-0.1.0.5 USE="-debug" 211 kB [ebuild N ] x11-drivers/xf86-input-joystick-1.0.0.5 USE="-debug" 211 kB [ebuild N ] x11-drivers/xf86-video-siliconmotion-1.3.1.5 USE="-debug" 256 kB [ebuild N ] x11-drivers/xf86-input-penmount-1.0.0.5 USE="-debug" 211 kB [ebuild N ] x11-drivers/xf86-video-sis-0.8.1.3 USE="dri -debug" 579 kB [ebuild N ] x11-drivers/xf86-video-mga-1.2.1.3 USE="dri -debug" 338 kB [ebuild N ] x11-drivers/xf86-video-ati-6.5.7.3 USE="dri -debug" 683 kB [ebuild N ] x11-drivers/xf86-input-fpit-1.0.0.5 USE="-debug" 215 kB [ebuild N ] x11-apps/xrandr-1.0.1 USE="-debug" 74 kB [ebuild N ] x11-libs/libXrandr-1.1.0.2 USE="-debug" 206 kB [ebuild N ] x11-drivers/xf86-input-dmc-1.0.0.5 USE="-debug" 211 kB [ebuild N ] x11-drivers/xf86-video-ark-0.5.0.5 USE="-debug" 214 kB [ebuild N ] x11-drivers/xf86-input-microtouch-1.0.0.5 USE="-debug" 214 kB [ebuild N ] x11-drivers/xf86-video-newport-0.1.4.1 USE="-debug" 236 kB [ebuild N ] x11-drivers/xf86-video-nsc-2.7.6.5 USE="-debug" 474 kB [ebuild N ] x11-drivers/xf86-input-calcomp-1.0.0.5 USE="-debug" 214 kB [ebuild N ] x11-libs/libXcursor-1.1.5.2-r1 USE="-debug" 219 kB [ebuild N ] x11-drivers/xf86-video-savage-2.0.2.3 USE="dri -debug" 275 kB [ebuild N ] x11-drivers/xf86-input-keyboard-1.0.1.3 USE="-debug" 214 kB [ebuild N ] x11-drivers/xf86-video-voodoo-1.0.0.5 USE="-debug" 227 kB [ebuild N ] x11-apps/xmodmap-1.0.0 USE="-debug" 87 kB [ebuild N ] x11-drivers/xf86-input-digitaledge-1.0.1.3 USE="-debug" 215 kB [ebuild N ] x11-drivers/xf86-video-i740-1.0.0.5 USE="-debug" 241 kB [ebuild N ] x11-drivers/xf86-video-fbdev-0.1.0.5 USE="-debug" 214 kB [ebuild N ] media-fonts/font-adobe-utopia-type1-1.0.1 203 kB [ebuild N ] x11-drivers/xf86-input-void-1.0.0.5 USE="-debug" 208 kB [ebuild N ] x11-drivers/xf86-input-aiptek-1.0.0.5 USE="-debug" 227 kB [ebuild N ] x11-libs/libXScrnSaver-1.0.1 USE="-debug" 208 kB [ebuild N ] x11-drivers/xf86-video-tdfx-1.1.1.3 USE="dri -debug" 255 kB [ebuild N ] x11-drivers/xf86-video-glint-1.0.1.3 USE="dri -debug" 326 kB [ebuild N ] x11-apps/xhost-1.0.0 USE="ipv6 -debug" 83 kB [ebuild N ] x11-libs/libXdamage-1.0.2.2 USE="-debug" 200 kB [ebuild N ] x11-drivers/xf86-input-hyperpen-1.0.0.5 USE="-debug" 217 kB [ebuild N ] app-doc/xorg-docs-1.0.1 USE="-debug -doc" 8,112 kB [ebuild N ] x11-drivers/xf86-input-citron-2.1.1.5 USE="-debug" 237 kB [ebuild N ] x11-drivers/xf86-video-tga-1.0.0.5 USE="-debug" 243 kB [ebuild N ] x11-drivers/xf86-video-vesa-1.0.1.3 USE="-debug" 218 kB [ebuild N ] x11-drivers/xf86-video-sisusb-0.7.1.3 USE="-debug" 275 kB [ebuild N ] x11-drivers/xf86-video-tseng-1.0.0.5 USE="-debug" 259 kB [ebuild N ] x11-drivers/xf86-video-v4l-0.0.1.5 USE="-debug" 216 kB [ebuild N ] x11-drivers/xf86-input-evdev-1.0.0.5 USE="-debug" 211 kB [ebuild N ] x11-drivers/xf86-video-cirrus-1.0.0.5 USE="-debug" 248 kB [ebuild N ] x11-drivers/xf86-video-neomagic-1.0.0.5 USE="-debug" 249 kB [ebuild N ] x11-drivers/xf86-video-cyrix-1.0.0.5 USE="-debug" 232 kB [ebuild N ] x11-drivers/xf86-input-ur98-1.0.0.5 USE="-debug" 212 kB [ebuild N ] x11-drivers/xf86-video-vmware-10.12.0.0 USE="-debug" 233 kB [ebuild N ] x11-drivers/synaptics-0.14.2 USE="-dlloader" 119 kB [ebuild N ] x11-drivers/xf86-input-dynapro-1.0.0.5 USE="-debug" 210 kB [ebuild N ] x11-drivers/xf86-input-magictouch-1.0.0.5 USE="-debug" 213 kB [ebuild N ] x11-drivers/xf86-video-s3virge-1.8.6.5 USE="-debug" 266 kB [ebuild N ] x11-drivers/xf86-input-jamstudio-1.0.0.5 USE="-debug" 208 kB [ebuild N ] x11-drivers/xf86-input-elographics-1.0.0.5 USE="-debug" 219 kB [ebuild N ] x11-drivers/xf86-video-imstt-1.0.0.5 USE="-debug" 217 kB [ebuild N ] x11-drivers/xf86-input-elo2300-1.0.0.5 USE="-debug" 213 kB [ebuild N ] x11-drivers/xf86-input-summa-1.0.0.5 USE="-debug" 217 kB [ebuild N ] x11-drivers/xf86-input-spaceorb-1.0.0.5 USE="-debug" 210 kB [ebuild N ] x11-misc/linuxwacom-0.6.7 USE="gtk2 -dlloader -gtk -sdk -tcltk -usb" 484 kB [ebuild N ] x11-drivers/xf86-input-palmax-1.0.0.5 USE="-debug" 212 kB [ebuild N ] x11-base/xorg-server-1.0.1-r4 USE="dri ipv6 -debug -minimal -xprint" 5,835 kB [ebuild N ] x11-proto/evieext-1.0.2 USE="-debug" 36 kB [ebuild N ] x11-proto/scrnsaverproto-1.0.2 USE="-debug" 37 kB [ebuild N ] x11-apps/xinit-1.0.1 USE="-debug" 90 kB [ebuild N ] x11-apps/xclock-1.0.1 USE="-debug -xprint" 97 kB [ebuild N ] x11-libs/libXft-2.1.8.2 USE="-debug" 239 kB [ebuild N ] x11-wm/twm-1.0.1 USE="-debug" 218 kB [ebuild N ] x11-apps/xrdb-1.0.1 USE="-debug" 83 kB [ebuild N ] media-libs/mesa-6.4.2-r1 USE="motif -debug" VIDEO_CARDS="-ati -i810 -mga -none -s3virge -savage -sis -tdfx -trident -via" 0 kB [ebuild N ] x11-libs/libdrm-2.0 USE="-debug" 362 kB [ebuild N ] x11-libs/openmotif-2.2.3-r9 0 kB It start compiling openmotif and fails on a compile error : [...] I18List.c: In function `CreateGCs': I18List.c:1935: error: `gray_bits' undeclared (first use in this function) I18List.c:1935: error: (Each undeclared identifier is reported only once I18List.c:1935: error: for each function it appears in.) I18List.c:1936: error: `gray_width' undeclared (first use in this function) I18List.c:1936: error: `gray_height' undeclared (first use in this function) make[2]: *** [I18List.lo] Error 1 make[2]: Leaving directory `/var/tmp/portage/openmotif-2.2.3-r9/work/openMotif-2.2.3/lib/Xm' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/openmotif-2.2.3-r9/work/openMotif-2.2.3/lib' make: *** [all-recursive] Error 1 !!! ERROR: x11-libs/openmotif-2.2.3-r9 failed. Call stack: ebuild.sh, line 1894: Called dyn_compile ebuild.sh, line 941: Called src_compile !!! make failed, if you have lesstif installed removed it, compile openmotif and recompile lesstif !!! If you need support, post the topmost build error, and the call stack if relevant. Somebody on irc helped me fix this error by telling me to emerge x11-misc/xbitmaps first, and it did fix the error. Dependency should be updated for this package.
RDEPEND="virtual/libc || ( ( x11-libs/libXmu x11-libs/libXaw x11-libs/libXp ) virtual/x11 ) >=x11-libs/motif-config-0.9" DEPEND="${RDEPEND} >=sys-apps/sed-4 !ppc-macos? ( =sys-devel/automake-1.4* ) =sys-devel/autoconf-2.5* || ( ( x11-proto/printproto x11-proto/xextproto x11-misc/xbitmaps <== HERE! ) virtual/x11 )"