Subject: lint error during build
To: None <current-users@netbsd.org>
From: Olaf Seibert <rhialto@polderland.nl>
List: current-users
Date: 09/30/2000 00:27:59
While building -current (supped) (with make -k), I get the following
error:


lint -chapbxzF -d /vol1/rhialto/destdir.alpha/usr/include -D_LIBC -DNLS -DYP -DHESIOD -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -I/vol1/rhialto/sup/root/src/lib/libc/include -DINET6 -D__DBINTERFACE_PRIVATE -I/vol1/rhialto/sup/root/src/lib/libc/../../libexec/ld.elf_so -I/vol1/rhialto/sup/root/src/lib/libc/dlfcn -DRESOLVSORT -I. -DPOSIX_MISTAKE -DPORTMAP -DFLOATING_POINT -i /vol1/rhialto/sup/root/src/lib/libc/dlfcn/dlfcn_elf.c
/vol1/rhialto/sup/root/src/lib/libc/../../libexec/ld.elf_so/rtld.h(198): warning: nonportable bit-field type
/vol1/rhialto/sup/root/src/lib/libc/../../libexec/ld.elf_so/rtld.h(199): warning: nonportable bit-field type
/vol1/rhialto/sup/root/src/lib/libc/../../libexec/ld.elf_so/rtld.h(200): warning: nonportable bit-field type
/vol1/rhialto/sup/root/src/lib/libc/../../libexec/ld.elf_so/rtld.h(202): warning: nonportable bit-field type
/vol1/rhialto/sup/root/src/lib/libc/../../libexec/ld.elf_so/rtld.h(204): warning: nonportable bit-field type
/vol1/rhialto/sup/root/src/lib/libc/../../libexec/ld.elf_so/rtld.h(206): incomplete structure or union link_map: linkmap
*** Error code 1 (continuing)

struct link_map is defined in <link_elf.h>, which is conditionally
compiled (on __ELF__) from <link.h>.
Note that this is only lint, and compilation succeeds, but the result is
nevertheless that later on, I get

[libc.so.12.62.1 being built, fortunately, then]
`realall' not remade because of errors.
dependall ===> libcompat
[... much later, libc.so.12.62.1 being installed, and a second lint

attempt:]
lint -chapbxzF -d /vol1/rhialto/destdir.alpha/usr/include -D_LIBC -DNLS -DYP -DHESIOD -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -I/vol1/rhialto/sup/root/src/lib/libc/include -DINET6 -D__DBINTERFACE_PRIVATE -I/vol1/rhialto/sup/root/src/lib/libc/../../libexec/ld.elf_so -I/vol1/rhialto/sup/root/src/lib/libc/dlfcn -DRESOLVSORT -I. -DPOSIX_MISTAKE -DPORTMAP -DFLOATING_POINT -i /vol1/rhialto/sup/root/src/lib/libc/dlfcn/dlfcn_elf.c
/vol1/rhialto/sup/root/src/lib/libc/../../libexec/ld.elf_so/rtld.h(198): warning: nonportable bit-field type
/vol1/rhialto/sup/root/src/lib/libc/../../libexec/ld.elf_so/rtld.h(199): warning: nonportable bit-field type
/vol1/rhialto/sup/root/src/lib/libc/../../libexec/ld.elf_so/rtld.h(200): warning: nonportable bit-field type
/vol1/rhialto/sup/root/src/lib/libc/../../libexec/ld.elf_so/rtld.h(202): warning: nonportable bit-field type
/vol1/rhialto/sup/root/src/lib/libc/../../libexec/ld.elf_so/rtld.h(204): warning: nonportable bit-field type
/vol1/rhialto/sup/root/src/lib/libc/../../libexec/ld.elf_so/rtld.h(206): incomplete structure or union link_map: linkmap
*** Error code 1 (continuing)
install -r -p -c   -o root  -g wheel  -m 444  /vol1/rhialto/sup/root/src/lib/libc/obj.alpha/tags /vol1/rhialto/destdir.alpha/var/db/libc.tags
`install' not remade because of errors.
install ===> libcompat

[ and another attempt: ]

dependall ===> lib/libc
lint -chapbxzF -d /vol1/rhialto/destdir.alpha/usr/include -D_LIBC -DNLS -DYP -DHESIOD -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -I/vol1/rhialto/sup/root/src/lib/libc/include -DINET6 -D__DBINTERFACE_PRIVATE -I/vol1/rhialto/sup/root/src/lib/libc/../../libexec/ld.elf_so -I/vol1/rhialto/sup/root/src/lib/libc/dlfcn -DRESOLVSORT -I. -DPOSIX_MISTAKE -DPORTMAP -DFLOATING_POINT -i /vol1/rhialto/sup/root/src/lib/libc/dlfcn/dlfcn_elf.c
/vol1/rhialto/sup/root/src/lib/libc/../../libexec/ld.elf_so/rtld.h(198): warning: nonportable bit-field type
/vol1/rhialto/sup/root/src/lib/libc/../../libexec/ld.elf_so/rtld.h(199): warning: nonportable bit-field type
/vol1/rhialto/sup/root/src/lib/libc/../../libexec/ld.elf_so/rtld.h(200): warning: nonportable bit-field type
/vol1/rhialto/sup/root/src/lib/libc/../../libexec/ld.elf_so/rtld.h(202): warning: nonportable bit-field type
/vol1/rhialto/sup/root/src/lib/libc/../../libexec/ld.elf_so/rtld.h(204): warning: nonportable bit-field type
/vol1/rhialto/sup/root/src/lib/libc/../../libexec/ld.elf_so/rtld.h(206): incomplete structure or union link_map: linkmap
nroff -Tascii -mandoc /vol1/rhialto/sup/root/src/lib/libc/db/man/btree.3 > btree.cat3
nroff -Tascii -mandoc /vol1/rhialto/sup/root/src/lib/libc/db/man/dbopen.3 > dbopen.cat3
[...]
*** Error code 1 (continuing)
`realall' not remade because of errors.

I suppose lint does not get __ELF__ predefined whereas cc does? It does
seem to be predefined in cpp - maybe lint doesn't use it?

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert - rhialto@polder    -- Ah only did well at school
\X/ land.nl       -- tae git intae an O level class tae git away fae Begbie.
Hi! I am a .signature virus. Copy me into your .signature to help me spread.