[OpenAFS-devel] PATCH: cmdline aklog on OSX (yes really)

Troy Benjegerdes hozer@hozed.org
Wed, 16 Feb 2005 19:26:14 -0600


This is a MIME-formatted message.  If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_kalmia.hozed.org-9066-1108603574-0001-2
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Wed, Feb 16, 2005 at 07:24:44PM -0600, Troy Benjegerdes wrote:
> Attached is a patch to cvs openafs/src/aklog and a Makefile that I just 
> built a working command line aklog with.

I'm an idiot, this time it should be attached.

--=_kalmia.hozed.org-9066-1108603574-0001-2
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=Makefile

#
# $Id: Makefile.in,v 1.9 1999/09/10 18:47:04 kenh Exp $
#
# This is the Makefile for the AFS-Kerberos 5 Migration Kit.  See the
# directions below for the meaning of each flag.
#

#
# Support obj directories
#

srcdir = .
include /afs/scl.ameslab.gov/user/troy/krb/openafs-cvs/src/config/Makefile.config


PROGS= aklog 

AKLOG_OBJS=aklog.o aklog_main.o aklog_param.o krb_util.o linked_list.o 

LIBS= \
	${TOP_LIBDIR}/libcom_err.a \
	${TOP_LIBDIR}/libsys.a \
	${TOP_LIBDIR}/libprot.a \
	${TOP_LIBDIR}/libubik.a \
	${TOP_LIBDIR}/libauth.a \
	${TOP_LIBDIR}/librxkad.a \
	${TOP_LIBDIR}/librx.a \
	${TOP_LIBDIR}/liblwp.a \
	${TOP_LIBDIR}/libafsutil.a \
	-lkrb5 -lresolv

all: $(PROGS)

clean:
	rm -f $(PROGS) $(AKLOG_OBJS) 

distclean: clean
	rm -f config.cache config.log config.status Makefile

aklog: $(AKLOG_OBJS)  $(LIBOBJS)
	$(CC) -o aklog $(AKLOG_OBJS) $(LIBOBJS) $(KRB524LIB)  $(SYSLIBS) $(AFSLIBS) $(LDPATH_FLAGS) $(LIBS)

install: $(PROGS)
	$(INSTALL) -s aklog $(DESTDIR)$(INSTALL_BIN)


--=_kalmia.hozed.org-9066-1108603574-0001-2
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=diff

? Makefile.in
? Makefile
? .Makefile.swp
? aklog
? diff
Index: aklog.h
===================================================================
RCS file: /cvs/openafs/src/aklog/aklog.h,v
retrieving revision 1.1
diff -u -r1.1 aklog.h
--- aklog.h	19 Nov 2004 20:01:29 -0000	1.1
+++ aklog.h	17 Feb 2005 01:21:11 -0000
@@ -12,6 +12,7 @@
 static char *rcsid_aklog_h = "$Id: aklog.h,v 1.1 2004/11/19 20:01:29 kenh Exp $";
 #endif /* lint || SABER */
 
+#include <stds.h>
 #include <krb5.h>
 #include <kerberosIV/krb.h>
 #include "linked_list.h"
Index: aklog_main.c
===================================================================
RCS file: /cvs/openafs/src/aklog/aklog_main.c,v
retrieving revision 1.1
diff -u -r1.1 aklog_main.c
--- aklog_main.c	19 Nov 2004 20:01:29 -0000	1.1
+++ aklog_main.c	17 Feb 2005 01:21:11 -0000
@@ -10,6 +10,7 @@
 	"$Id: aklog_main.c,v 1.1 2004/11/19 20:01:29 kenh Exp $";
 #endif /* lint || SABER */
 
+#include <afsconfig.h>
 #include <stdio.h>
 #include <string.h>
 #include <ctype.h>
@@ -75,7 +76,7 @@
 
 #else /* !WINDOWS */
 #include <afs/stds.h>
-#include <afs/com_err.h>
+//#include <afs/com_err.h>
 
 #include <afs/param.h>
 #ifdef AFS_SUN5_ENV
Index: krb_util.c
===================================================================
RCS file: /cvs/openafs/src/aklog/krb_util.c,v
retrieving revision 1.1
diff -u -r1.1 krb_util.c
--- krb_util.c	19 Nov 2004 20:01:29 -0000	1.1
+++ krb_util.c	17 Feb 2005 01:21:11 -0000
@@ -17,6 +17,7 @@
 #if 0
 #include <kerberosIV/mit-copyright.h>
 #endif
+#include <stds.h>
 #include <krb5.h>
 #include <kerberosIV/krb.h> 
 

--=_kalmia.hozed.org-9066-1108603574-0001-2--