[OpenAFS-devel] AIX build works!

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


--_000_MWHPR0701MB367406CFC99DC9538E384132A7439MWHPR0701MB3674_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

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.  And if you run nm on libk5crypt=
o.a, it's not wrong that the symbol it's looking for .krb5int_hash_md5 isn'=
t there, just krb5int_hash_md5 without the dot.  I will keep looking at it,=
 especially if the AIX build changes get merged.

Thank you!

-Ben

________________________________
From: Daria Phoebe Brashear <shadow@gmail.com>
Sent: Thursday, September 8, 2022 9:41 AM
To: Ben Huntsman <ben@huntsmans.net>
Cc: openafs-devel@openafs.org <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)
<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

--_000_MWHPR0701MB367406CFC99DC9538E384132A7439MWHPR0701MB3674_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<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">
Hi there-</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
&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; And if you =
run nm on libk5crypto.a, it's not wrong that the symbol it's looking for .k=
rb5int_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 chan=
ges get merged.</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
<br>
</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
Thank you!</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
<br>
</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
-Ben</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
<br>
</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> Thursday, September 8, 2022 9:41 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 class=3D"BodyFragment"><font size=3D"2"><span style=3D"font-size:11pt;=
">
<div class=3D"PlainText">On Wed, Aug 24, 2022 at 2:07 PM Ben Huntsman (ben@=
huntsmans.net)<br>
&lt;ben@huntsmans.net&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>
dariaphoebe.com<br>
</div>
</span></font></div>
</body>
</html>

--_000_MWHPR0701MB367406CFC99DC9538E384132A7439MWHPR0701MB3674_--