Re: [Perlgssapi-developer] [rt.cpan.org #32788] Enhancement to use OpenSolaris/Solaris 10 native gs
Brought to you by:
achimgrolms
From: Achim G. <ac...@gr...> - 2008-01-30 06:34:15
|
On Wednesday 30 January 2008, Markus Moeller via RT wrote: > Queue: GSSAPI > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=3D32788 > > > It is a bit strange I have to admit. On my OpenSolaris I don't need the > defines, but on Solaris 10 I do. =46rom your logfile I can see that your run of Makefile.PL sets the define for the "MIT 1.2.x workaround": cc -c -I/usr/include/kerberosv5 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D= 64 =20 =2Dxarch=3Dv8 -D_TS_ERRNO -xO3 -xspace -xildoff -DVERSION=3D\"0.24\" -DXS= _VERSION=3D\"0.24\"=20 -KPIC "-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE" -DMITKERB12=20 GSSAPI.c This -DMITKERB12 is set by Makefile.PL triggered by the output of krb5-config --version ("MIT 1.2.x workaround" means: tweak the defines to make GSSAPI.pm build against old MIT implementations that don't provide the GSS_C_* style uppercase constants but only the lowercase constants) What's the output of krb5-config --version on your Solaris 10? As far as I can see Makefile.PL tries to use the=20 "MIT 1.2.x workaround" in that case, but this seems to be wrong because GSS_C* style constants are already available on the Solaris 10 Kerberos=20 system. Can you try to build GSSAPI.pm without the -DMITKERB12 define? This define is set in Makefile.PL, you will find the code that checks for "MIT 1.2.x" in Makefile.PL, too. sub is_mit_1_2 { my ($cfgcmd) =3D @_; my $r =3D undef; my @vinfo =3D krb5_version( $cfgcmd ); FOUND: { foreach ( @vinfo) { if ( m/Kerberos 5 release 1\.2/) { $r =3D 1; last FOUND; } } } return $r; } Does this help? Thank you, Achim |