pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/51136: security/mit-krb5 does not build on Darwin



>Number:         51136
>Category:       pkg
>Synopsis:       security/mit-krb5 does not build on Darwin
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 13 14:40:00 +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:
?



Home | Main Index | Thread Index | Old Index