Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36227 - emerge sys-apps/util-linux-2.11z-r8 fails
Summary: emerge sys-apps/util-linux-2.11z-r8 fails
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-21 03:50 UTC by Klaus Kusche
Modified: 2003-12-27 07:33 UTC (History)
2 users (show)

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 Klaus Kusche 2003-12-21 03:50:15 UTC
gcc -march=pentium3 -mcpu=pentium4 -mmmx -msse -O3 -fforce-addr -pipe -I../lib -Wall -Wmissing-prototypes -Wstrict-prototypes -DNCH=1  -DDISABLE_NLS -D_FILE_OFFSET_BITS=64 -DSBINDIR=\"/sbin\" -DUSRSBINDIR=\"/usr/sbin\" -DLOGDIR=\"/var/log\" -DVARPATH=\"/var\" -DLOCALEDIR=\"/usr/share/locale\" -march=pentium3 -mcpu=pentium4 -mmmx -msse -O3 -fforce-addr -pipe  -s  blockdev.c   -o blockdev
blockdev.c:70: parse error before '[' token
blockdev.c:70: initializer element is not constant
blockdev.c:70: (near initialization for `bdcms[4].ioc')
blockdev.c:70: initializer element is not constant
blockdev.c:70: (near initialization for `bdcms[4]')
blockdev.c:73: parse error before '[' token
blockdev.c:73: initializer element is not constant
blockdev.c:73: (near initialization for `bdcms[5].ioc')
blockdev.c:73: initializer element is not constant
blockdev.c:73: (near initialization for `bdcms[5]')
blockdev.c:76: initializer element is not constant
blockdev.c:76: (near initialization for `bdcms[6]')
blockdev.c:79: initializer element is not constant
blockdev.c:79: (near initialization for `bdcms[7]')
blockdev.c:82: initializer element is not constant
blockdev.c:82: (near initialization for `bdcms[8]')
blockdev.c:85: initializer element is not constant
blockdev.c:85: (near initialization for `bdcms[9]')
blockdev.c:89: initializer element is not constant
blockdev.c:89: (near initialization for `bdcms[10]')
blockdev.c: In function `report_device':
blockdev.c:331: parse error before '[' token
make[1]: *** [blockdev] Error 1
make[1]: Leaving directory `/var/tmp/portage/util-linux-2.11z-r8/work/util-linux-2.11z/disk-utils'
make: *** [all] Error 1

gcc 3.1.1-r1, glibc 2.2.5-r9, gentoo-dev-sources 2.6.0_beta11-r1, linux-headers 2.6.0_beta11
Comment 1 Gustavo Felisberto (RETIRED) gentoo-dev 2003-12-27 03:57:44 UTC
I have more or less the same problem:

gcc -march=i586 -O3 -pipe -I../lib -Wall -Wmissing-prototypes -Wstrict-prototypes -DNCH=1   -D_FILE_OFFSET_BITS=64 -DSBINDIR=\"/sbin\" -DUSRSBINDIR=\"/usr/sbin\" -DLOGDIR=\"/var/log\" -DVARPATH=\"/var\" -DLOCALEDIR=\"/usr/share/locale\" -march=i586 -O3 -pipe  -s  mkswap.c   -o mkswap
gcc -march=i586 -O3 -pipe -I../lib -Wall -Wmissing-prototypes -Wstrict-prototypes -DNCH=1   -D_FILE_OFFSET_BITS=64 -DSBINDIR=\"/sbin\" -DUSRSBINDIR=\"/usr/sbin\" -DLOGDIR=\"/var/log\" -DVARPATH=\"/var\" -DLOCALEDIR=\"/usr/share/locale\" -march=i586 -O3 -pipe  -s  blockdev.c   -o blockdev
blockdev.c:70: parse error before `['
blockdev.c:70: initializer element is not constant
blockdev.c:70: (near initialization for `bdcms[4].ioc')
blockdev.c:73: parse error before `['
blockdev.c:73: initializer element is not constant
blockdev.c:73: (near initialization for `bdcms[5].ioc')
blockdev.c: In function `report_device':
blockdev.c:331: parse error before `['
make[1]: *** [blockdev] Error 1
make[1]: Leaving directory `/var/tmp/portage/util-linux-2.11z-r8/work/util-linux-2.11z/disk-utils'
make: *** [all] Error 1

!!! ERROR: sys-apps/util-linux-2.11z-r8 failed.


My emerge info:
www util-linux # emerge info
Portage 2.0.49-r15 (default-1.0, gcc-2.95.3, glibc-2.2.5-r4,2.2.5-r9, 2.6.0)
=================================================================
System uname: 2.6.0 i686 Celeron (Mendocino)
Gentoo Base System version 1.4.3.10p1
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=i586 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=i586 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox autoaddcvs ccache"
GENTOO_MIRRORS="http://felisberto.net/pub/gentoo/ http://gentoo.felisberto.net/ http://ftp.dei.uc.pt/pub/linux/gentoo/ http://gentoo.aeminium.org ftp://ibiblio.org/pub/linux/distributions/gentoo/ http://mirrors.twobit.net/gentoo http://gentoo.oregonstate.edu/ "
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://127.0.0.1/gentoo-portage/"
USE="x86 oss apm crypt imlib jpeg libg++ mikmod mmx ncurses pdflib quicktime sdl spell truetype xml2 xv berkdb gdbm gif gpm guile libwww mysql nls oggvorbis pam perl png python readline slang ssl svga tcpd tiff ppds samba usb cups imap snmp gd -opengl -apache2 -motif -mpeg -avi -alsa -arts -encode -java -esd -xmms -X -gtk -gnome -alsa -kde -qt xfs -tcltk -maildir mbox -doc ipv6 -3dnow zlib"

Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-12-27 07:33:01 UTC
Problem is the version linux-headers used.  Please use util-linux-2.12-r3 if
you intend to use 2.6 linux-headers.  The other alternative is to use 2.4
headers with 2.6 kernel (which does work fine), but I would recommend that you
use _unstable_ tree if you intend on using 2.6, etc, as that is where the work
are done to get 2.6 working.