From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 24968 invoked from network); 22 Dec 1998 21:37:57 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 22 Dec 1998 21:37:57 -0000 Received: from delta.ds2.pg.gda.pl (macro@delta.ds2.pg.gda.pl [153.19.170.1]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id QAA00796 for ; Tue, 22 Dec 1998 16:25:35 -0500 Received: from localhost (macro@localhost) by delta.ds2.pg.gda.pl (8.8.8/8.8.8) with SMTP id WAA16759; Tue, 22 Dec 1998 22:24:03 +0100 (MET) Date: Tue, 22 Dec 1998 22:24:02 +0100 (MET) From: "Maciej W. Rozycki" Reply-To: "Maciej W. Rozycki" To: axp-list@redhat.com cc: Jay Estabrook , util-linux@math.uio.no Subject: Re: problem compiling util-linux-2.9 In-Reply-To: Message-ID: Organization: Technical University of Gdansk MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 22 Dec 1998, Tom Holroyd wrote: > Don't know if this is an alpha problem or not, but ran into it while > preparing for 2.1.132 (which requires util-linux-2.9 mount). > > AlphaPC164LX kernel 2.1.131 egcs-1.1.1 > > In util-linux-2.9/sys-utils: > > gcc -c -O3 -fomit-frame-pointer -I. -I../lib -Wall -DNCH=0 > -I/usr/include/slang -DSBINDIR=\"/sbin\" -DUSRSBINDIR=\"/usr/sbin\" > -DLOGDIR=\"/var/log\" -DVARPATH=\"/var\" hwclock.c -o hwclock.o > In file included from /usr/include/asm/io.h:6, > from hwclock.c:109: > /usr/include/asm/machvec.h:56: parse error before `*' > /usr/include/asm/machvec.h:58: parse error before `*' > /usr/include/asm/machvec.h:60: parse error before `*' > /usr/include/asm/machvec.h:63: parse error before `value' > /usr/include/asm/machvec.h:65: parse error before `value' > /usr/include/asm/machvec.h:67: parse error before `value' > /usr/include/asm/machvec.h:80: parse error before `vector' > > /usr/include/asm/machvec.h:56&57 are: > int (*hose_read_config_byte)(u8, u8, u8, u8 *value, > struct linux_hose_info *); This seems to be a problem with Alpha/Linux kernel headers. From what I see I conclude is a kernel only header file, which is of no use to userland. But it is included indirectly by , which includes . According to Linus' policy the best solution would be to remove the inclusion of from . All kernel .c files that need should include themselves. Alternatively 'struct alpha_machine_vector' could be declared only if __KERNEL__ were defined, but this looks ugly to me. As a temporary solution for compiling util-linux, just add "-D__ALPHA_MACHVEC_H" to your CFLAGS. -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available +