It is a bit strange I have to admit. On my OpenSolaris I don't need the
defines, but on Solaris 10 I do.
OpenSolaris:
# make
cp GSSAPI.pm blib/lib/GSSAPI.pm
cp GSSAPI/OID/Set.pm blib/lib/GSSAPI/OID/Set.pm
cp GSSAPI/OID.pm blib/lib/GSSAPI/OID.pm
cp GSSAPI/Status.pm blib/lib/GSSAPI/Status.pm
/usr/bin/perl /usr/perl5/5.8.4/lib/ExtUtils/xsubpp -typemap
/usr/perl5/5.8.4/lib/ExtUtils/typemap -typemap typemap GSSAPI.xs >
GSSAPI.xsc && mv GSSAPI.xsc GSSAPI.c
cc -c -I/usr/include/kerberosv5 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-D_TS_ERRNO -xO3 -xspace -xildoff -DVERSION=\"0.24\" -DXS_VERSION=\"0.24\"
-KPIC "-I/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE" GSSAPI.c
Running Mkbootstrap for GSSAPI ()
chmod 644 GSSAPI.bs
rm -f blib/arch/auto/GSSAPI/GSSAPI.so
LD_RUN_PATH="/usr/lib" cc -G GSSAPI.o -o
ib/arch/auto/GSSAPI/GSSAPI.so -L/usr/lib -R/usr/lib -lgss
chmod 755 blib/arch/auto/GSSAPI/GSSAPI.so
cp GSSAPI.bs blib/arch/auto/GSSAPI/GSSAPI.bs
chmod 644 blib/arch/auto/GSSAPI/GSSAPI.bs
Manifying blib/man3/GSSAPI.3
Manifying blib/man3/GSSAPI::OID::Set.3
Manifying blib/man3/GSSAPI::OID.3
Manifying blib/man3/GSSAPI::Status.3
Solaris 10:
# make
cc -c -I/usr/include/kerberosv5 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-xarch=v8 -D_TS_ERRNO -xO3 -xspace -xildoff -DVERSION=\"0.24\" -DXS_VERSION=\"0.24\"
-KPIC "-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE" -DMITKERB12
GSSAPI.c
"xs/OID.xs", line 85: undefined symbol: gss_nt_user_name
"xs/OID.xs", line 85: warning: improper pointer/integer combination: op "="
"xs/OID.xs", line 92: undefined symbol: gss_nt_machine_uid_name
"xs/OID.xs", line 92: warning: improper pointer/integer combination: op "="
"xs/OID.xs", line 99: undefined symbol: gss_nt_string_uid_name
"xs/OID.xs", line 99: warning: improper pointer/integer combination: op "="
"xs/OID.xs", line 106: undefined symbol: gss_nt_service_name
"xs/OID.xs", line 106: warning: improper pointer/integer combination: op "="
"xs/OID.xs", line 113: undefined symbol: gss_nt_exported_name
"xs/OID.xs", line 113: warning: improper pointer/integer combination: op "="
"xs/OID.xs", line 120: undefined symbol: gss_nt_service_name
"xs/OID.xs", line 120: warning: improper pointer/integer combination: op "="
"xs/OID.xs", line 174: undefined symbol: gss_nt_service_name
"xs/OID.xs", line 174: warning: improper pointer/integer combination: op "="
cc: acomp failed for GSSAPI.c
make: *** [GSSAPI.o] Error 2
Markus
Show quoted text----- Original Message -----
From: "Leif Johansson" <leifj@it.su.se>
To: <achim@grolmsnet.de>
Cc: <bug-GSSAPI@rt.cpan.org>; <huaraz@moeller.plus.com>;
<perlgssapi-developer@lists.sourceforge.net>
Sent: Tuesday, January 29, 2008 11:38 PM
Subject: **SPAM ZEN 83.227.179.169** Re: [Perlgssapi-developer] [rt.cpan.org
#32788] Enhancement to use OpenSolaris/Solaris 10 native gss library
> Achim Grolms wrote:
>> On Wednesday 30 January 2008, you wrote:
>>
>>>> But *if* GSS_C_NT_HOSTBASED_SERVICE is available and
>>>> is not used...
>>>> Why the need to define it in GSSAPI.xs?
>>>> Why to define it in "the other direction"?
>>>>
>>>> #define gss_nt_service_name GSS_C_NT_HOSTBASED_SERVICE
>>>>
>>>> Hmm. Am I wrong?
>>>>
>>>> Thank you,
>>>> Achim
>>>>
>>> the only need would be to support applications which relied on the
>>> older definition - I can't think of any.
>>>
>>
>> "Application"... that means application using the GSSAPI.pm
>> module? This applications run against the code in
>> xs/OID.xs :
>>
>>
>> GSSAPI::OID_const
>> gss_nt_service_name()
>> CODE:
>> RETVAL = GSS_C_NT_HOSTBASED_SERVICE;
>> OUTPUT:
>> RETVAL
>>
>>
>> Is there a point a Perl-application using GSSAPI.pm
>> will have a use for the (C-level) 'gss_nt_service_name'?
>>
>> Thank you,
>> Achim
>>
> Not that I can think of
>