[OpenAFS-devel] OpenAFS-1.2.8 on sunx86_59 works
Alf Wachsmann
alfw@SLAC.Stanford.EDU
Fri, 31 Jan 2003 14:37:19 -0800 (PST)
Hi,
I got OpenAFS-1.2.8 compiled and running on sunx86_59 with only the
obvious changes (see below).
The machine is a UP system - I haven't tried MP yet.
The x86/Solaris version is Generic_112234-03 (December '02 release).
The compiler was: Sun WorkShop 6 update 2 C 5.3 2001/05/15
The only one binary that failed to compile is openafs-1.2.8/src/login/login.c
The error message is appended below.
-- Alf.
=================================
Here the list of changes I made:
cp ./src/config/Makefile.sun4x_58.in ./src/config/param.sunx86_59.h
cp ./src/config/param.sunx86_58_usr.h ./src/config/Makefile.sunx86_59
cp ./src/config/param.sunx86_58.h ./src/config/param.sunx86_59_usr.h
--- openafs-1.2.8/src/config/param.sunx86_58.h Wed Jul 10 12:57:43 2002
+++ openafs-1.2.8/src/config/param.sunx86_59.h Mon Jan 27 12:43:05 2003
@@ -25,6 +25,7 @@
#define AFS_SUN56_ENV 1
#define AFS_SUN57_ENV 1
#define AFS_SUN58_ENV 1
+#define AFS_SUN59_ENV 1
#define AFS_X86_ENV 1
#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
@@ -47,9 +48,9 @@
#define AFS_MOUNT_AFS "afs"
/* Machine / Operating system information */
-#define sys_sunx86_58 1
-#define SYS_NAME "sunx86_58"
-#define SYS_NAME_ID SYS_NAME_ID_sunx86_58
+#define sys_sunx86_59 1
+#define SYS_NAME "sunx86_59"
+#define SYS_NAME_ID SYS_NAME_ID_sunx86_59
#define AFSLITTLE_ENDIAN 1
#define AFS_HAVE_FFS 1 /* Use system's ffs. */
#define AFS_HAVE_VXFS 1 /* Support cache on Veritas vxfs file system */
--- openafs-1.2.8/src/config/afs_sysnames.h.orig Fri Jan 31 14:25:38 2003
+++ openafs-1.2.8/src/config/afs_sysnames.h Fri Jan 31 14:25:32 2003
@@ -88,6 +88,7 @@
they won't allocate sunx86 IDs at all. So leave a gap and pray. */
#define SYS_NAME_ID_sunx86_57 950
#define SYS_NAME_ID_sunx86_58 951
+#define SYS_NAME_ID_sunx86_59 952
#define SYS_NAME_ID_vax_ul4 1003
#define SYS_NAME_ID_vax_ul40 1004
=================================
Here the error I get compiling login.c:
/opt/SUNWspro/bin/cc -g -dy -Bdynamic -I/var/tmp/openafs-1.2.8/src/config -I/var/tmp/openafs-1.2.8/include -I/usr/include -I/usr/include/sys -c login.c
"login.c", line 210: warning: initializer does not fit or is out of range: 255
"login.c", line 303: warning: initializer does not fit or is out of range: 0xffffffff
"login.c", line 948: warning: argument #7 is incompatible with prototype:
prototype: pointer to int : "/var/tmp/openafs-1.2.8/include/afs/kautils.h", line 276
argument : pointer to long
"login.c", line 1261: warning: argument #2 is incompatible with prototype:
prototype: pointer to long : "/usr/include/unistd.h", line 272
argument : pointer to int
"login.c", line 1264: warning: argument #2 is incompatible with prototype:
prototype: pointer to long : "/usr/include/unistd.h", line 272
argument : pointer to int
"login.c", line 1275: warning: argument #2 is incompatible with prototype:
prototype: pointer to const long : "/usr/include/unistd.h", line 409
argument : pointer to int
"login.c", line 1876: syntax error before or at: inline
"login.c", line 1876: warning: useless declaration
"login.c", line 1878: syntax error before or at: static
"login.c", line 1899: warning: syntax error: empty declaration
"login.c", line 1901: parameter not in identifier list: c
"login.c", line 1901: cannot initialize parameter: c
"login.c", line 1901: warning: statement not reached
"login.c", line 1902: syntax error before or at: default
"login.c", line 1907: parameter not in identifier list: ptr
"login.c", line 1907: syntax error before or at: ++
"login.c", line 1907: parameter not in identifier list: c
"login.c", line 1909: undefined symbol: envbuf
"login.c", line 1909: parameter not in identifier list: envbuf
"login.c", line 1909: syntax error before or at: )
"login.c", line 1914: parameter not in identifier list: exit
"login.c", line 1921: parameter not in identifier list: doremotelogin
"login.c", line 1921: cannot recover from previous errors
cc: acomp failed for login.c
make: *** [login.o] Error 2
-----------------------------------------------------------------------
Alf Wachsmann | e-mail: alfw@slac.stanford.edu
SLAC Computing Service | Phone: +1-650-926-4802
2575 Sand Hill Road, M/S 97 | FAX: +1-650-926-3329
Menlo Park, CA 94025, USA | Office: Bldg. 50/323
-----------------------------------------------------------------------
http://www.slac.stanford.edu/~alfw (PGP)
-----------------------------------------------------------------------