[825] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

appl/gss-sample problems in configuration

daemon@ATHENA.MIT.EDU (epeisach@MIT.EDU)
Mon Oct 3 14:57:25 1994

From: epeisach@MIT.EDU
Date: Mon, 3 Oct 1994 14:57:04 -0400
To: krb5-bugs@MIT.EDU


I noticed this because make clean did not remove the object files....

a) Compiling was with -g and CCOPTS were ignored
b) make clean did not remove the objects.
The fix relies on the config/post.in cleanup of OBJS...
I also setup SRCS properly so that make depend may someday work.

The other change below is in the gss-server program (which I don't have
working yet....)
ret_flags wants to to be an int, not an OM_int32. This is according to
the gssapi.h header file....

	Ezra



===================================================================
RCS file: /mit/krb5/.cvsroot/src/appl/gss-sample/Makefile.in,v
retrieving revision 1.5
diff -c -r1.5 Makefile.in
*** 1.5	1994/09/30 02:56:14
--- Makefile.in	1994/10/03 18:42:10
***************
*** 1,5 ****
! CFLAGS = -g $(DEFS) $(LOCALINCLUDE)
! LDFLAGS = -g
  
  ISODELIB=@ISODELIB@
  COMERRLIB=$(BUILDTOP)/util/et/libcom_err.a
--- 1,4 ----
! CFLAGS = $(CCOPTS) $(DEFS) $(LOCALINCLUDE) 
  
  ISODELIB=@ISODELIB@
  COMERRLIB=$(BUILDTOP)/util/et/libcom_err.a
***************
*** 12,28 ****
  DEPKLIB = $(TOPLIBD)/gssapi/libgssapi_krb5.a $(TOPLIBD)/libkrb5.a \
  		$(TOPLIBD)/libcrypto.a $(COMERRLIB) $(DBMLIB)
  
  gss-server: gss-server.o gss-misc.o $(DEPKLIB)
  	$(CC) $(CFLAGS) -o gss-server gss-server.o gss-misc.o $(KLIB) $(LIBS)
  
  gss-client: gss-client.o gss-misc.o $(DEPKLIB)
  	$(CC) $(CFLAGS) -o gss-client gss-client.o gss-misc.o $(KLIB) $(LIBS)
- 
- gss-client.o:	$(srcdir)/gss-client.c
- 
- gss-misc.o:	$(srcdir)/gss-misc.c
- 
- gss-server.o:	$(srcdir)/gss-server.c
  
  clean::
  	$(RM) gss-server gss-client
--- 11,29 ----
  DEPKLIB = $(TOPLIBD)/gssapi/libgssapi_krb5.a $(TOPLIBD)/libkrb5.a \
  		$(TOPLIBD)/libcrypto.a $(COMERRLIB) $(DBMLIB)
  
+ OBJS= 	gss-server.o \
+ 	gss-misc.o \
+ 	gss-client.o
+ 
+ SRCS=	$(srcdir)/gss-server.c \
+ 	$(srcdir)/gss-misc.c \
+ 	$(srcdir)/gss-client.c
+ 
  gss-server: gss-server.o gss-misc.o $(DEPKLIB)
  	$(CC) $(CFLAGS) -o gss-server gss-server.o gss-misc.o $(KLIB) $(LIBS)
  
  gss-client: gss-client.o gss-misc.o $(DEPKLIB)
  	$(CC) $(CFLAGS) -o gss-client gss-client.o gss-misc.o $(KLIB) $(LIBS)
  
  clean::
  	$(RM) gss-server gss-client
===================================================================
RCS file: /mit/krb5/.cvsroot/src/appl/gss-sample/gss-server.c,v
retrieving revision 1.4
diff -c -r1.4 gss-server.c
*** 1.4	1994/08/18 21:05:23
--- gss-server.c	1994/10/03 18:46:58
***************
*** 302,308 ****
       gss_buffer_desc send_tok, recv_tok;
       gss_name_t client;
       gss_OID doid;
!      OM_uint32 maj_stat, min_stat, ret_flags;
  
       *context = GSS_C_NO_CONTEXT;
       
--- 302,309 ----
       gss_buffer_desc send_tok, recv_tok;
       gss_name_t client;
       gss_OID doid;
!      OM_uint32 maj_stat, min_stat;
!      int ret_flags;
  
       *context = GSS_C_NO_CONTEXT;
       

home help back first fref pref prev next nref lref last post