Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Sep 2002 14:57:05 +0200
From:      Hanspeter Roth <hanspeter_roth@hotmail.com>
To:        freebsd-current@FreeBSD.ORG
Subject:   Re: current make depend: 'ar_args' has incomplete type help
Message-ID:  <20020928145705.A12212@snoopy.cablecom.ch>
In-Reply-To: <3D94718D.1080702@mail.gddsn.org.cn>; from wsk@ns.gddsn.org.cn on Fri, Sep 27, 2002 at 10:56:13PM %2B0800
References:  <3D94718D.1080702@mail.gddsn.org.cn>

next in thread | previous in thread | raw e-mail | index | archive | help
  On Sep 27 at 22:56, wsk spoke:

> 
> folks:
> after succeed buildworld ,i custom mykernel and get the error messages 
> from make depend.
[...]
> In file included from ../../../sys/buf.h:271,
>                  from ../../../i386/i386/genassym.c:46:
> ../../../sys/proc.h:117: field `ar_args' has incomplete type

I had the same. I tried to build and install the kernel first.
Maybe, it's because you have an old compiler installed.
Try installing world first.

Alternatively you might try to patch proc.h.

--- proc.h      Fri Sep 27 22:09:29 2002
+++ proc.h.orig Fri Sep 27 21:49:33 2002
@@ -114,7 +114,7 @@
 struct pargs {
        u_int   ar_ref;         /* Reference count. */
        u_int   ar_length;      /* Length. */
-       u_char  *ar_args;       /* Arguments. */
+       u_char  ar_args[];      /* Arguments. */
 };
 
 /*-

-Hanspeter

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020928145705.A12212>