* Error in aboot-0.7(a) source
@ 2000-09-09 14:40 G. Hugh Song
2000-09-09 16:52 ` Michal Jaegermann
0 siblings, 1 reply; 2+ messages in thread
From: G. Hugh Song @ 2000-09-09 14:40 UTC (permalink / raw)
During the make, I got:
===============================
gcc -I/usr/local/src/aboot-0.7a/include -I/usr/src/linux/include
-D__ASSEMBLY__ -traditional -c -o head.o head.S
gcc -I/usr/local/src/aboot-0.7a/include -I/usr/src/linux/include
-D__KERNEL__ -mcpu=ev4 -Os -Wall -mno-fp-regs -ffixed-8 -c -o aboot.o
aboot.c
aboot.c: In function `first_block':
aboot.c:98: invalid type argument of `->'
make: *** [aboot.o] Error 1
================================
I just cannot imagine that the developer of aboot package for Alpha
can make such a error in the C source. Unfortunately, I do not
know C enough. The segment of aboot.c is as follows:
========================================
if (!elf_check_arch(elf->e_machine)) {
printf("aboot: ELF executable not for this machine\n");
return -1;
}
======================================
Would you please debug the above source?
Am I using a wrong version of linux/elf.h or something?
Thank you very much.
--
G. Hugh Song
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Error in aboot-0.7(a) source
2000-09-09 14:40 Error in aboot-0.7(a) source G. Hugh Song
@ 2000-09-09 16:52 ` Michal Jaegermann
0 siblings, 0 replies; 2+ messages in thread
From: Michal Jaegermann @ 2000-09-09 16:52 UTC (permalink / raw)
G. Hugh Song (ghsong@nospam.com) wrote:
: aboot.c
: aboot.c: In function `first_block':
: aboot.c:98: invalid type argument of `->'
: make: *** [aboot.o] Error 1
Something got very confused. Probably by some weird macro expansion.
: The segment of aboot.c is as follows:
: ========================================
: if (!elf_check_arch(elf->e_machine)) {
: printf("aboot: ELF executable not for this machine\n");
: return -1;
: }
: ======================================
The fragment looks innocent enough. Probably you have somehow messed
up headers. You can try check that with a help of an '-E' flag to
your compiler by checking a captured output.
: Would you please debug the above source?
???
: Am I using a wrong version of linux/elf.h or something?
Probably. Likely "something".
A recompiled source and binary rpm packages of aboot 0.7a for alpha,
plus a minor fix, can be retrieved from ftp://ftp.harddata.com/pub/aboot*
Michal
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-09-09 16:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-09-09 14:40 Error in aboot-0.7(a) source G. Hugh Song
2000-09-09 16:52 ` Michal Jaegermann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox