[krbdev.mit.edu #2632] Testing fails in utility db2 under Cygwin

The RT System itself via RT rt-comment at krbdev.mit.edu
Sun Jul 11 13:05:22 EDT 2004


>From krb5-bugs-incoming-bounces at mit.edu  Sun Jul 11 13:05:13 2004
Received: from pch.mit.edu (PCH.MIT.EDU [18.7.21.90]) by krbdev.mit.edu (8.9.3p2) with ESMTP
	id NAA02340; Sun, 11 Jul 2004 13:05:12 -0400 (EDT)
Received: from pch.mit.edu (localhost [127.0.0.1])
	by pch.mit.edu (8.12.8p2/8.12.8) with ESMTP id i6BH5Cl1028795
	for <krb5-send-pr at krbdev.mit.edu>; Sun, 11 Jul 2004 13:05:12 -0400 (EDT)
Received: from pacific-carrier-annex.mit.edu (PACIFIC-CARRIER-ANNEX.MIT.EDU
	[18.7.21.83])
	by pch.mit.edu (8.12.8p2/8.12.8) with ESMTP id i68MbQl1009546
	for <krb5-bugs-incoming at PCH.mit.edu>;
	Thu, 8 Jul 2004 18:37:26 -0400 (EDT)
Received: from mailwasher-b.lanl.gov (mailwasher.lanl.gov [192.16.0.25])
	i68MbPW3003710
	for <krb5-bugs at mit.edu>; Thu, 8 Jul 2004 18:37:25 -0400 (EDT)
Received: from mailrelay1.lanl.gov (localhost.localdomain [127.0.0.1])
	i68MbOCp010173
	for <krb5-bugs at mit.edu>; Thu, 8 Jul 2004 16:37:24 -0600
Received: from x-mail.lanl.gov (x-mail.lanl.gov [128.165.4.125])
	i68MbN1p017714;	Thu, 8 Jul 2004 16:37:24 -0600
Received: from lanl.gov (reinhold.lanl.gov [128.165.116.129])
	i68MbNu6008261;	Thu, 8 Jul 2004 16:37:23 -0600
Message-ID: <40EDCCA3.2080105 at lanl.gov>
Date: Thu, 08 Jul 2004 16:37:23 -0600
From: David Sigeti <sigeti at lanl.gov>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.6) Gecko/20040113
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: krb5-bugs at mit.edu
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-PMX-Version: 4.6.0.99824
X-Scanned-By: MIMEDefang 2.35
X-Mailman-Approved-At: Sun, 11 Jul 2004 13:05:11 -0400
cc: David Sigeti <sigeti at lanl.gov>
Subject: Testing fails in utility db2 under Cygwin
X-BeenThere: krb5-bugs-incoming at mit.edu
X-Mailman-Version: 2.1
Precedence: list
Reply-To: David Sigeti <sigeti at lanl.gov>
Sender: krb5-bugs-incoming-bounces at mit.edu
Errors-To: krb5-bugs-incoming-bounces at mit.edu

X-send-pr-version: 3.99

>Submitter-Id:  net
>Originator:    David Sigeti
>Organization:
        Los Alamos National Laboratory
>Confidential:  no
>Synopsis:      Testing fails in utility db2 under Cygwin
>Severity:      serious
>Priority:      low
>Category:      test
>Class:         sw-bug
>Release:       krb5-1.3.4
>Environment:

System: CYGWIN_NT-5.0 reinhold 1.5.10(0.116/4/2) 2004-05-25 22:07 i686 unknown unknown Cygwin
machine: Windows 2000

>Description:

"make check" fails in the db2 utility.  A copy of the end of the
output is follows:

making check in util/db2/test...
make[3]: Entering directory `/cygdrive/d/Apps/kerberos/krb5-1.3.4/local/build-cygwin/util/db2/test'
gcc -L../../../lib -g -O2 -Wall -Wmissing-prototypes -Wcast-qual  -Wcast-align -Wconversion -Wshadow -Wno-comment -pedantic  -o dbtest dbtest.o  -ldb
Info: resolving _optarg by linking to __imp__optarg (auto-import)
Info: resolving _optind by linking to __imp__optind (auto-import)
srcdir=../../../../krb5-1.3.4/src/util/db2/test TMPDIR=. /usr/bin/sh ../../../../krb5-1.3.4/src/util/db2/test/run.test
Test 1: btree, hash: small key, small data pairs
Test 1: recno: small key, small data pairs
Test 2: btree, hash: small key, medium data pairs
Test 2: recno: small key, medium data pairs
Test 3: hash: small key, big data pairs
HASH: Out of overflow pages.  Increase page size
dbtest: line 1118: put: No error
test3: hash: failed
make[3]: *** [check] Error 1
make[3]: Leaving directory `/cygdrive/d/Apps/kerberos/krb5-1.3.4/local/build-cygwin/util/db2/test'
make[2]: *** [check-recurse] Error 1
make[2]: Leaving directory `/cygdrive/d/Apps/kerberos/krb5-1.3.4/local/build-cygwin/util/db2'
make[1]: *** [check-recurse] Error 1
make[1]: Leaving directory `/cygdrive/d/Apps/kerberos/krb5-1.3.4/local/build-cygwin/util'
make: *** [check-recurse] Error 1

Compilation exited abnormally with code 2 at Wed Jul  7 16:03:48

>How-To-Repeat:

Build under Cygwin and run "make check".  In order to build under
Cygwin, the patch at the end of this file must be applied to the
distribution of krb5-1.3.4 (downloaded on 6 July 2004)

>Fix:

No known fix.

A patch file made from the distribution of krb5-1.3.4 (downloaded on 6
July 2004) follows.

diff -Naur original/krb5-1.3.4/src/include/k5-int.h local/krb5-1.3.4/src/include/k5-int.h
--- original/krb5-1.3.4/src/include/k5-int.h	2004-01-05 15:49:32.000000000 -0700
+++ local/krb5-1.3.4/src/include/k5-int.h	2004-07-07 13:31:07.621701800 -0600
@@ -1655,12 +1655,14 @@
     unsigned short port;
     char *host;
 };
+#ifdef KRB5_DNS_LOOKUP
 krb5_error_code
 krb5int_make_srv_query_realm(const krb5_data *realm,
 			     const char *service,
 			     const char *protocol,
 			     struct srv_dns_entry **answers);
 void krb5int_free_srv_dns_data(struct srv_dns_entry *);
+#endif /* KRB5_DNS_LOOKUP */
 
 #if defined(macintosh) && defined(__CFM68K__) && !defined(__USING_STATIC_LIBS__)
 #pragma import reset
diff -Naur original/krb5-1.3.4/src/lib/krb5/os/locate_kdc.c local/krb5-1.3.4/src/lib/krb5/os/locate_kdc.c
--- original/krb5-1.3.4/src/lib/krb5/os/locate_kdc.c	2004-01-05 19:30:15.000000000 -0700
+++ local/krb5-1.3.4/src/lib/krb5/os/locate_kdc.c	2004-07-07 13:39:02.103040100 -0600
@@ -502,6 +502,7 @@
 }
 #endif
 
+#ifdef KRB5_DNS_LOOKUP
 static krb5_error_code
 krb5_locate_srv_dns_1 (const krb5_data *realm,
 		       const char *service,
@@ -561,6 +562,7 @@
     krb5int_free_srv_dns_data(head);
     return code;
 }
+#endif /* KRB5_DNS_LOOKUP */
 
 /*
  * Wrapper function for the two backends
diff -Naur original/krb5-1.3.4/src/util/db2/hash/hash.c local/krb5-1.3.4/src/util/db2/hash/hash.c
--- original/krb5-1.3.4/src/util/db2/hash/hash.c	2001-07-09 06:06:36.000000000 -0600
+++ local/krb5-1.3.4/src/util/db2/hash/hash.c	2004-07-07 15:55:59.472323600 -0600
@@ -96,7 +96,7 @@
 extern DB *
 __kdb2_hash_open(file, flags, mode, info, dflags)
 	const char *file;
-	int32_t flags, mode, dflags;
+	int flags, mode, dflags;
 	const HASHINFO *info;	/* Special directives for create */
 {
 	struct stat statbuf;



More information about the krb5-bugs mailing list