Compiling util-linux-1.21i-r1 fails with headers of gentoo-dev-sources-2.6.10-r4 installed in /usr/{asm,asm-generic,linux}. Reproducible: Always Steps to Reproduce: 1. emerge gentoo-dev-source-2.6.10-r4 2. build kernel, copy include directories asm, asm-generic, linux to /usr/include 3. emerge util-linux-1.21i-r1 Actual Results: make aborted with compile errors. Expected Results: Compile & install util-linux-1.21i-r1. Compiler output: --- gcc -O2 -pipe -march=pentium3 -fomit-frame-pointer -c -o addpart.o addpart.c In file included from addpart.c:6: /usr/include/linux/blkpg.h:36: error: variable or field `__user' declared void /usr/include/linux/blkpg.h:36: error: syntax error before '*' token addpart.c: In function `main': addpart.c:11: error: storage size of `a' isn't known make: *** [addpart.o] Error 1 !!! ERROR: sys-apps/util-linux-2.12i-r1 failed. --- emerge info: --- Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r4 i686) ================================================================= System uname: 2.6.10-gentoo-r4 i686 Intel(R) Celeron(TM) CPU 1200MHz Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -pipe -march=pentium3 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe -march=pentium3 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms userpriv usersandbox" GENTOO_MIRRORS="http://www.gigaload.org/gentoo.org/ http://ftp.easynet.nl/mirror/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp.du.se/pub/os/gentoo http://mir.zyrianes.net/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 apache2 apm audiofile avi bash-completion berkdb bitmap-fonts bzlib cdr crypt cups curl dvd encode fftw flac foomaticdb fortran ftp gd gdbm gif gmp gtk2 imagemagick imlib ipv6 java jikes jpeg libwww mad maildir mhash mikmod mmx mng motif mpeg mysql ncurses oggvorbis oss pam pcntl pcre pdflib perl php png python readline recode samba sndfile sockets sox speex spell spl sse ssl tcpd tiff truetype usb vhosts wmf xml xml2 xmms xvid zlib"
Sorry, got util-linux' version number wrong. Version of util-linux with this problem: 2.12i-r1
dont do that
I got same problem. Portage 2.0.51.19 (!/usr/portage/profiles/default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20041102-r1, 2.6.10-gentoo-r6 i686) ================================================================= System uname: 2.6.10-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar 30 2005, 02:02:38)] distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" CHOST="i686-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/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" DISTDIR="/home/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/home/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X acpi alsa avi bash-completion bitmap-fonts cdr curl dvdr emboss encode fam fbcon foomaticdb fortran gif gpm gtk gtk2 imagemagick imlib java jpeg libg++ libwww mad mikmod mmx mmx2 motif mozilla mp3 mpeg ncurses nptl nvidia oggvorbis opengl pdflib pic png quicktime readline samba sdl spell sse sse2 svga truetype truetype-fonts type1-fonts xml xml2 xmms xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
i686-pc-linux-gnu-gcc -O2 -march=pentium4 -fomit-frame-pointer -c -o partx.o partx.c In file included from delpart.c:6: /usr/include/linux/blkpg.h:36: error: variable or field `__user' declared void /usr/include/linux/blkpg.h:36: error: parse error before '*' token delpart.c: In function `main': delpart.c:11: error: storage size of `a' isn't known make: *** [delpart.o] Error 1 make: *** Waiting for unfinished jobs.... In file included from addpart.c:6: /usr/include/linux/blkpg.h:36: error: variable or field `__user' declared void /usr/include/linux/blkpg.h:36: error: parse error before '*' token addpart.c: In function `main': addpart.c:11: error: storage size of `a' isn't known make: *** [addpart.o] Error 1 In file included from partx.c:41: /usr/include/linux/blkpg.h:36: error: variable or field `__user' declared void /usr/include/linux/blkpg.h:36: error: parse error before '*' token partx.c: In function `main': partx.c:102: error: storage size of `a' isn't known make: *** [partx.o] Error 1