[OpenAFS-devel] AIX build works!

Ben Huntsman ben@huntsmans.net
Fri, 9 Sep 2022 15:14:28 +0000


--_000_MWHPR0701MB367405A7599ED228BDC5FCA1A7439MWHPR0701MB3674_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

Ah, yes, there are two different Kerberos packages available on AIX, but th=
ey're both based on MIT.  The one in /opt/freeware is the one from the IBM =
AIX Toolbox for Linux.  IBM also provides their own build that installs usi=
ng the AIX installp system and goes in /usr/krb5.  That package is availabl=
e on the 2nd AIX disc, if you have media.  The installp one is the one I wa=
s using.  If you think we'd have better luck focusing on the /opt/freeware =
one, I'm happy to switch over to that instead.

Thank you!

-Ben

________________________________
From: Daria Phoebe Brashear <shadow@gmail.com>
Sent: Friday, September 9, 2022 8:10 AM
To: Ben Huntsman <ben@huntsmans.net>
Cc: openafs-devel@openafs.org <openafs-devel@openafs.org>
Subject: Re: [OpenAFS-devel] AIX build works!



On Fri, Sep 9, 2022 at 11:06 Ben Huntsman <ben@huntsmans.net<mailto:ben@hun=
tsmans.net>> wrote:
Hi there-
   I think there's more to it than that.  First of all, IBM doesn't provide=
 a krb5-config script with their kerberos.

I guess whatever 6.X has is different than in 7; the Kerberos in /opt/freew=
are works modulo what I described.

And if you run nm on libk5crypto.a, it's not wrong that the symbol it's loo=
king for .krb5int_hash_md5 isn't there, just krb5int_hash_md5 without the d=
ot.  I will keep looking at it, especially if the AIX build changes get mer=
ged.

I don=92t have that power alas. Good luck.

Thank you!

-Ben

________________________________
From: Daria Phoebe Brashear <shadow@gmail.com<mailto:shadow@gmail.com>>
Sent: Thursday, September 8, 2022 9:41 AM
To: Ben Huntsman <ben@huntsmans.net<mailto:ben@huntsmans.net>>
Cc: openafs-devel@openafs.org<mailto:openafs-devel@openafs.org> <openafs-de=
vel@openafs.org<mailto:openafs-devel@openafs.org>>
Subject: Re: [OpenAFS-devel] AIX build works!

On Wed, Aug 24, 2022 at 2:07 PM Ben Huntsman (ben@huntsmans.net<mailto:ben@=
huntsmans.net>)
<ben@huntsmans.net<mailto:ben@huntsmans.net>> wrote:
>
> Hi everyone-
>    With the last change I put up on gerrit this morning, the AIX build co=
mpletes on AIX 6.1 6100-09-12!  And, while I'm still trying to get the Kerb=
reos setup ironed out, loading the kernel extension and starting afsd doesn=
't cause a panic anymore!  So it appears to be mostly working!
>
>    The one odd thing I did have to do is to manually add "-lk5crypto" to =
the Kerberos libs in src/config/Makefile.config, as I couldn't get the conf=
igure script to detect it properly.  I'm not sure if that's an issue with I=
BM's Kerberos implementation, or with the OpenAFS configure script...

At a guess, you need to either make krb5-config return 32 bit libpaths
first, or force your compiler and linker to be in 64 bit mode (e.g.
xlc_r -Wc,lp64 -Wl,lp64, ld -b64, gcc -maix64). Otherwise, the
configure tests throw errors which get sensed as the symbol not being
detected instead of what they actually are.

--
Daria Phoebe Brashear
AuriStor, Inc
dariaphoebe.com<http://dariaphoebe.com>
--
--
Daria Phoebe Brashear
AuriStor, Inc.
dariaphoebe.com<http://dariaphoebe.com>

--_000_MWHPR0701MB367405A7599ED228BDC5FCA1A7439MWHPR0701MB3674_
Content-Type: text/html; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1=
252">
<style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo=
ttom:0;} </style>
</head>
<body dir=3D"ltr">
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
Ah, yes, there are two different Kerberos packages available on AIX, but th=
ey're both based on MIT.&nbsp; The one in /opt/freeware is the one from the=
 IBM AIX Toolbox for Linux.&nbsp; IBM also provides their own build that in=
stalls using the AIX installp system and goes
 in /usr/krb5.&nbsp; That package is available on the 2<span><sup>nd</sup>&=
nbsp;AIX disc, if you have media.&nbsp; The installp one is the one I was u=
sing.&nbsp; If you think we'd have better luck focusing on the /opt/freewar=
e one, I'm happy to switch over to that instead.</span></div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
<span><br>
</span></div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
<span>Thank you!</span></div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
<span><br>
</span></div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
<span>-Ben</span></div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
<span><br>
</span></div>
<div id=3D"appendonsend"></div>
<hr style=3D"display:inline-block;width:98%" tabindex=3D"-1">
<div id=3D"divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" st=
yle=3D"font-size:11pt" color=3D"#000000"><b>From:</b> Daria Phoebe Brashear=
 &lt;shadow@gmail.com&gt;<br>
<b>Sent:</b> Friday, September 9, 2022 8:10 AM<br>
<b>To:</b> Ben Huntsman &lt;ben@huntsmans.net&gt;<br>
<b>Cc:</b> openafs-devel@openafs.org &lt;openafs-devel@openafs.org&gt;<br>
<b>Subject:</b> Re: [OpenAFS-devel] AIX build works!</font>
<div>&nbsp;</div>
</div>
<div>
<div><br>
</div>
<div><br>
<div class=3D"x_gmail_quote">
<div dir=3D"ltr" class=3D"x_gmail_attr">On Fri, Sep 9, 2022 at 11:06 Ben Hu=
ntsman &lt;<a href=3D"mailto:ben@huntsmans.net">ben@huntsmans.net</a>&gt; w=
rote:<br>
</div>
<blockquote class=3D"x_gmail_quote" style=3D"margin:0px 0px 0px 0.8ex; bord=
er-left-width:1px; border-left-style:solid; padding-left:1ex; border-left-c=
olor:rgb(204,204,204)">
<div dir=3D"ltr">
<div style=3D"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12p=
t; color:rgb(0,0,0)">
Hi there-</div>
<div style=3D"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12p=
t; color:rgb(0,0,0)">
&nbsp; &nbsp;I think there's more to it than that.&nbsp; First of all, IBM =
doesn't provide a krb5-config script with their kerberos.&nbsp;
</div>
</div>
</blockquote>
<div dir=3D"auto"><br>
</div>
<div dir=3D"auto">I guess whatever 6.X has is different than in 7; the Kerb=
eros in /opt/freeware works modulo what I described.</div>
<div dir=3D"auto"><br>
</div>
<blockquote class=3D"x_gmail_quote" style=3D"margin:0px 0px 0px 0.8ex; bord=
er-left-width:1px; border-left-style:solid; padding-left:1ex; border-left-c=
olor:rgb(204,204,204)">
<div dir=3D"ltr">
<div dir=3D"auto" style=3D"font-family:Calibri,Arial,Helvetica,sans-serif; =
font-size:12pt; color:rgb(0,0,0)">
And if you run nm on libk5crypto.a, it's not wrong that the symbol it's loo=
king for .krb5int_hash_md5 isn't there, just&nbsp;krb5int_hash_md5 without =
the dot.&nbsp; I will keep looking at it, especially if the AIX build chang=
es get merged.</div>
<div style=3D"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12p=
t; color:rgb(0,0,0)">
</div>
</div>
</blockquote>
<div dir=3D"auto"><br>
</div>
<div dir=3D"auto">I don=92t have that power alas. Good luck.</div>
<blockquote class=3D"x_gmail_quote" style=3D"margin:0px 0px 0px 0.8ex; bord=
er-left-width:1px; border-left-style:solid; padding-left:1ex; border-left-c=
olor:rgb(204,204,204)">
<div dir=3D"ltr">
<div style=3D"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12p=
t; color:rgb(0,0,0)">
<br>
</div>
<div style=3D"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12p=
t; color:rgb(0,0,0)">
Thank you!</div>
<div style=3D"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12p=
t; color:rgb(0,0,0)">
<br>
</div>
<div style=3D"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12p=
t; color:rgb(0,0,0)">
-Ben</div>
<div style=3D"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12p=
t; color:rgb(0,0,0)">
<br>
</div>
<div id=3D"x_m_5775153941844645080appendonsend"></div>
<hr style=3D"display:inline-block; width:98%">
<div id=3D"x_m_5775153941844645080divRplyFwdMsg" dir=3D"ltr"><font face=3D"=
Calibri, sans-serif" style=3D"font-size:11pt; font-family:Calibri,sans-seri=
f; color:rgb(0,0,0)"><b style=3D"font-family:Calibri,sans-serif">From:</b> =
Daria Phoebe Brashear &lt;<a href=3D"mailto:shadow@gmail.com" target=3D"_bl=
ank" style=3D"font-family:Calibri,sans-serif">shadow@gmail.com</a>&gt;<br>
<b style=3D"font-family:Calibri,sans-serif">Sent:</b> Thursday, September 8=
, 2022 9:41 AM<br>
<b style=3D"font-family:Calibri,sans-serif">To:</b> Ben Huntsman &lt;<a hre=
f=3D"mailto:ben@huntsmans.net" target=3D"_blank" style=3D"font-family:Calib=
ri,sans-serif">ben@huntsmans.net</a>&gt;<br>
<b style=3D"font-family:Calibri,sans-serif">Cc:</b> <a href=3D"mailto:opena=
fs-devel@openafs.org" target=3D"_blank" style=3D"font-family:Calibri,sans-s=
erif">
openafs-devel@openafs.org</a> &lt;<a href=3D"mailto:openafs-devel@openafs.o=
rg" target=3D"_blank" style=3D"font-family:Calibri,sans-serif">openafs-deve=
l@openafs.org</a>&gt;<br>
<b style=3D"font-family:Calibri,sans-serif">Subject:</b> Re: [OpenAFS-devel=
] AIX build works!</font>
<div>&nbsp;</div>
</div>
</div>
<div dir=3D"ltr">
<div><font size=3D"2" style=3D"color:rgb(0,0,0)"><span style=3D"font-size:1=
1pt">
<div>On Wed, Aug 24, 2022 at 2:07 PM Ben Huntsman (<a href=3D"mailto:ben@hu=
ntsmans.net" target=3D"_blank">ben@huntsmans.net</a>)<br>
&lt;<a href=3D"mailto:ben@huntsmans.net" target=3D"_blank">ben@huntsmans.ne=
t</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi everyone-<br>
&gt;&nbsp;&nbsp;&nbsp; With the last change I put up on gerrit this morning=
, the AIX build completes on AIX 6.1 6100-09-12!&nbsp; And, while I'm still=
 trying to get the Kerbreos setup ironed out, loading the kernel extension =
and starting afsd doesn't cause a panic anymore!&nbsp; So it
 appears to be mostly working!<br>
&gt;<br>
&gt;&nbsp;&nbsp;&nbsp; The one odd thing I did have to do is to manually ad=
d &quot;-lk5crypto&quot; to the Kerberos libs in src/config/Makefile.config=
, as I couldn't get the configure script to detect it properly.&nbsp; I'm n=
ot sure if that's an issue with IBM's Kerberos implementation, or
 with the OpenAFS configure script...<br>
<br>
At a guess, you need to either make krb5-config return 32 bit libpaths<br>
first, or force your compiler and linker to be in 64 bit mode (e.g.<br>
xlc_r -Wc,lp64 -Wl,lp64, ld -b64, gcc -maix64). Otherwise, the<br>
configure tests throw errors which get sensed as the symbol not being<br>
detected instead of what they actually are.<br>
<br>
-- <br>
Daria Phoebe Brashear<br>
AuriStor, Inc<br>
<a href=3D"http://dariaphoebe.com" target=3D"_blank">dariaphoebe.com</a><br=
>
</div>
</span></font></div>
</div>
</blockquote>
</div>
</div>
-- <br>
<div dir=3D"ltr" class=3D"x_gmail_signature" data-smartmail=3D"gmail_signat=
ure">--<br>
Daria Phoebe Brashear<br>
AuriStor, Inc.<br>
<a href=3D"http://dariaphoebe.com">dariaphoebe.com</a></div>
</div>
</body>
</html>

--_000_MWHPR0701MB367405A7599ED228BDC5FCA1A7439MWHPR0701MB3674_--