NetBSD Problem Report #51136
From www@NetBSD.org Fri May 13 14:35:23 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 868EC7A211
for <gnats-bugs@gnats.NetBSD.org>; Fri, 13 May 2016 14:35:23 +0000 (UTC)
Message-Id: <20160513143522.41CAA7AA99@mollari.NetBSD.org>
Date: Fri, 13 May 2016 14:35:22 +0000 (UTC)
From: bsiegert@NetBSD.org
Reply-To: bsiegert@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: security/mit-krb5 does not build on Darwin
X-Send-Pr-Version: www-1.0
>Number: 51136
>Category: pkg
>Synopsis: security/mit-krb5 does not build on Darwin
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: tez
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri May 13 14:40:00 +0000 2016
>Closed-Date: Mon Nov 21 15:20:47 +0000 2016
>Last-Modified: Mon Nov 21 15:20:47 +0000 2016
>Originator: Benny Siegert
>Release: pkgsrc-2016Q1 on Mac OS 10.11.4
>Organization:
The NetBSD Foundation
>Environment:
Darwin lem2.local 15.4.0 Darwin Kernel Version 15.4.0: Fri Feb 26 22:08:05 PST 2016; root:xnu-3248.40.184~3/RELEASE_X86_64 x86_64
>Description:
Building security/mit-krb5 on Darwin results in
libtool: compile: clang -DHAVE_CONFIG_H -I../../../include -I./ccapi -I. -DKRB5_DEPRECATED=1 -DKRB5_PRIVATE -I/opt/pkgsrc/security/mit-krb5/work/.buildlink/include -fno-common -Wall -Wcast-align -Wshadow -Wmissing-prototypes -Wno-format-zero-length -Woverflow -Wstrict-overflow -Wmissing-format-attribute -Wmissing-prototypes -Wreturn-type -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-variable -Wunused-value -Wunknown-pragmas -Wsign-compare -Wnewline-eof -Werror=uninitialized -Werror=pointer-arith -Werror=declaration-after-statement -Werror-implicit-function-declaration -c cc_kcm.c -fno-common -DPIC -o .libs/cc_kcm.o
cc_kcm.c:50:10: fatal error: 'kcmrpc.h' file not found
#include "kcmrpc.h"
^
1 error generated.
*** Error code 1
Stop.
bmake[3]: stopped in /opt/pkgsrc/security/mit-krb5/work/krb5-1.14.1/src/lib/krb5/ccache
*** Error code 1
You can get further by changing into the "src/lib/krb5/ccache" directory and doing
make kcmrpc.h
Then it will fail later:
making all in kadmin/cli...
clang -DHAVE_CONFIG_H -I../../include -I../../include -I. -DKRB5_DEPRECATED=1 -DKRB5_PRIVATE -I/opt/pkg-2016Q1/include -I/opt/pkg-2016Q1/include -fno-common -Wall -Wcast-align -Wshadow -Wmissing-prototypes -Wno-format-zero-length -Woverflow -Wstrict-overflow -Wmissing-format-attribute -Wmissing-prototypes -Wreturn-type -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-variable -Wunused-value -Wunknown-pragmas -Wsign-compare -Wnewline-eof -Werror=uninitialized -Werror=pointer-arith -Werror=declaration-after-statement -Werror-implicit-function-declaration -c kadmin.c
clang -DHAVE_CONFIG_H -I../../include -I../../include -I. -DKRB5_DEPRECATED=1 -DKRB5_PRIVATE -I/opt/pkg-2016Q1/include -I/opt/pkg-2016Q1/include -fno-common -Wall -Wcast-align -Wshadow -Wmissing-prototypes -Wno-format-zero-length -Woverflow -Wstrict-overflow -Wmissing-format-attribute -Wmissing-prototypes -Wreturn-type -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-variable -Wunused-value -Wunknown-pragmas -Wsign-compare -Wnewline-eof -Werror=uninitialized -Werror=pointer-arith -Werror=declaration-after-statement -Werror-implicit-function-declaration -c kadmin_ct.c
clang -DHAVE_CONFIG_H -I../../include -I../../include -I. -DKRB5_DEPRECATED=1 -DKRB5_PRIVATE -I/opt/pkg-2016Q1/include -I/opt/pkg-2016Q1/include -fno-common -Wall -Wcast-align -Wshadow -Wmissing-prototypes -Wno-format-zero-length -Woverflow -Wstrict-overflow -Wmissing-format-attribute -Wmissing-prototypes -Wreturn-type -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-variable -Wunused-value -Wunknown-pragmas -Wsign-compare -Wnewline-eof -Werror=uninitialized -Werror=pointer-arith -Werror=declaration-after-statement -Werror-implicit-function-declaration -c ss_wrapper.c
In file included from ss_wrapper.c:30:
In file included from ./kadmin.h:61:
../../include/kdb.h:367:73: error: unknown type name 'time_t'; did you mean 'size_t'?
krb5_error_code krb5_db_get_age ( krb5_context kcontext, char *db_name, time_t *t );
^~~~~~
size_t
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/sys/_types/_size_t.h:30:32: note:
'size_t' declared here
typedef __darwin_size_t size_t;
^
In file included from ss_wrapper.c:30:
In file included from ./kadmin.h:61:
../../include/kdb.h:904:32: error: unknown type name 'time_t'; did you mean 'size_t'?
time_t *age);
^~~~~~
size_t
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/sys/_types/_size_t.h:30:32: note:
'size_t' declared here
typedef __darwin_size_t size_t;
^
2 errors generated.
*** Error code 1
The "did you mean size_t" is noise, it is missing an include, probably <sys/types.h>. Though configure says
checking for sys/types.h... yes
>How-To-Repeat:
Try building mit-krb5-1.14.1nb1
>Fix:
?
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->tez
Responsible-Changed-By: bsiegert@NetBSD.org
Responsible-Changed-When: Fri, 13 May 2016 14:43:22 +0000
Responsible-Changed-Why:
Over to maintainer.
State-Changed-From-To: open->feedback
State-Changed-By: tez@NetBSD.org
State-Changed-When: Fri, 28 Oct 2016 21:02:10 +0000
State-Changed-Why:
Should be fixed in along with the update to version 1.14.4 today.
Please let me know if it works for you. Thanks.
From: "Tim Zingelman" <tez@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/51136 CVS commit: pkgsrc/security/mit-krb5
Date: Fri, 28 Oct 2016 20:56:14 +0000
Module Name: pkgsrc
Committed By: tez
Date: Fri Oct 28 20:56:14 UTC 2016
Modified Files:
pkgsrc/security/mit-krb5: Makefile distinfo
Added Files:
pkgsrc/security/mit-krb5/patches: patch-kadmin_cli_ss_wrapper.c
patch-lib_krb5_ccache_Makefile.in
Log Message:
Update to 1.14.4 and fix build on OS X
Should resolve PR#51136
To generate a diff of this commit:
cvs rdiff -u -r1.92 -r1.93 pkgsrc/security/mit-krb5/Makefile
cvs rdiff -u -r1.59 -r1.60 pkgsrc/security/mit-krb5/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/security/mit-krb5/patches/patch-kadmin_cli_ss_wrapper.c \
pkgsrc/security/mit-krb5/patches/patch-lib_krb5_ccache_Makefile.in
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: feedback->closed
State-Changed-By: tez@NetBSD.org
State-Changed-When: Mon, 21 Nov 2016 15:20:47 +0000
State-Changed-Why:
feedback timeout
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.