[OpenAFS-devel] 1.3.71 on AIX 5.2 with VAC 6.0
Harald Barth
haba@pdc.kth.se
Mon, 18 Oct 2004 02:14:18 +0200 (MEST)
----Next_Part(Mon_Oct_18_02_14_18_2004_632)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
While compiling something that resembles current, I found the
following small type error and usage of __func__. If using C99
features, you have to tell xlc_r that you do. What flavour of C is the
source supposed to be anyway?
Harald.
----Next_Part(Mon_Oct_18_02_14_18_2004_632)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="patch.no-sloppy-c"
Index: src/ubik/uinit.c
===================================================================
RCS file: /cvs/openafs/src/ubik/uinit.c,v
retrieving revision 1.6
diff -u -r1.6 uinit.c
--- src/ubik/uinit.c 13 Oct 2004 01:07:37 -0000 1.6
+++ src/ubik/uinit.c 18 Oct 2004 00:04:34 -0000
@@ -57,7 +57,7 @@
ugen_ClientInit(int noAuthFlag, char *confDir, char *cellName, afs_int32 sauth,
struct ubik_client **uclientp, int (*secproc) (),
char *funcName, afs_int32 gen_rxkad_level,
- afs_int32 maxservers, afs_int32 serviceid, afs_int32 deadtime,
+ afs_int32 maxservers, char *serviceid, afs_int32 deadtime,
afs_uint32 server, afs_uint32 port, afs_int32 usrvid)
{
afs_int32 code, scIndex, i;
Index: src/libuafs/MakefileProto.AIX.in
===================================================================
RCS file: /cvs/openafs/src/libuafs/MakefileProto.AIX.in,v
retrieving revision 1.8
diff -u -r1.8 MakefileProto.AIX.in
--- src/libuafs/MakefileProto.AIX.in 18 Apr 2004 06:10:33 -0000 1.8
+++ src/libuafs/MakefileProto.AIX.in 18 Oct 2004 00:04:34 -0000
@@ -30,7 +30,9 @@
LIBAFSWEB = nsafs.a
LIBAFSWEBKRB = nsafs.krb.a
-OPTF=-O
+# To get __file__ (afs_osi_pag.c) you need to specify language level
+# C99 to xlc_r like this:
+OPTF=-O -qlanglvl=stdc99
WEBOPTS = -I../nsapi -qarch=com -DNETSCAPE_NSAPI -DAIX -DNET_SSL -DXP_UNIX -DMCC_HTTPD
include Makefile.common
----Next_Part(Mon_Oct_18_02_14_18_2004_632)----