Subject: Various kernel compilation problems (void *, vm_offset_t)
To: None <port-pmax@netbsd.org>
From: Erik Bertelsen <erik@mediator.uni-c.dk>
List: port-pmax
Date: 01/15/1999 09:27:55
With sources sup'ed yesterday, I get the following compilation errors
when building a NetBSD/pmax-current kernel on my DS5000. They seem
to be mostly related to void * arithmetic, but also with the recent
vm_addr_t/vm_offset_t updates. No fixes attached, sorry.

best regards
Erik Bertelsen


cc  -O2 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wno-uninitialized  -Wpointer-arith -Wno-main -mno-abicalls -mno-half-pic -I. -I../../../../arch -I../../../.. -nostdinc -DMIPS1 -DNKMEMCLUSTERS=1024 -DHZ=256 -DMAXUSERS=64 -D_KERNEL  -D__pmax__ -Dpmax -G0  -c ../../../../dev/tc/stic.c
cc1: warnings being treated as errors
../../../../dev/tc/stic.c: In function `stic_init':
../../../../dev/tc/stic.c:175: warning: pointer of type `void *' used in arithmetic
../../../../dev/tc/stic.c:176: warning: pointer of type `void *' used in arithmetic
../../../../dev/tc/stic.c:182: warning: pointer of type `void *' used in arithmetic
../../../../dev/tc/stic.c:183: warning: pointer of type `void *' used in arithmetic
*** Error code 1 (continuing)
cc  -O2 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wno-uninitialized  -Wpointer-arith -Wno-main -mno-abicalls -mno-half-pic -I. -I../../../../arch -I../../../.. -nostdinc -DMIPS1 -DNKMEMCLUSTERS=1024 -DHZ=256 -DMAXUSERS=64 -D_KERNEL  -D__pmax__ -Dpmax -G0  -c ../../../../dev/tc/asc_ioasic.c
cc1: warnings being treated as errors
../../../../dev/tc/asc_ioasic.c: In function `asc_ioasic_match':
../../../../dev/tc/asc_ioasic.c:87: warning: pointer of type `void *' used in arithmetic
../../../../dev/tc/asc_ioasic.c: In function `asc_ioasic_attach':
../../../../dev/tc/asc_ioasic.c:115: warning: pointer of type `void *' used in arithmetic
*** Error code 1 (continuing)
cc  -O2 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wno-uninitialized  -Wpointer-arith -Wno-main -mno-abicalls -mno-half-pic -I. -I../../../../arch -I../../../.. -nostdinc -DMIPS1 -DNKMEMCLUSTERS=1024 -DHZ=256 -DMAXUSERS=64 -D_KERNEL  -D__pmax__ -Dpmax -G0  -c ../../../../dev/tc/asc_tc.c
cc1: warnings being treated as errors
../../../../dev/tc/asc_tc.c: In function `asc_tc_match':
../../../../dev/tc/asc_tc.c:71: warning: pointer of type `void *' used in arithmetic
../../../../dev/tc/asc_tc.c: In function `asc_tc_attach':
../../../../dev/tc/asc_tc.c:100: warning: pointer of type `void *' used in arithmetic
../../../../dev/tc/asc_tc.c:111: warning: pointer of type `void *' used in arithmetic
../../../../dev/tc/asc_tc.c:112: warning: pointer of type `void *' used in arithmetic
*** Error code 1 (continuing)
cc  -O2 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wno-uninitialized  -Wpointer-arith -Wno-main -mno-abicalls -mno-half-pic -I. -I../../../../arch -I../../../.. -nostdinc -DMIPS1 -DNKMEMCLUSTERS=1024 -DHZ=256 -DMAXUSERS=64 -D_KERNEL  -D__pmax__ -Dpmax -G0  -c ../../../../arch/pmax/dev/qvss_compat.c
../../../../arch/pmax/dev/qvss_compat.c: In function `fbmmap_fb':
../../../../arch/pmax/dev/qvss_compat.c:476: syntax error before `addr'
../../../../arch/pmax/dev/qvss_compat.c:483: `len' undeclared (first use in this function)
../../../../arch/pmax/dev/qvss_compat.c:483: (Each undeclared identifier is reported only once
../../../../arch/pmax/dev/qvss_compat.c:483: for each function it appears in.)
../../../../arch/pmax/dev/qvss_compat.c:483: `vm_offset_t' undeclared (first use in this function)
../../../../arch/pmax/dev/qvss_compat.c:483: syntax error before `fbu'
../../../../arch/pmax/dev/qvss_compat.c:484: syntax error before `)'
../../../../arch/pmax/dev/qvss_compat.c:486: `addr' undeclared (first use in this function)
../../../../arch/pmax/dev/qvss_compat.c:486: syntax error before `0x20000000'
../../../../arch/pmax/dev/qvss_compat.c:497: syntax error before `0'
../../../../arch/pmax/dev/qvss_compat.c:505: syntax error before `fbu'
*** Error code 1 (continuing)
cc  -O2 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wno-uninitialized  -Wpointer-arith -Wno-main -mno-abicalls -mno-half-pic -I. -I../../../../arch -I../../../.. -nostdinc -DMIPS1 -DNKMEMCLUSTERS=1024 -DHZ=256 -DMAXUSERS=64 -D_KERNEL  -D__pmax__ -Dpmax -G0  -c ../../../../arch/pmax/dev/fb.c
../../../../arch/pmax/dev/fb_usrreq.c: In function `fbmmap':
In file included from ../../../../arch/pmax/dev/fb.c:252:
../../../../arch/pmax/dev/fb_usrreq.c:254: `vm_offset_t' undeclared (first use in this function)
../../../../arch/pmax/dev/fb_usrreq.c:254: (Each undeclared identifier is reported only once
../../../../arch/pmax/dev/fb_usrreq.c:254: for each function it appears in.)
../../../../arch/pmax/dev/fb_usrreq.c:254: syntax error before `fi'
../../../../arch/pmax/dev/fb_usrreq.c:255: syntax error before `)'
making sure the compat library is up to date...
`libcompat.a' is up to date.
making sure the kern library is up to date...
`libkern.a' is up to date.
*** Error code 1 (continuing)
`all' not remade because of errors.