Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It won't build with heimdal-1.5.3 #8

Open
jkolo opened this issue Jan 2, 2015 · 1 comment
Open

It won't build with heimdal-1.5.3 #8

jkolo opened this issue Jan 2, 2015 · 1 comment

Comments

@jkolo
Copy link

jkolo commented Jan 2, 2015

Attached logs.

/usr/bin/ruby21 -r ./siteconf20150102-16754-mrs28h.rb extconf.rb
checking for main() in -lc... yes
checking for krb5_init_context() in -lkrb5... yes
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling ruby_krb5_auth.c
ruby_krb5_auth.c: In function ‘Krb5_change_password’:
ruby_krb5_auth.c:358:3: warning: ‘krb5_change_password’ is deprecated (declared at /usr/include/krb5-protos.h:850) [-Wdeprecated-declarations]
   krbret = krb5_change_password(
   ^
In file included from /usr/include/ruby-2.1.0/ruby.h:33:0,
                 from ruby_krb5_auth.c:23:
ruby_krb5_auth.c: In function ‘Krb5_list_cache_creds’:
ruby_krb5_auth.c:579:51: error: ‘krb5_creds’ has no member named ‘ticket_flags’
     rb_iv_set(line, "@ticket_flags", INT2NUM(creds.ticket_flags));
                                                   ^
/usr/include/ruby-2.1.0/ruby/ruby.h:231:45: note: in definition of macro ‘INT2FIX’
 #define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG))
                                             ^
ruby_krb5_auth.c:579:38: note: in expansion of macro ‘INT2NUM’
     rb_iv_set(line, "@ticket_flags", INT2NUM(creds.ticket_flags));
                                      ^
ruby_krb5_auth.c:580:51: error: ‘krb5_creds’ has no member named ‘keyblock’
     rb_iv_set(line, "@cred_enctype", INT2NUM(creds.keyblock.enctype));
                                                   ^
/usr/include/ruby-2.1.0/ruby/ruby.h:231:45: note: in definition of macro ‘INT2FIX’
 #define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG))
                                             ^
ruby_krb5_auth.c:580:38: note: in expansion of macro ‘INT2NUM’
     rb_iv_set(line, "@cred_enctype", INT2NUM(creds.keyblock.enctype));
                                      ^
ruby_krb5_auth.c:581:51: error: ‘krb5_ticket’ has no member named ‘enc_part’
     rb_iv_set(line, "@ticket_enctype", INT2NUM(tkt->enc_part.enctype));
                                                   ^
/usr/include/ruby-2.1.0/ruby/ruby.h:231:45: note: in definition of macro ‘INT2FIX’
 #define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG))
                                             ^
ruby_krb5_auth.c:581:40: note: in expansion of macro ‘INT2NUM’
     rb_iv_set(line, "@ticket_enctype", INT2NUM(tkt->enc_part.enctype));
                                        ^
ruby_krb5_auth.c: In function ‘Init_krb5_auth’:
ruby_krb5_auth.c:705:18: error: ‘TKT_FLG_FORWARDABLE’ undeclared (first use in this function)
   DEF_FLAG_CONST(TKT_FLG_FORWARDABLE);
                  ^
/usr/include/ruby-2.1.0/ruby/ruby.h:231:45: note: in definition of macro ‘INT2FIX’
 #define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG))
                                             ^
ruby_krb5_auth.c:703:33: note: in expansion of macro ‘INT2NUM’
   rb_define_const(cCred, #name, INT2NUM(name))
                                 ^
ruby_krb5_auth.c:705:3: note: in expansion of macro ‘DEF_FLAG_CONST’
   DEF_FLAG_CONST(TKT_FLG_FORWARDABLE);
   ^
ruby_krb5_auth.c:705:18: note: each undeclared identifier is reported only once for each function it appears in
   DEF_FLAG_CONST(TKT_FLG_FORWARDABLE);
                  ^
/usr/include/ruby-2.1.0/ruby/ruby.h:231:45: note: in definition of macro ‘INT2FIX’
 #define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG))
                                             ^
ruby_krb5_auth.c:703:33: note: in expansion of macro ‘INT2NUM’
   rb_define_const(cCred, #name, INT2NUM(name))
                                 ^
ruby_krb5_auth.c:705:3: note: in expansion of macro ‘DEF_FLAG_CONST’
   DEF_FLAG_CONST(TKT_FLG_FORWARDABLE);
   ^
ruby_krb5_auth.c:706:18: error: ‘TKT_FLG_FORWARDED’ undeclared (first use in this function)
   DEF_FLAG_CONST(TKT_FLG_FORWARDED);
                  ^
/usr/include/ruby-2.1.0/ruby/ruby.h:231:45: note: in definition of macro ‘INT2FIX’
 #define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG))
                                             ^
ruby_krb5_auth.c:703:33: note: in expansion of macro ‘INT2NUM’
   rb_define_const(cCred, #name, INT2NUM(name))
                                 ^
ruby_krb5_auth.c:706:3: note: in expansion of macro ‘DEF_FLAG_CONST’
   DEF_FLAG_CONST(TKT_FLG_FORWARDED);
   ^
ruby_krb5_auth.c:707:18: error: ‘TKT_FLG_PROXIABLE’ undeclared (first use in this function)
   DEF_FLAG_CONST(TKT_FLG_PROXIABLE);
                  ^
/usr/include/ruby-2.1.0/ruby/ruby.h:231:45: note: in definition of macro ‘INT2FIX’
 #define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG))
                                             ^
ruby_krb5_auth.c:703:33: note: in expansion of macro ‘INT2NUM’
   rb_define_const(cCred, #name, INT2NUM(name))
                                 ^
ruby_krb5_auth.c:707:3: note: in expansion of macro ‘DEF_FLAG_CONST’
   DEF_FLAG_CONST(TKT_FLG_PROXIABLE);
   ^
ruby_krb5_auth.c:708:18: error: ‘TKT_FLG_PROXY’ undeclared (first use in this function)
   DEF_FLAG_CONST(TKT_FLG_PROXY);
                  ^
/usr/include/ruby-2.1.0/ruby/ruby.h:231:45: note: in definition of macro ‘INT2FIX’
 #define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG))
                                             ^
ruby_krb5_auth.c:703:33: note: in expansion of macro ‘INT2NUM’
   rb_define_const(cCred, #name, INT2NUM(name))
                                 ^
ruby_krb5_auth.c:708:3: note: in expansion of macro ‘DEF_FLAG_CONST’
   DEF_FLAG_CONST(TKT_FLG_PROXY);
   ^
ruby_krb5_auth.c:709:18: error: ‘TKT_FLG_MAY_POSTDATE’ undeclared (first use in this function)
   DEF_FLAG_CONST(TKT_FLG_MAY_POSTDATE);
                  ^
/usr/include/ruby-2.1.0/ruby/ruby.h:231:45: note: in definition of macro ‘INT2FIX’
 #define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG))
                                             ^
ruby_krb5_auth.c:703:33: note: in expansion of macro ‘INT2NUM’
   rb_define_const(cCred, #name, INT2NUM(name))
                                 ^
ruby_krb5_auth.c:709:3: note: in expansion of macro ‘DEF_FLAG_CONST’
   DEF_FLAG_CONST(TKT_FLG_MAY_POSTDATE);
   ^
ruby_krb5_auth.c:710:18: error: ‘TKT_FLG_POSTDATED’ undeclared (first use in this function)
   DEF_FLAG_CONST(TKT_FLG_POSTDATED);
                  ^
/usr/include/ruby-2.1.0/ruby/ruby.h:231:45: note: in definition of macro ‘INT2FIX’
 #define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG))
                                             ^
ruby_krb5_auth.c:703:33: note: in expansion of macro ‘INT2NUM’
   rb_define_const(cCred, #name, INT2NUM(name))
                                 ^
ruby_krb5_auth.c:710:3: note: in expansion of macro ‘DEF_FLAG_CONST’
   DEF_FLAG_CONST(TKT_FLG_POSTDATED);
   ^
ruby_krb5_auth.c:711:18: error: ‘TKT_FLG_INVALID’ undeclared (first use in this function)
   DEF_FLAG_CONST(TKT_FLG_INVALID);
                  ^
/usr/include/ruby-2.1.0/ruby/ruby.h:231:45: note: in definition of macro ‘INT2FIX’
 #define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG))
                                             ^
ruby_krb5_auth.c:703:33: note: in expansion of macro ‘INT2NUM’
   rb_define_const(cCred, #name, INT2NUM(name))
                                 ^
ruby_krb5_auth.c:711:3: note: in expansion of macro ‘DEF_FLAG_CONST’
   DEF_FLAG_CONST(TKT_FLG_INVALID);
   ^
ruby_krb5_auth.c:712:18: error: ‘TKT_FLG_RENEWABLE’ undeclared (first use in this function)
   DEF_FLAG_CONST(TKT_FLG_RENEWABLE);
                  ^
/usr/include/ruby-2.1.0/ruby/ruby.h:231:45: note: in definition of macro ‘INT2FIX’
 #define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG))
                                             ^
ruby_krb5_auth.c:703:33: note: in expansion of macro ‘INT2NUM’
   rb_define_const(cCred, #name, INT2NUM(name))
                                 ^
ruby_krb5_auth.c:712:3: note: in expansion of macro ‘DEF_FLAG_CONST’
   DEF_FLAG_CONST(TKT_FLG_RENEWABLE);
   ^
ruby_krb5_auth.c:713:18: error: ‘TKT_FLG_INITIAL’ undeclared (first use in this function)
   DEF_FLAG_CONST(TKT_FLG_INITIAL);
                  ^
/usr/include/ruby-2.1.0/ruby/ruby.h:231:45: note: in definition of macro ‘INT2FIX’
 #define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG))
                                             ^
ruby_krb5_auth.c:703:33: note: in expansion of macro ‘INT2NUM’
   rb_define_const(cCred, #name, INT2NUM(name))
                                 ^
ruby_krb5_auth.c:713:3: note: in expansion of macro ‘DEF_FLAG_CONST’
   DEF_FLAG_CONST(TKT_FLG_INITIAL);
   ^
ruby_krb5_auth.c:714:18: error: ‘TKT_FLG_HW_AUTH’ undeclared (first use in this function)
   DEF_FLAG_CONST(TKT_FLG_HW_AUTH);
                  ^
/usr/include/ruby-2.1.0/ruby/ruby.h:231:45: note: in definition of macro ‘INT2FIX’
 #define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG))
                                             ^
ruby_krb5_auth.c:703:33: note: in expansion of macro ‘INT2NUM’
   rb_define_const(cCred, #name, INT2NUM(name))
                                 ^
ruby_krb5_auth.c:714:3: note: in expansion of macro ‘DEF_FLAG_CONST’
   DEF_FLAG_CONST(TKT_FLG_HW_AUTH);
   ^
ruby_krb5_auth.c:715:18: error: ‘TKT_FLG_PRE_AUTH’ undeclared (first use in this function)
   DEF_FLAG_CONST(TKT_FLG_PRE_AUTH);
                  ^
/usr/include/ruby-2.1.0/ruby/ruby.h:231:45: note: in definition of macro ‘INT2FIX’
 #define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG))
                                             ^
ruby_krb5_auth.c:703:33: note: in expansion of macro ‘INT2NUM’
   rb_define_const(cCred, #name, INT2NUM(name))
                                 ^
ruby_krb5_auth.c:715:3: note: in expansion of macro ‘DEF_FLAG_CONST’
   DEF_FLAG_CONST(TKT_FLG_PRE_AUTH);
   ^
ruby_krb5_auth.c:716:18: error: ‘TKT_FLG_TRANSIT_POLICY_CHECKED’ undeclared (first use in this function)
   DEF_FLAG_CONST(TKT_FLG_TRANSIT_POLICY_CHECKED);
                  ^
/usr/include/ruby-2.1.0/ruby/ruby.h:231:45: note: in definition of macro ‘INT2FIX’
 #define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG))
                                             ^
ruby_krb5_auth.c:703:33: note: in expansion of macro ‘INT2NUM’
   rb_define_const(cCred, #name, INT2NUM(name))
                                 ^
ruby_krb5_auth.c:716:3: note: in expansion of macro ‘DEF_FLAG_CONST’
   DEF_FLAG_CONST(TKT_FLG_TRANSIT_POLICY_CHECKED);
   ^
ruby_krb5_auth.c:717:18: error: ‘TKT_FLG_OK_AS_DELEGATE’ undeclared (first use in this function)
   DEF_FLAG_CONST(TKT_FLG_OK_AS_DELEGATE);
                  ^
/usr/include/ruby-2.1.0/ruby/ruby.h:231:45: note: in definition of macro ‘INT2FIX’
 #define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG))
                                             ^
ruby_krb5_auth.c:703:33: note: in expansion of macro ‘INT2NUM’
   rb_define_const(cCred, #name, INT2NUM(name))
                                 ^
ruby_krb5_auth.c:717:3: note: in expansion of macro ‘DEF_FLAG_CONST’
   DEF_FLAG_CONST(TKT_FLG_OK_AS_DELEGATE);
   ^
ruby_krb5_auth.c:718:18: error: ‘TKT_FLG_ANONYMOUS’ undeclared (first use in this function)
   DEF_FLAG_CONST(TKT_FLG_ANONYMOUS);
                  ^
/usr/include/ruby-2.1.0/ruby/ruby.h:231:45: note: in definition of macro ‘INT2FIX’
 #define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG))
                                             ^
ruby_krb5_auth.c:703:33: note: in expansion of macro ‘INT2NUM’
   rb_define_const(cCred, #name, INT2NUM(name))
                                 ^
ruby_krb5_auth.c:718:3: note: in expansion of macro ‘DEF_FLAG_CONST’
   DEF_FLAG_CONST(TKT_FLG_ANONYMOUS);
   ^
ruby_krb5_auth.c:729:17: error: ‘ENCTYPE_DES_CBC_RAW’ undeclared (first use in this function)
   DEF_ENC_CONST(ENCTYPE_DES_CBC_RAW);
                 ^
/usr/include/ruby-2.1.0/ruby/ruby.h:231:45: note: in definition of macro ‘INT2FIX’
 #define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG))
                                             ^
ruby_krb5_auth.c:723:33: note: in expansion of macro ‘INT2NUM’
   rb_define_const(cCred, #name, INT2NUM(name))
                                 ^
ruby_krb5_auth.c:729:3: note: in expansion of macro ‘DEF_ENC_CONST’
   DEF_ENC_CONST(ENCTYPE_DES_CBC_RAW);
   ^
ruby_krb5_auth.c:730:17: error: ‘ENCTYPE_DES3_CBC_SHA’ undeclared (first use in this function)
   DEF_ENC_CONST(ENCTYPE_DES3_CBC_SHA);
                 ^
/usr/include/ruby-2.1.0/ruby/ruby.h:231:45: note: in definition of macro ‘INT2FIX’
 #define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG))
                                             ^
ruby_krb5_auth.c:723:33: note: in expansion of macro ‘INT2NUM’
   rb_define_const(cCred, #name, INT2NUM(name))
                                 ^
ruby_krb5_auth.c:730:3: note: in expansion of macro ‘DEF_ENC_CONST’
   DEF_ENC_CONST(ENCTYPE_DES3_CBC_SHA);
   ^
ruby_krb5_auth.c:731:17: error: ‘ENCTYPE_DES3_CBC_RAW’ undeclared (first use in this function)
   DEF_ENC_CONST(ENCTYPE_DES3_CBC_RAW);
                 ^
/usr/include/ruby-2.1.0/ruby/ruby.h:231:45: note: in definition of macro ‘INT2FIX’
 #define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG))
                                             ^
ruby_krb5_auth.c:723:33: note: in expansion of macro ‘INT2NUM’
   rb_define_const(cCred, #name, INT2NUM(name))
                                 ^
ruby_krb5_auth.c:731:3: note: in expansion of macro ‘DEF_ENC_CONST’
   DEF_ENC_CONST(ENCTYPE_DES3_CBC_RAW);
   ^
ruby_krb5_auth.c:732:17: error: ‘ENCTYPE_DES_HMAC_SHA1’ undeclared (first use in this function)
   DEF_ENC_CONST(ENCTYPE_DES_HMAC_SHA1);
                 ^
/usr/include/ruby-2.1.0/ruby/ruby.h:231:45: note: in definition of macro ‘INT2FIX’
 #define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG))
                                             ^
ruby_krb5_auth.c:723:33: note: in expansion of macro ‘INT2NUM’
   rb_define_const(cCred, #name, INT2NUM(name))
                                 ^
ruby_krb5_auth.c:732:3: note: in expansion of macro ‘DEF_ENC_CONST’
   DEF_ENC_CONST(ENCTYPE_DES_HMAC_SHA1);
   ^
ruby_krb5_auth.c:737:17: error: ‘ENCTYPE_ARCFOUR_HMAC_EXP’ undeclared (first use in this function)
   DEF_ENC_CONST(ENCTYPE_ARCFOUR_HMAC_EXP);
                 ^
/usr/include/ruby-2.1.0/ruby/ruby.h:231:45: note: in definition of macro ‘INT2FIX’
 #define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG))
                                             ^
ruby_krb5_auth.c:723:33: note: in expansion of macro ‘INT2NUM’
   rb_define_const(cCred, #name, INT2NUM(name))
                                 ^
ruby_krb5_auth.c:737:3: note: in expansion of macro ‘DEF_ENC_CONST’
   DEF_ENC_CONST(ENCTYPE_ARCFOUR_HMAC_EXP);
   ^
ruby_krb5_auth.c:738:17: error: ‘ENCTYPE_UNKNOWN’ undeclared (first use in this function)
   DEF_ENC_CONST(ENCTYPE_UNKNOWN);
                 ^
/usr/include/ruby-2.1.0/ruby/ruby.h:231:45: note: in definition of macro ‘INT2FIX’
 #define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG))
                                             ^
ruby_krb5_auth.c:723:33: note: in expansion of macro ‘INT2NUM’
   rb_define_const(cCred, #name, INT2NUM(name))
                                 ^
ruby_krb5_auth.c:738:3: note: in expansion of macro ‘DEF_ENC_CONST’
   DEF_ENC_CONST(ENCTYPE_UNKNOWN);
   ^
Makefile:224: polecenia dla obiektu 'ruby_krb5_auth.o' nie powiodły się
make: *** [ruby_krb5_auth.o] Błąd 1

make failed, exit code 2
fritteli added a commit to fritteli/gentoo-overlay that referenced this issue Feb 23, 2015
… play well with timfel/krb5-auth

Fixes github issue #9.
See #9 and timfel/krb5-auth#8
@glensc
Copy link

glensc commented Mar 20, 2016

yeah. i'm also stuck with heimdal

glensc added a commit to pld-linux/ruby-timfel-krb5-auth that referenced this issue Mar 20, 2016
fails to build with heimdal
timfel/krb5-auth#8
glensc added a commit to pld-linux/gitlab-ce that referenced this issue Mar 21, 2016
- servers (redis, postgres, mysql) are optional, can be used remotely
- disable kerberos support (doesn't build with heimdal)
  timfel/krb5-auth#8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants