(RADIATOR) Radiator using KRB5 on OpenBSD (Authen::Krb5 and Heimdal)

Rogier Krieger rkrieger at gmail.com
Tue Jun 27 05:21:35 CDT 2006


On 6/27/06, Mike McCauley <mikem at open.com.au> wrote:
> > I suspect the problem lies with Authen::Krb5 not being found.
>
> Your log file confirms this.

OK, glad to have found the culprit. I'll admit that makes this less of
a Radiator problem.


> What sort of errors do you see during compilation?

Rather many. I included a script output to prevent typing errors. I
listed the output as an attachment. Scripted from an OpenBSD i386
3.9-stable machine with the following Makefile.PL configuration:

my $KRB5_LIBDIR = '/usr/lib';
my $KRB5_INCDIR = '/usr/include/kerberosV';

These are the location my Heimdal libraries and includes are to be
found. For completeness, I included the configurable part of
Makefile.PL in the script output as well.


> Here I get
>
> Krb5.xs:8:21: error: com_err.h: No such file or directory
> In file included from Krb5.xs:9:
>
> but commenting out
> //#include <com_err.h>
> in Krb5.xs fixes this.

On what system are you getting this? The errors I see occur on OpenBSD
(i386) on both 3.7 and 3.9 releases and are different from your
com_err.h not being found. Each of the releases uses Heimda (0.6.3 and
0.7 respectively).


> The only way to make AuthBy KRB5 to work is to get Authen-Krb5
> to build and install.

Fair enough, I can understand developing for only one Krb5 Perl
module. Just to rule out Heimdal as the cause, have you got it working
on a Heimdal-based machine?

Cheers,

Rogier

-- 
If you don't know where you're going, any road will get you there.
-------------- next part --------------
Script started on Tue Jun 27 12:18:33 2006
root at karres:/root/work/Krb5-1.6# head -n 21 Makefile.PL

use ExtUtils::MakeMaker;

##### CHANGE THESE ACCORDING TO YOUR CONFIGURATION #####

# location of Kerberos 5 libraries
#my $KRB5_LIBDIR = '/usr/local/krb5/lib';
my $KRB5_LIBDIR = '/usr/lib';

# any extra libraries?
# add -lresolv here if you get errors like the following (usually on linux):
#  undefined symbol: __res_search
my $KRB5_EXTRALIBS = '-lresolv';

# location of Kerberos 5 includes
#my $KRB5_INCDIR = '/usr/local/krb5/include';
my $KRB5_INCDIR = '/usr/include/kerberosV';

# any extra include flags?
my $KRB5_EXTRAINCS = '';

##### DO NOT CHANGE ANYTHING BELOW HERE #####
root at karres:/root/work/Krb5-1.6# perl Makefile.PL

Checking for libk5crypto...no.  I'll use libcrypto instead.
Note (probably harmless): No library found for -lresolv
Writing Makefile for Authen::Krb5
root at karres:/root/work/Krb5-1.6# make

cc -c  -I/usr/include/kerberosV  -fno-strict-aliasing -fno-delete-null-pointer-checks -pipe -I/usr/local/include -O2    -DVERSION=\"1.6\"  -DXS_VERSION=\"1.6\" -DPIC -fPIC "-I/usr/libdata/perl5/i386-openbsd/5.8.6/CORE"   Krb5.c
Krb5.xs:26: error: syntax error before '*' token
Krb5.xs:26: warning: data definition has no type or storage class
Krb5.xs: In function `XS_Authen__Krb5_get_krbhst':
Krb5.xs:173: warning: passing arg 2 of `krb5_get_krbhst' from incompatible pointer type
Krb5.xs: In function `XS_Authen__Krb5_build_principal_ext':
Krb5.xs:187: error: request for member `length' in something not a structure or union
Krb5.xs:188: error: request for member `data' in something not a structure or union
Krb5.xs:190: error: request for member `length' in something not a structure or union
Krb5.xs:191: error: request for member `data' in something not a structure or union
Krb5.c: In function `XS_Authen__Krb5_sname_to_principal':
Krb5.c:345: error: syntax error before "type"
Krb5.xs:221: error: `type' undeclared (first use in this function)
Krb5.xs:221: error: (Each undeclared identifier is reported only once
Krb5.xs:221: error: for each function it appears in.)
Krb5.xs: In function `XS_Authen__Krb5__Principal_realm':
Krb5.xs:552: error: request for member `data' in something not a structure or union
Krb5.xs:552: error: request for member `length' in something not a structure or union
Krb5.c: In function `XS_Authen__Krb5__Principal_type':
Krb5.c:1196: error: syntax error before "RETVAL"
Krb5.xs:559: error: `RETVAL' undeclared (first use in this function)
Krb5.xs:559: error: structure has no member named `type'
Krb5.xs: In function `XS_Authen__Krb5__Principal_data':
Krb5.xs:569: error: structure has no member named `length'
Krb5.xs:570: error: structure has no member named `length'
Krb5.xs:574: error: structure has no member named `data'
Krb5.xs: In function `XS_Authen__Krb5__KeyBlock_length':
Krb5.xs:702: error: structure has no member named `length'
Krb5.xs: In function `XS_Authen__Krb5__KeyBlock_contents':
Krb5.xs:713: error: structure has no member named `contents'
Krb5.xs:713: error: structure has no member named `length'
Krb5.xs: In function `XS_Authen__Krb5__KeyBlock_enctype':
Krb5.xs:720: error: structure has no member named `enctype'
Krb5.xs: In function `XS_Authen__Krb5__KeyBlock_enctype_string':
Krb5.xs:733: error: structure has no member named `enctype'
Krb5.xs:733: error: incompatible type for argument 2 of `krb5_enctype_to_string'
Krb5.xs:733: warning: passing arg 3 of `krb5_enctype_to_string' makes pointer from integer without a cast
Krb5.xs: In function `XS_Authen__Krb5__AuthContext_getflags':
Krb5.xs:769: error: syntax error before "flags"
Krb5.xs:772: error: `flags' undeclared (first use in this function)
Krb5.c: In function `XS_Authen__Krb5__AuthContext_setflags':
Krb5.c:1794: error: syntax error before "flags"
Krb5.xs:784: error: `flags' undeclared (first use in this function)
Krb5.c: In function `XS_Authen__Krb5__Ticket_enc_part2':
Krb5.c:2135: error: syntax error before "RETVAL"
Krb5.xs:895: error: `RETVAL' undeclared (first use in this function)
Krb5.xs:895: error: structure has no member named `enc_part2'
Krb5.c: In function `XS_Authen__Krb5__EncTktPart_client':
Krb5.c:2193: error: syntax error before "etp"
Krb5.c:2197: error: `etp' undeclared (first use in this function)
Krb5.c:2201: error: syntax error before "tmp"
Krb5.c: In function `XS_Authen__Krb5__EncTktPart_DESTROY':
Krb5.c:2223: error: syntax error before "etp"
Krb5.c:2226: error: `etp' undeclared (first use in this function)
Krb5.c:2230: error: syntax error before "tmp"
Krb5.xs: In function `XS_Authen__Krb5__Address_new':
Krb5.xs:942: error: structure has no member named `addrtype'
Krb5.xs:943: error: structure has no member named `contents'
Krb5.xs:943: error: `krb5_octet' undeclared (first use in this function)
Krb5.xs:943: error: syntax error before ')' token
Krb5.xs:943: error: structure has no member named `length'
Krb5.xs:943: error: structure has no member named `length'
Krb5.xs: In function `XS_Authen__Krb5__Keyblock_enctype':
Krb5.xs:966: error: structure has no member named `enctype'
Krb5.xs: In function `XS_Authen__Krb5__Keyblock_length':
Krb5.xs:976: error: structure has no member named `length'
Krb5.c: In function `XS_Authen__Krb5__Keyblock_contents':
Krb5.c:2365: error: `krb5_octet' undeclared (first use in this function)
Krb5.c:2365: error: `RETVAL' undeclared (first use in this function)
Krb5.xs:986: error: structure has no member named `contents'
Krb5.xs:987: error: structure has no member named `contents'
Krb5.xs:987: error: structure has no member named `length'
Krb5.xs: In function `XS_Authen__Krb5__Keyblock_DESTROY':
Krb5.xs:996: error: structure has no member named `contents'
Krb5.xs:997: error: structure has no member named `contents'
Krb5.xs:997: error: structure has no member named `length'
Krb5.xs:998: error: structure has no member named `contents'
Krb5.xs:999: error: structure has no member named `contents'
Krb5.xs: In function `XS_Authen__Krb5__Keytab_get_name':
Krb5.xs:1050: error: `MAX_KEYTAB_NAME_LEN' undeclared (first use in this function)
Krb5.xs: In function `XS_Authen__Krb5__KeytabEntry_new':
Krb5.xs:1128: error: structure has no member named `key'
Krb5.xs: In function `XS_Authen__Krb5__KeytabEntry_key':
Krb5.xs:1173: error: structure has no member named `key'
*** Error code 1

Stop in /root/work/Krb5-1.6.
root at karres:/root/work/Krb5-1.6# ^D


Script done on Tue Jun 27 12:19:12 2006


More information about the radiator mailing list