Subject: Trouble with asun's netatalk on NetBSD 1.4
To: None <port-mac68k@netbsd.org>
From: William R. Dickson <wrd@awenet.com>
List: port-mac68k
Date: 05/26/1999 11:12:11
Hi all,

I realize Adrian's modified netatalk is a work in progress, but it's
worked quite well for me up until now, and the nature of the error makes
me think it might be a problem with a NetBSD header file.  Not that I know
enough to tell, but it can't hurt to ask, eh?

Here's the error:

gcc -I../../sys/netbsd/ -I/usr/include/kerberosIV -DBSD4_4  -O2
-I../../include  -DAPPLCNAME  -c status.c
In file included from /usr/include/vm/vm_object.h:74,
                 from /usr/include/vm/vm.h:68,
                 from /usr/include/sys/sysctl.h:51,
                 from status.c:15:
/usr/include/vm/vm_page.h:202: field `pmseg' has incomplete type
*** Error code 1

Stop.


Any ideas on that?  This appears to be the section of vm_page.h in
question:

struct vm_physseg {
    vaddr_t         start;          /* PF# of first page in segment */
    vaddr_t         end;            /* (PF# of last page in segment) + 1
*/
    vaddr_t         avail_start;    /* PF# of first free page in segment
*/
    vaddr_t         avail_end;      /* (PF# of last free page in segment)
+1  */
    int     free_list;              /* which free list they belong on */
    struct  vm_page *pgs;           /* vm_page structures (from start) */
    struct  vm_page *lastpg;        /* vm_page structure for end */
    struct  pmap_physseg pmseg;     /* pmap specific (MD) data */
}; 

The final "struct" statement is line 202.

-Bill

-- 
 William R. Dickson -- Consuming the Earth's limited resources since 1968
 wrd@awenet.com   < >   http://www.awenet.com/~wrd/   < >   ICQ: 14117523

     Writer's block is a fancy term made up by whiners so they can have
     an excuse to drink alcohol.

				       - Steve Martin