Subject: lossage with libc: errlist.c, siglist.c
To: None <current-users@netbsd.org>
From: Jonathan Stone <jonathan@DSG.Stanford.EDU>
List: current-users
Date: 12/05/1998 15:59:36
With today's sup, on a pmax, i get the following errors building libc:

Cuisinart# make -k DESTDIR=/cuisinart/build libc.a
cc -O -DALL_STATE -O2 -pipe -fPIC -I/usr/src/lib/libc/arch/mips -nostdinc -idirafter /cuisinart/build/usr/include -DPIC -DABICALLS -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Werror   -D_LIBC -DNLS -DYP -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -I/usr/src/lib/libc/include -D__DBINTERFACE_PRIVATE -DRESOLVSORT -DPOSIX_MISTAKE -DFLOATING_POINT -nostdinc -idirafter /cuisinart/build/usr/include -c /usr/src/lib/libc/gen/_sys_errlist.c
In file included from /usr/src/lib/libc/gen/_sys_errlist.c:29:
/usr/src/lib/libc/gen/errlist.c:45: redefinition of `__evoke_link_warning_sys_errlist'
/usr/src/lib/libc/gen/errlist.c:45: `__evoke_link_warning_sys_errlist' previously defined here
/usr/src/lib/libc/gen/errlist.c:47: redefinition of `__evoke_link_warning___sys_errlist'
/usr/src/lib/libc/gen/errlist.c:47: `__evoke_link_warning___sys_errlist' previously defined here
/usr/src/lib/libc/gen/errlist.c:50: redefinition of `__evoke_link_warning_sys_nerr'
/usr/src/lib/libc/gen/errlist.c:50: `__evoke_link_warning_sys_nerr' previously defined here
/usr/src/lib/libc/gen/errlist.c:52: redefinition of `__evoke_link_warning___sys_nerr'
/usr/src/lib/libc/gen/errlist.c:52: `__evoke_link_warning___sys_nerr' previously defined here
*** Error code 1 (continuing)
cc -O -DALL_STATE -O2 -pipe -fPIC -I/usr/src/lib/libc/arch/mips -nostdinc -idirafter /cuisinart/build/usr/include -DPIC -DABICALLS -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Werror   -D_LIBC -DNLS -DYP -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -I/usr/src/lib/libc/include -D__DBINTERFACE_PRIVATE -DRESOLVSORT -DPOSIX_MISTAKE -DFLOATING_POINT -nostdinc -idirafter /cuisinart/build/usr/include -c /usr/src/lib/libc/gen/_sys_siglist.c
In file included from /usr/src/lib/libc/gen/_sys_siglist.c:25:
/usr/src/lib/libc/gen/siglist.c:45: redefinition of `__evoke_link_warning_sys_siglist'
/usr/src/lib/libc/gen/siglist.c:45: `__evoke_link_warning_sys_siglist' previously defined here
/usr/src/lib/libc/gen/siglist.c:47: redefinition of `__evoke_link_warning___sys_siglist'
/usr/src/lib/libc/gen/siglist.c:47: `__evoke_link_warning___sys_siglist' previously defined here
*** Error code 1 (continuing)
`libc.a' not remade because of errors.

(and the same thing with libc_p.a and libc_pic.a).

Looks the __warn_references() in errlist.c and siglist.c (which get
included twice by __sys_errlist.c and _sys_siglist.c, respectively) is
causing duplicate warnings.  Does that not cause errors with the a.out
toolchain?