Subject: Help compiling i386 kernel pls.: Elf32_Ehdr
To: None <current-users@NetBSD.ORG>
From: D. <G.D.Timuss@uea.ac.uk>
List: current-users
Date: 10/31/1996 11:51:54
Greetings,

I've gone over my source tree countless times in the last 10 days or so, and
have rebuilt and reinstalled every part of -current, but keep getting the
following error when compiling the kernel with COMPAT_LINUX:

cc  -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -I. -I../../../../arch -I../../../.. -nostdinc -DI586_CPU -DDUMMY_NOPS -DXSERVER -DUCONSOLE -DINSECURE -DMACHINE_NONCONTIG -DTIMEZONE="0" -DDST="0" -DSWAPPAGER -DVNODEPAGER -DDEVPAGER -DDIAGNOSTIC -DSYSVMSG -DSYSVSEM -DSYSVSHM -DCOMPAT_NOMID -DCOMPAT_09 -DCOMPAT_10 -DCOMPAT_11 -DCOMPAT_43 -DTCP_COMPAT_42 -DCOMPAT_LINUX -DCOMPAT_FREEBSD -DUSER_LDT -DLKM -DFFS -DMFS -DMSDOSFS -DFDESC -DFIFO -DKERNFS -DNULLFS -DPROCFS -DINET -DMAXUSERS=24 -D_KERNEL  -Di386  -c ../../../../kern/exec_conf.c
In file included from ../../../../kern/exec_conf.c:61:
../../../../compat/linux/linux_exec.h:71: syntax error before `Elf32_Ehdr'
cc1: warnings being treated as errors
../../../../compat/linux/linux_exec.h:72: warning: function declaration isn't a prototype
*** Error code 1

Stop.
/usr/src/sys/arch/i386/compile/PROZAC oak7a.vlg1# 

The error makes sense in that linux_exec.h looks wrong to me (from an ANSI
header point of view), but nobody else seems to be complaining about it.

Anyone have any ideas?

Gary

-- 
Gary.Timuss@Engr.UVic.CA
G.D.Timuss@uea.ac.uk
http://www.engr.uvic.ca/~gtimuss/