New ati-drivers-8.19.10 fail to build DRM module. The error I get: /var/tmp/portage/ati-drivers-8.18.8-r1/work/common/lib/modules/fglrx/build_mod/firegl_public.c:2264: error: dereferencing pointer to incomplete type /var/tmp/portage/ati-drivers-8.18.8-r1/work/common/lib/modules/fglrx/build_mod/firegl_public.c:2265: error: dereferencing pointer to incomplete type I checked everything and module seems to compile directly from the ati package, after a few whiles of investigation the thing that caused the problem appeared to be a patch: fglrx-2.6.14-compat_ioctl.patch If I remove this patch ati-drivers emerge without problems. Reproducible: Always Steps to Reproduce: 1.emerge ati-drivers Actual Results: I get the error while compiling kernel module Expected Results: Kernel module should be build Portage 2.0.51.22-r3 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r3, 2.6.13-gentoo-r5 x86_64) ================================================================= System uname: 2.6.13-gentoo-r5 x86_64 AMD Turion(tm) 64 Mobile ML-28 Gentoo Base System version 1.6.13 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.15.92.0.2-r10 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -pipe -fomit-frame-pointer -O2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -pipe -fomit-frame-pointer -O2" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LANG="en_US.utf8" LC_ALL="en_US.utf8" LINGUAS="en pl" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X acpi alsa audiofile avi bash-completion berkdb bitmap-fonts bzip2 cdr crypt cups curl dvd dvdread eds emboss encode exif expat extras fam ffmpeg foomaticdb fortran gdbm gif gmp gnome gpm gstreamer gtk gtk2 iconv idn ieee1384 imagemagic imagemagick imlib ipv6 java jpeg junit kde lcms lua lzw lzw-tiff mad mng mp3 mpeg ncurses nls nptl ogg oggvorbis opengl pam pcre pdflib perl png python qt quicktime readline samba sdl slang spell ssl svg tcltk tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales vorbis xine xml xml2 xpm xv xvid zlib linguas_en linguas_pl userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, MAKEOPTS
*** Bug 112463 has been marked as a duplicate of this bug. ***
I can confirm this on my machine.
Confirmed here. Removing the patch allows the driver to build.
removing it then