Subject: lib/12560: compilation error in heimdal (lib/libhdb)
To: None <gnats-bugs@gnats.netbsd.org>
From: None <itojun@itojun.org>
List: netbsd-bugs
Date: 04/06/2001 13:19:46
>Number:         12560
>Category:       lib
>Synopsis:       compilation error in heimdal (lib/libhdb)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 05 21:20:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Jun-ichiro itojun Hagino
>Release:        1.5T
>Organization:
	itojun.org
>Environment:
	
System: NetBSD starfruit.itojun.org 1.5T NetBSD 1.5T (STARFRUIT) #434: Tue Apr 3 15:09:37 JST 2001 itojun@starfruit.itojun.org:/usr/home/itojun/NetBSD/src/sys/arch/i386/compile/STARFRUIT i386
Architecture: i386
Machine: i386
>Description:

	it seems that there were type mismatches in heimdal tree.

>How-To-Repeat:

# make
cc -O2  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Werror   -I.                                  -I/home/itojun/NetBSD/src/lib/libhdb/../../crypto/dist/heimdal/lib/hdb          -I/usr/home/itojun/NetBSD/src/lib/libasn1/obj.i386                              -I/usr/home/itojun/NetBSD/src/lib/libkrb5/obj.i386                              -I/home/itojun/NetBSD/src/lib/libhdb/../../crypto/dist/heimdal/lib/krb5                 -I/home/itojun/NetBSD/src/lib/libhdb/../../crypto/dist/openssl/crypto/rc4               -I/home/itojun/NetBSD/src/lib/libhdb/../../crypto/dist/openssl/crypto/des               -I/home/itojun/NetBSD/src/lib/libhdb/../../crypto/dist/heimdal/lib/asn1                 -I/home/itojun/NetBSD/src/lib/libhdb/../../crypto/dist/heimdal/lib/com_err              -I/home/itojun/NetBSD/src/lib/libhdb/../../include/heimdal      -I/home/itojun/NetBSD/src/lib/libhdb/../libroken                -I/home/itojun/NetBSD/src/lib/libhdb/../../crypto/dist/heimdal/lib/roken                -DHAVE_CONFIG_H -c /home/itojun/NetBSD/src/lib/libhdb/../../crypto/dist/heimdal/lib/hdb/mkey.c
/home/itojun/NetBSD/src/lib/libhdb/../../crypto/dist/heimdal/lib/hdb/mkey.c:305: conflicting types for `hdb_unseal_keys_mkey'
/home/itojun/NetBSD/src/lib/libhdb/../../crypto/dist/heimdal/lib/hdb/hdb-protos.h:166: previous declaration of `hdb_unseal_keys_mkey'
/home/itojun/NetBSD/src/lib/libhdb/../../crypto/dist/heimdal/lib/hdb/mkey.c:334: conflicting types for `hdb_unseal_keys'
/home/itojun/NetBSD/src/lib/libhdb/../../crypto/dist/heimdal/lib/hdb/hdb-protos.h:160: previous declaration of `hdb_unseal_keys'
/home/itojun/NetBSD/src/lib/libhdb/../../crypto/dist/heimdal/lib/hdb/mkey.c:342: conflicting types for `hdb_seal_keys_mkey'
/home/itojun/NetBSD/src/lib/libhdb/../../crypto/dist/heimdal/lib/hdb/hdb-protos.h:139: previous declaration of `hdb_seal_keys_mkey'
/home/itojun/NetBSD/src/lib/libhdb/../../crypto/dist/heimdal/lib/hdb/mkey.c:371: conflicting types for `hdb_seal_keys'
/home/itojun/NetBSD/src/lib/libhdb/../../crypto/dist/heimdal/lib/hdb/hdb-protos.h:133: previous declaration of `hdb_seal_keys'
*** Error code 1

Stop.

for example, hdb_unseal_keys_mkey is declared in the following places:

crypto/dist/heimdal/lib/hdb/hdb-protos.h
crypto/dist/heimdal/lib/hdb/mkey.c

hdb-protos.h:

krb5_error_code
hdb_unseal_keys_mkey __P((
        krb5_context context,
        hdb_entry *ent,
        hdb_master_key mkey));

mkey.c:

void
hdb_unseal_keys_mkey(krb5_context context, hdb_entry *ent, hdb_master_key mkey)

>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: