[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compiler version requirement wrong

From: Kars de Jong
Subject: Compiler version requirement wrong
Date: Fri, 06 Aug 2004 23:33:21 +0200

Hello everyone,

I'm new to this list. I'd like to add support for the Motorola 680x0
series of CPUs and systems to GRUB 2. At first this will probably be for
HP9000/300 series workstations, because they don't have a Linux
bootloader yet, and I happen to own one :-)

When exploring the project I noticed the build requirements appear to be
wrong: the current CVS version doesn't build with gcc version 2.95.4
20011002 (Debian prerelease) (which is the compiler delivered with
Debian Woody (stable)).

When compiling fs/ext2.c I get the following error:

gcc -Ifs -I../fs -I. -Iinclude -I../include -Wall -W 
-DGRUB_DATADIR=\"/usr/local/share/grub/i386-pc\" -g -O2 -DGRUB_UTIL=1  -c -o 
grub_setup-fs_ext2.o ../fs/ext2.c
../fs/ext2.c:135: warning: unnamed struct/union that defines no instances
../fs/ext2.c: In function `grub_ext2_get_file_block':
../fs/ext2.c:189: structure has no member named `blocks'
../fs/ext2.c:196: structure has no member named `blocks'
../fs/ext2.c:213: structure has no member named `blocks'
../fs/ext2.c:184: warning: `blknr' might be used uninitialized in this function
../fs/ext2.c: In function `grub_ext2_find_file':
../fs/ext2.c:483: structure has no member named `symlink'
../fs/ext2.c: In function `grub_ext2_dir':
../fs/ext2.c:644: parse error before `int'
../fs/ext2.c:655: `ino' undeclared (first use in this function)
../fs/ext2.c:655: (Each undeclared identifier is reported only once
../fs/ext2.c:655: for each function it appears in.)
../fs/ext2.c:671: `fpos' undeclared (first use in this function)
make: *** [grub_setup-fs_ext2.o] Error 1

With gcc-3.0 it does build.

The problem lies at line 135. No idea how to solve it though, other than naming 
the union.

Kind regards,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]