* problem compiling util-linux-2.9
@ 1998-12-22 9:49 Tom Holroyd
1998-12-22 21:24 ` Maciej W. Rozycki
0 siblings, 1 reply; 4+ messages in thread
From: Tom Holroyd @ 1998-12-22 9:49 UTC (permalink / raw)
To: axp-list; +Cc: util-linux
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 *);
Dr. Tom Holroyd
I would dance and be merry,
Life would be a ding-a-derry,
If I only had a brain.
-- The Scarecrow
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: problem compiling util-linux-2.9
1998-12-22 9:49 problem compiling util-linux-2.9 Tom Holroyd
@ 1998-12-22 21:24 ` Maciej W. Rozycki
1998-12-24 3:31 ` Tom Holroyd
0 siblings, 1 reply; 4+ messages in thread
From: Maciej W. Rozycki @ 1998-12-22 21:24 UTC (permalink / raw)
To: axp-list; +Cc: Jay Estabrook, util-linux
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 +
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: problem compiling util-linux-2.9
1998-12-22 21:24 ` Maciej W. Rozycki
@ 1998-12-24 3:31 ` Tom Holroyd
1998-12-24 7:52 ` Bob Taylor
0 siblings, 1 reply; 4+ messages in thread
From: Tom Holroyd @ 1998-12-24 3:31 UTC (permalink / raw)
To: Maciej W. Rozycki; +Cc: axp-list, Jay Estabrook, util-linux
On Tue, 22 Dec 1998, Maciej W. Rozycki wrote:
> As a temporary solution for compiling util-linux, just add
>"-D__ALPHA_MACHVEC_H" to your CFLAGS.
Yes, this gets hwclock to compile. Of course, hwclock still doesn't work.
I haven't tried it with CONFIG_RTC yet, though, but I will.
The direct I/O code says:
iopl(3) returned nonzero return code -1.
hwclock doesn't seem to include any of the special alpha clock patches
that are required (and it doesn't support -A).
Dr. Tom Holroyd
I would dance and be merry,
Life would be a ding-a-derry,
If I only had a brain.
-- The Scarecrow
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: problem compiling util-linux-2.9
1998-12-24 3:31 ` Tom Holroyd
@ 1998-12-24 7:52 ` Bob Taylor
0 siblings, 0 replies; 4+ messages in thread
From: Bob Taylor @ 1998-12-24 7:52 UTC (permalink / raw)
To: axp-list
In message <Pine.LNX.3.96.981224122217.1041A-100000@bhalpha1.nibh.go.jp>, Tom H
olroyd writes:
cc: axp-list@redhat.com, Jay Estabrook <Jay.Estabrook@digital.com>,
util-linux@math.UIO.NO
> On Tue, 22 Dec 1998, Maciej W. Rozycki wrote:
>
> > As a temporary solution for compiling util-linux, just add
> >"-D__ALPHA_MACHVEC_H" to your CFLAGS.
>
> Yes, this gets hwclock to compile. Of course, hwclock still doesn't work.
> I haven't tried it with CONFIG_RTC yet, though, but I will.
>
> The direct I/O code says:
> iopl(3) returned nonzero return code -1.
>
> hwclock doesn't seem to include any of the special alpha clock patches
> that are required (and it doesn't support -A).
Hm. On my Red Hat 5.1, I have clock and not hwclock. Does this help?
Bob
--
+---------------------------------------------------------------+
| Bob Taylor Email: brtaylor@inreach.com |
|---------------------------------------------------------------|
| Like the ad says, at 300 dpi you can tell she's wearing a |
| swimsuit. At 600 dpi you can tell it's wet. At 1200 dpi you |
| can tell it's painted on. I suppose at 2400 dpi you can tell |
| if the paint is giving her a rash. (So says Joshua R. Poulson)|
+---------------------------------------------------------------+
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1998-12-24 8:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-12-22 9:49 problem compiling util-linux-2.9 Tom Holroyd
1998-12-22 21:24 ` Maciej W. Rozycki
1998-12-24 3:31 ` Tom Holroyd
1998-12-24 7:52 ` Bob Taylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox