Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105252 - sys-apps/util-linux won't build - error at partx: addpart.c and delpart.c on inclusion of blkpg.h, tested on 2.6.11 and 2.6.13
Summary: sys-apps/util-linux won't build - error at partx: addpart.c and delpart.c on ...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-08 06:42 UTC by Michal Turecki
Modified: 2005-09-08 12:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Turecki 2005-09-08 06:42:07 UTC
make[1]: Leaving directory `/var/tmp/portage/util-linux-2.12q-r1/work/util-
linux-2.12q/text-utils'
i686-pc-linux-gnu-gcc -s -O3 -march=athlon-xp -mmmx -msse -m3dnow -pipe -fomit-
frame-pointer -mfpmath=sse,387 -ffast-math -fprefetch-loop-arrays -fmove-all-
movables   -c -o addpart.o addpart.c
i686-pc-linux-gnu-gcc -s -O3 -march=athlon-xp -mmmx -msse -m3dnow -pipe -fomit-
frame-pointer -mfpmath=sse,387 -ffast-math -fprefetch-loop-arrays -fmove-all-
movables   -c -o delpart.o delpart.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: 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
make: *** Waiting for unfinished jobs....
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

!!! ERROR: sys-apps/util-linux-2.12q-r1 failed.
!!! Function src_compile, Line 123, Exitcode 2
!!! make partx failed
!!! If you need support, post the topmost build error, NOT this status message.


Reproducible: Always
Steps to Reproduce:
[ebuild     U ] sys-apps/util-linux-2.12q-r1 [2.12b] +crypt +nls -old-crypt +pam 
+perl (-selinux) -static
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2005-09-08 08:45:17 UTC
please provide `emerge --info`
Comment 2 Michal Turecki 2005-09-08 11:53:12 UTC
here is emerge --info :
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.5-
r0, uclibc-0.9.27-r0, 2.6.11-too i686)
=================================================================
System uname: 2.6.11-too i686 AMD Athlon(tm)
Gentoo Base System version 1.6.11
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.1-r2
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.5
sys-devel/binutils:  2.15.92.0.2-r8
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.4.22
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-s -O3 -march=athlon-xp -mmmx -msse -m3dnow -pipe -fomit-frame-pointer -
mfpmath=sse,387 -ffast-math -fprefetch-loop-arrays -fmove-all-movables"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/
X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/alias /var/
qmail/control /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-s -O3 -march=athlon-xp -mmmx -msse -m3dnow -pipe -fomit-frame-pointer 
-mfpmath=sse,387 -ffast-math -fprefetch-loop-arrays -fmove-all-movables"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.mirror.icd.hu/ http://src.gentoo.pl ftp://ftp.tu-
clausthal.de/pub/linux/gentoo/ ftp://130.59.10.34/mirror/gentoo/ ftp://ftp-stud.
fht-esslingen.de/pub/Mirrors/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex 3dnowext X aac acpi adns alsa apache2 apm asm authdaemond 
avi berkdb bitmap-fonts blender-game bonobo bzip2 bzlib calendar cdb cdr codecs 
cpdflib crypt css cups curl dba divx4linux djbfft dts dv dvb dvd dvdr dvdread 
eds emboss encode esd exif extensions fam fastcgi flac foomaticdb force-cgi-
redirect fortran freetds ftp gd gd-external gdbm gif glitz gnome gpm gstreamer 
gtk gtk2 hal icq imagemagick imap imlib ipalias ipv6 jpeg kde libg++ libwww lzo 
mad maildir mikmod mime ming mjpeg mmx mmx2 mmxext mng mozilla mp3 mpeg mplayer 
mysql ncurses nls nomotif nvidia ogg oggvorbis opengl oscar oss pam pcntl pdflib 
perl php png pop postgres python quicktime readline real samba sasl sblive 
scanner sdl session sftplogging slang spell sse ssl tcpd tiff truetype truetype-
fonts type1-fonts usb v4l v4l2 vchroot vhosts vorbis wmf xattr xml xml2 xv xvid 
zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 3 Michal Turecki 2005-09-08 11:55:33 UTC
PS. OS Headers are 2.6.13 now, despite system is still running on 2.6.11. Both 
tested kernels are unpatched kernel.org ones.
Comment 4 Michal Turecki 2005-09-08 12:42:18 UTC
Problem resolved, sorry for not knowing emerge info.
Headers known to portage was too old:
virtual/os-headers:  2.4.22
but manually installed are 2.6 and util-linux as one of probably few
packages needed headers version to configure properly.