From kenh@cmf.nrl.navy.mil Thu Feb 13 00:54:17 1997 Received: from MIT.EDU (SOUTH-STATION-ANNEX.MIT.EDU [18.72.1.2]) by rt-11.MIT.EDU (8.7.5/8.7.3) with SMTP id AAA13540 for ; Thu, 13 Feb 1997 00:54:17 -0500 Received: from [134.207.10.161] by MIT.EDU with SMTP id AA05997; Thu, 13 Feb 97 00:54:16 EST Received: from nexus.cmf.nrl.navy.mil (kenh@nexus.cmf.nrl.navy.mil [134.207.10.9]) by ginger.cmf.nrl.navy.mil (8.7.5/8.7.3) with ESMTP id AAA06936 for ; Thu, 13 Feb 1997 00:54:07 -0500 (EST) Received: (kenh@localhost) by nexus.cmf.nrl.navy.mil (8.7.5/8.6.11) id AAA07924; Thu, 13 Feb 1997 00:54:14 -0500 (EST) Message-Id: <199702130554.AAA07924@nexus.cmf.nrl.navy.mil> Date: Thu, 13 Feb 1997 00:54:14 -0500 (EST) From: Ken Hornstein Reply-To: kenh@cmf.nrl.navy.mil To: krb5-bugs@MIT.EDU Subject: Wrong default ccache type is chosen X-Send-Pr-Version: 3.99 >Number: 376 >Category: krb5-libs >Synopsis: The wrong default ccache type is compiled into libkrb5 >Confidential: no >Severity: non-critical >Priority: low >Responsible: krb5-unassigned >State: closed >Class: sw-bug >Submitter-Id: unknown >Arrival-Date: Thu Feb 13 00:55:00 EST 1997 >Last-Modified: Thu Feb 13 17:11:06 EST 1997 >Originator: Ken Hornstein >Organization: Naval Research Lab >Release: 1.0 >Environment: System: SunOS nexus 4.1.4 2 sun4m Architecture: sun4 >Description: The credential cache default type is compiled into libkrb5, and is depending on an #ifdef HAVE_SYS_TYPES_H. But sys/types.h is never checked by the configure script! >How-To-Repeat: Watch the ccache code get compiled, and observe that HAVE_SYS_TYPES_H is never defined, even on machines that have it. >Fix: --- lib/krb5/ccache/configure.in.orig Thu Feb 13 00:42:36 1997 +++ lib/krb5/ccache/configure.in Thu Feb 13 00:42:54 1997 @@ -4,6 +4,7 @@ AC_PROG_ARCHIVE AC_PROG_ARCHIVE_ADD AC_PROG_RANLIB +AC_CHECK_HEADERS(sys/types.h) DO_SUBDIRS V5_SHARED_LIB_OBJS SubdirLibraryRule([$(OBJS)]) >Audit-Trail: From: Tom Yu To: kenh@cmf.nrl.navy.mil Cc: krb5-bugs@MIT.EDU Subject: Re: krb5-libs/376: Wrong default ccache type is chosen Date: Thu, 13 Feb 1997 02:00:23 -0500 Note that lib/krb5/ccache/ccdefops.c includes k5-int.h, which inludes autoconf.h. Note also that autoconf.h is configured by include/krb5/configure, which does test for sys/types.h. Granted, this *is* somewhat counter-intuitive, especially given that we're doing the really broken one-configure-script-per-directory nastiness, but it does make a certain amount of sense if looked at in the right way. ---Tom From: Ken Hornstein To: Tom Yu Cc: krb5-bugs@MIT.EDU Subject: Re: krb5-libs/376: Wrong default ccache type is chosen Date: Thu, 13 Feb 1997 09:42:10 -0500 >Note that lib/krb5/ccache/ccdefops.c includes k5-int.h, which inludes >autoconf.h. Note also that autoconf.h is configured by >include/krb5/configure, which does test for sys/types.h. Whoops, didn't see that. I had just assumed that since every directory has it's own configure script, that they all tested for what they needed individually. I didn't realize that autoconf.h was generated. Sorry about that! --Ken State-Changed-From-To: open-closed State-Changed-By: tlyu State-Changed-When: Thu Feb 13 17:10:20 1997 State-Changed-Why: misunderstanding; we're really doing the right thing already >Unformatted: