Subject: Re: Build failure - lib csu (under ELF)
To: None <port-hp300@netbsd.org>
From: hp300 NetBSD list <hp300@mrynet.com>
List: port-hp300
Date: 01/07/2001 21:55:22
Whups, posted this to the wrong list... The perils of being multi-platform.

> On Sat, Jan 06, 2001 at 11:21:59PM -0600, NetBSD list wrote:
> > I'm getting the following after updating my hp300 to ELF (Don't know
> > if it happens on a non-ELF system):
>
>Err, looks as if your .mk files didn't get updated -- it's trying
>to build ld.aout_so, which it shouldn't do.
>
>-- 
>        -- Jason R. Thorpe <thorpej@zembu.com>

To which .mk files would you be referring?   In case you meant them, I've just 
reinstalled the /usr/share/mk files (via cd /usr/src/share/mk;make install) 
and verified they match the source tree.  I've cleaned the source tree again, 
re-supped and I'm still getting the following on a build:

includes ===> regress/usr.bin
includes ===> regress/usr.bin/m4
(cd /usr/src/lib/csu &&  make   MKSHARE=no dependall &&  make  MKSHARE=no install)
dependall ===> m68k
mkdep -a  -DLIBC_SCCS -I/usr/src/lib/csu/m68k/../common_aout crt0.c
cc -O2  -Werror   -DLIBC_SCCS -I/usr/src/lib/csu/m68k/../common_aout -c -DCRT0 -DDYNAMIC
/usr/src/lib/csu/m68k/crt0.c -o crt0.o
cc1: warnings being treated as errors
In file included from /usr/src/lib/csu/m68k/crt0.c:117:
/usr/src/lib/csu/m68k/../common_aout/common.c:41: warning: `struct crt_ldso' declared inside parameter list
/usr/src/lib/csu/m68k/../common_aout/common.c:41: warning: its scope is only this definition or declaration,
/usr/src/lib/csu/m68k/../common_aout/common.c:41: warning: which is probably not what you want.
/usr/src/lib/csu/m68k/../common_aout/common.c: In function `__load_rtld':
/usr/src/lib/csu/m68k/../common_aout/common.c:48: storage size of `crt' isn't known
/usr/src/lib/csu/m68k/../common_aout/common.c:139: `CRT_VERSION_BSD_4' undeclared (first use in this function)
/usr/src/lib/csu/m68k/../common_aout/common.c:139: (Each undeclared identifier is reported only once
/usr/src/lib/csu/m68k/../common_aout/common.c:139: for each function it appears in.)
/usr/src/lib/csu/m68k/../common_aout/common.c:144: `CRT_VERSION_BSD_3' undeclared (first use in this function)
/usr/src/lib/csu/m68k/../common_aout/common.c:147: dereferencing pointer to incomplete type
/usr/src/lib/csu/m68k/../common_aout/common.c:150: dereferencing pointer to incomplete type
/usr/src/lib/csu/m68k/../common_aout/common.c: In function `dlopen':
/usr/src/lib/csu/m68k/../common_aout/common.c:174: dereferencing pointer to incomplete type
/usr/src/lib/csu/m68k/../common_aout/common.c: In function `dlclose':
/usr/src/lib/csu/m68k/../common_aout/common.c:184: dereferencing pointer to incomplete type
/usr/src/lib/csu/m68k/../common_aout/common.c: In function `dlsym':
/usr/src/lib/csu/m68k/../common_aout/common.c:195: dereferencing pointer to incomplete type
/usr/src/lib/csu/m68k/../common_aout/common.c: In function `dlctl':
/usr/src/lib/csu/m68k/../common_aout/common.c:206: dereferencing pointer to incomplete type
/usr/src/lib/csu/m68k/../common_aout/common.c: In function `dlerror':
/usr/src/lib/csu/m68k/../common_aout/common.c:215: dereferencing pointer to incomplete type
/usr/src/lib/csu/m68k/../common_aout/common.c: In function `dladdr':
/usr/src/lib/csu/m68k/../common_aout/common.c:226: dereferencing pointer to incomplete type
/usr/src/lib/csu/m68k/../common_aout/common.c:229: dereferencing pointer to incomplete type
*** Error code 1

Additionally, I went ahead and rebuilt make(1).   Just grasping at straws
with that one.  Any more direction on what I should check?  Or is this
perhaps an actual source issue?

Thanks,
-s