sparc64/56286: Broken world in 5.1-CURRENT under Sparc64
platform
Edward Ping-Da Chuang
edwardc at FreeBSD.nctu.edu.tw
Wed Sep 3 00:49:58 PDT 2003
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 "<varargs.h> is obsolete with this version of GCC."
/usr/obj/usr/src/sparc64/usr/include/varargs.h:35:2:
#error "Change your code to use <stdarg.h> 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 <syslog.h>
#include <termios.h>
#include <unistd.h>
-#include <varargs.h>
+#ifdef __STDC__
+ #include <stdarg.h>
+#else
+ #include <varargs.h>
+#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 <syslog.h>
#include <time.h>
-#include <varargs.h>
+#ifdef __STDC__
+ #include <stdarg.h>
+#else
+ #include <varargs.h>
+#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 <unistd.h>
#include <syslog.h>
-#include <varargs.h>
+#ifdef __STDC__
+ #include <stdarg.h>
+#else
+ #include <varargs.h>
+#endif
#include <ufs/ufs/quota.h>
#include <rpc/rpc.h>
More information about the freebsd-sparc64
mailing list