Subject: Re: Buid error - port-alpha - gawk
To: Jason Thorpe <thorpej@nas.nasa.gov>
From: enami tsugutomo <enami@sm.sony.co.jp>
List: current-users
Date: 08/16/1999 14:28:25
Jason Thorpe <thorpej@nas.nasa.gov> writes:

> your fix was not correct.  I have fixed the cpu.h header file.

And your fix introduces the another bug :-).  On alpha, ld.elf_so
doesn't compile as follows (since machine/alpha_cpu.h is no longer
included via sys/param.h; previously, it was included through
machine/param.h -> machine/cpu.h -> machine/frame.h ->
machine/alpha_cpu.h):

enami@page-fault% make
cc -O2  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Werror   -fpic -mno-fp-regs -DELFSIZE=64 -Wall -DLIBDIR=\"/usr/lib\" -D_PATH_RTLD=\"/usr/libexec/ld.elf_so\" -I/usr/src/libexec/ld.elf_so -DDEBUG -DRTLD_LOADER -D_RTLD_SOURCE -c /usr/src/libexec/ld.elf_so/map_object.c
/usr/src/libexec/ld.elf_so/map_object.c: In function `_rtld_map_object':
/usr/src/libexec/ld.elf_so/map_object.c:66: `ALPHA_PGSHIFT' undeclared (first use in this function)
/usr/src/libexec/ld.elf_so/map_object.c:66: (Each undeclared identifier is reported only once

enami.