Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
To: axp-list@redhat.com
Cc: Jay Estabrook <Jay.Estabrook@digital.com>, util-linux@math.uio.no
Subject: Re: problem compiling util-linux-2.9
Date: Tue, 22 Dec 1998 22:24:02 +0100 (MET)	[thread overview]
Message-ID: <Pine.GSO.3.96.981222221259.1821C-100000@delta.ds2.pg.gda.pl> (raw)
In-Reply-To: <Pine.LNX.3.96.981222184130.3840A-100000@bhalpha1.nibh.go.jp>

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 <asm/machvec.h> is a kernel only header file, which is of
no use to userland.  But it is included indirectly by <sys/io.h>, which
includes <asm/io.h>.

 According to Linus' policy the best solution would be to remove the
inclusion of <asm/machvec.h> from <asm/io.h>.  All kernel .c files that
need <asm/io.h> should include <asm/machvec.h> 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        +


  reply	other threads:[~1998-12-22 21:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-22  9:49 problem compiling util-linux-2.9 Tom Holroyd
1998-12-22 21:24 ` Maciej W. Rozycki [this message]
1998-12-24  3:31   ` Tom Holroyd
1998-12-24  7:52     ` Bob Taylor
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox