[2698] in Kerberos-V5-bugs

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

krb5-libs/396: V5 distribution fails to build under BSD/OS 3.0

daemon@ATHENA.MIT.EDU (sklower@CS.Berkeley.EDU)
Thu Mar 13 04:02:27 1997

Resent-From: gnats@rt-11.MIT.EDU (GNATS Management)
Resent-To: krb5-unassigned@RT-11.MIT.EDU
Resent-Reply-To: krb5-bugs@MIT.EDU, sklower@CS.Berkeley.EDU
Date: Thu, 13 Mar 1997 00:57:25 -0800 (PST)
From: sklower@CS.Berkeley.EDU
Reply-To: sklower@CS.Berkeley.EDU
To: krb5-bugs@MIT.EDU


>Number:         396
>Category:       krb5-libs
>Synopsis:       BSD/OS 3.0 build has conflicts between KV5 rpc lib and libc.a
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    krb5-unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   unknown
>Arrival-Date:   Thu Mar 13 03:58:03 EST 1997
>Last-Modified:
>Originator:     Keith &
>Organization:
+------------------------------------------------------------------+
| Keith Sklower				Computer Science Dept.	   |
| sklower@CS.Berkeley.EDU		380 Soda Hall		   |
| (510) 642-9587			University of California   |
| H: (415) 863-0990			Berkeley, CA  94720-1776   |
+------------------------------------------------------------------+
>Release:        1.0
>Environment:
	
System: BSD/OS diamond.CS.Berkeley.EDU 3.0 BSDI BSD/OS 3.0 Kernel #0: Thu Jan 30 13:02:43 MST 1997     polk@demiurge.BSDI.COM:/rel/proto/3.0RC1-i386/usr/src/sys/compile/GENERIC  i386


>Description:
	The BSD/OS 3.0 environment contains the public domain sun rpc lib
	which is the basis for the V5 distribution in its libc.a (which
	was not true of BSD/OS 2.1).  For some reason, there are calls
	made from BSD/OS routines to _seterr_reply which is in its 
	rpc_prot.o in libc.a and the V5 distribution calls sunrpc_seterr_reply
	which brings in the V5 version of rpc_prot.o resulting in things like

cc -L./../../../lib -L./../../../lib -o server server.o rpc_test_svc.o    -lgssrpc -lgssapi_krb5    -lkrb5 -lcrypto  -ldyn  -lcom_err
rpc_prot.o: Definition of symbol _xdr_opaque_auth (multiply defined)
rpc_prot.o: Definition of symbol _xdr_des_block (multiply defined)
rpc_prot.o: Definition of symbol _xdr_accepted_reply (multiply defined)
rpc_prot.o: Definition of symbol _xdr_rejected_reply (multiply defined)
[others deleted]

	and, much worse, kadmind fails to load.

>How-To-Repeat:
	under BSD/OS 3.0, unpack the sources, type ./configure, then run make.
>Fix:
	You'll probably want to incorporate this in your configuration
	magic in osconf.h somehow, but merely appending the following
	3 lines to the local include/rpc/rpc_msg.h gets around the problem:
*** rpc_msg.h   Thu Mar 13 00:35:31 1997
--- rpc_msg.h.org       Wed Mar 12 18:35:35 1997
***************
*** 185,190 ****
   *    struct rpc_err *error;
   */
  extern void   _seterr_reply();
- #if defined(__bsdi__) && _BSDI_VERSION >= 199701
- #define sunrpc_seterr_reply _seterr_reply
- #endif
--- 185,187 ----
>Audit-Trail:
>Unformatted:

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