Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: unknown type name 'paddr_t'



Ryosuke Moro wrote:
>/etc/mk.conf: MKRUMP=no
>
># ./build.sh -j4 distribution
>
>
>--- dependall-tests ---
>In file included from /usr/src/sys/kern/subr_extent.c:60:0:
>/usr/obj/destdir.i386/usr/include/sys/pool.h:212:2: error: unknown type name 'paddr_t'
>  paddr_t pcgo_pa;  /* object physical address */
>  ^
>*** [subr_extent.o] Error code 1

I fixed this in my tree with this patch:

Index: Makefile
===================================================================
RCS file: /cvsroot/src/tests/kernel/Makefile,v
retrieving revision 1.38
diff -u -r1.38 Makefile
--- Makefile    23 Jan 2016 21:22:48 -0000      1.38
+++ Makefile    15 Feb 2016 08:21:33 -0000
@@ -46,8 +46,8 @@
 .PATH:                 ${NETBSDSRCDIR}/sys/kern
 TESTS_C+=              t_extent
 SRCS.t_extent=         t_extent.c subr_extent.c
-CPPFLAGS.t_extent.c=   -D_EXTENT_TESTING -D__POOL_EXPOSE
-CPPFLAGS.subr_extent.c=        -D_EXTENT_TESTING -D__POOL_EXPOSE
+CPPFLAGS.t_extent.c=   -D_EXTENT_TESTING -D__POOL_EXPOSE -D_KERNTYPES
+CPPFLAGS.subr_extent.c=        -D_EXTENT_TESTING -D__POOL_EXPOSE -D_KERNTYPES
 
 t_subr_prf.c: gen_t_subr_prf ${NETBSDSRCDIR}/sys/kern/subr_prf.c
        ${HOST_SH} ${.ALLSRC} ${.TARGET}

Robert Swindells





Home | Main Index | Thread Index | Old Index