From owner-freebsd-sparc64@FreeBSD.ORG Wed Sep 3 00:49:58 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1605416A4BF for ; Wed, 3 Sep 2003 00:49:58 -0700 (PDT) Received: from FreeBSD.nctu.edu.tw (FreeBSD.nctu.edu.tw [140.113.27.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7FDDC43FFD for ; Wed, 3 Sep 2003 00:49:57 -0700 (PDT) (envelope-from edwardc@FreeBSD.nctu.edu.tw) Received: by FreeBSD.nctu.edu.tw (Postfix, from userid 1028) id 57C4D22504; Wed, 3 Sep 2003 15:49:43 +0800 (CST) Date: Wed, 3 Sep 2003 15:49:43 +0800 From: Edward Ping-Da Chuang To: freebsd-sparc64@freebsd.org Message-ID: <20030903074943.GA10372@FreeBSD.nctu.edu.tw> Mime-Version: 1.0 Content-Type: text/plain; charset=big5 Content-Disposition: inline User-Agent: Mutt/1.5.4i Subject: Re: sparc64/56286: Broken world in 5.1-CURRENT under Sparc64 platform X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Sep 2003 07:49:58 -0000 Hi All, I've found the solution for this PR that I submitted few days before, it's seems to be some function prototype delcare different with new code. The diff is following: --- /usr/src/sys/sys/mac.h.old Wed Sep 3 08:31:42 2003 +++ /usr/src/sys/sys/mac.h Wed Sep 3 08:31:32 2003 @@ -86,7 +86,7 @@ int mac_get_pid(pid_t _pid, mac_t _label); int mac_get_proc(mac_t _label); int mac_is_present(const char *_policyname); -int mac_prepare(mac_t *_label, char *_elements); +int mac_prepare(struct mac **mac, const char *elements); int mac_prepare_file_label(mac_t *_label); int mac_prepare_ifnet_label(mac_t *_label); int mac_prepare_process_label(mac_t *_label); Also, I've noticed the some error message while making world that will have error occour like this: /usr/obj/usr/src/sparc64/usr/include/varargs.h:34:2: #error " is obsolete with this version of GCC." /usr/obj/usr/src/sparc64/usr/include/varargs.h:35:2: #error "Change your code to use instead." I've attached the diff for these file,too. After these changes, I've complete the make world successfully, please check it out. Regards, Ed --- /usr/src/usr.bin/lock/lock.c.old Wed Sep 3 09:13:36 2003 +++ /usr/src/usr.bin/lock/lock.c Wed Sep 3 09:14:05 2003 @@ -70,7 +70,11 @@ #include #include #include -#include +#ifdef __STDC__ + #include +#else + #include +#endif #define TIMEOUT 15 --- /usr/src/libexec/ftpd/popen.c.old Wed Sep 3 08:23:35 2003 +++ /usr/src/libexec/ftpd/popen.c Wed Sep 3 08:33:05 2003 @@ -58,7 +58,11 @@ #include "pathnames.h" #include #include -#include +#ifdef __STDC__ + #include +#else + #include +#endif #define MAXUSRARGS 100 #define MAXGLOBARGS 1000 --- /usr/src/libexec/rpc.rquotad/rquotad.c.old Wed Sep 3 08:49:24 2003 +++ /usr/src/libexec/rpc.rquotad/rquotad.c Wed Sep 3 08:54:54 2003 @@ -28,7 +28,11 @@ #include #include -#include +#ifdef __STDC__ + #include +#else + #include +#endif #include #include