From: Alex Davis <alex14641@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: Issues with linux-2.6.2
Date: Fri, 6 Feb 2004 13:22:05 -0800 (PST) [thread overview]
Message-ID: <20040206212205.46151.qmail@web40501.mail.yahoo.com> (raw)
I have a few issues with 2.6.2. Ths first issue is when upgrading from 2.4, I had to create
the symlinks:
ln -s /usr/include/asm /usr/src/linux/include/asm-i386
ln -s /usr/include/asm-generic /usr/src/linux/include/asm-generic
This requirement was not mentioned in any documentation I could find.
The second issue is when trying to build util-linux-2.11z I get the following error:
cc -pipe -O2 -mcpu=i486 -fomit-frame-pointer -I../lib -Wall -Wmissing-prototypes
-Wstrict-prototypes -I/usr/include/ncurses -DNCH=0 -D_FILE_OFFSET_BITS=64 -DSBINDIR=\"/sbin\"
-DUSRSBINDIR=\"/usr/sbin\" -DLOGDIR=\"/var/log\" -DVARPATH=\"/var\"
-DLOCALEDIR=\"/usr/share/locale\" -O2 -s blockdev.c -o blockdev
blockdev.c:70: error: parse error before '[' token
blockdev.c:70: error: initializer element is not constant
blockdev.c:70: error: (near initialization for `bdcms[4].ioc')
blockdev.c:70: error: initializer element is not constant
blockdev.c:70: error: (near initialization for `bdcms[4]')
blockdev.c:73: error: parse error before '[' token
blockdev.c:73: error: initializer element is not constant
blockdev.c:73: error: (near initialization for `bdcms[5].ioc')
blockdev.c:73: error: initializer element is not constant
blockdev.c:73: error: (near initialization for `bdcms[5]')
blockdev.c:76: error: initializer element is not constant
blockdev.c:76: error: (near initialization for `bdcms[6]')
blockdev.c:79: error: initializer element is not constant
blockdev.c:79: error: (near initialization for `bdcms[7]')
blockdev.c:82: error: initializer element is not constant
blockdev.c:82: error: (near initialization for `bdcms[8]')
blockdev.c:85: error: initializer element is not constant
blockdev.c:85: error: (near initialization for `bdcms[9]')
blockdev.c:89: error: initializer element is not constant
blockdev.c:89: error: (near initialization for `bdcms[10]')
blockdev.c: In function `report_device':
blockdev.c:331: error: parse error before '[' token
make: *** [blockdev] Error 1
It seems there is a problem with the BLKBSZGET and the BLKBSZSET macros defined in
linux/include/linux/fs.h.
They both indirectly call the _IOC_TYPECHECK macro, which is defined in
linux/include/asm-386/ioctl.h thusly:
#define _IOC_TYPECHECK(t) \
((sizeof(t) == sizeof(t[1]) && \
sizeof(t) < (1 << _IOC_SIZEBITS)) ? \
sizeof(t) : __invalid_size_argument_for_IOC)
The problem is that _IOC_TYPECHECK is being called with a constant value (size_t), making the
array indexing attempt illegal. Using gcc -E, BLKBSZGET expands to:
(((2U) << (((0 +8)+8)+14)) | (((0x12)) << (0 +8)) | (((112)) << 0) | (((((sizeof(sizeof(int)) ==
sizeof(sizeof(int)[1]) && sizeof(sizeof(int)) < (1 << 14)) ? sizeof(sizeof(int)) :
^^^^^^^^^^^^^^ // illegal.
__invalid_size_argument_for_IOC))) << ((0 +8)+8)))
Is this a known problem?
=====
I code, therefore I am
__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html
next reply other threads:[~2004-02-06 21:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-06 21:22 Alex Davis [this message]
2004-02-06 21:35 ` Valdis.Kletnieks
2004-02-09 22:09 ` Ed Tomlinson
2004-02-06 21:37 ` Andries Brouwer
2004-02-09 17:41 ` Mike Black
2004-02-09 18:59 ` Andries Brouwer
-- strict thread matches above, loose matches on Subject: below --
2004-02-09 17:57 Alex Davis
2004-02-06 21:21 Alex Davis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040206212205.46151.qmail@web40501.mail.yahoo.com \
--to=alex14641@yahoo.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®