[OpenAFS-devel] AIX build fails with missing symbol .krb5_c_make_random_key

Ben Huntsman ben@huntsmans.net
Mon, 15 Aug 2022 19:07:09 +0000


--_000_MWHPR0701MB3674EA646E07BFF858BF8195A7689MWHPR0701MB3674_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Ok, I got the whole tree to build!  Now to test!
I had to add one more symbol to an .sym file, fix one of the Makefiles for =
AIX, and I manually edited one of the generated Makefiles to append -lk5cry=
pto to the kerberos libs.

One thing I noticed, it seems that the rc files for AIX in src/afsd are not=
 installed, and are only referenced in the "make dest" target.  Furthermore=
, they seem to be hard-coded to expect Transarc-style paths.  Did anyone bu=
ild for AIX using openafs-style paths?

Thanks.

-Ben



________________________________
From: Jeffrey E Altman
Sent: Monday, August 15, 2022 5:49 AM
To: Ben Huntsman; Daria Phoebe Brashear
Cc: Benjamin Kaduk; Ken Hornstein; openafs-devel@openafs.org
Subject: Re: [OpenAFS-devel] AIX build fails with missing symbol .krb5_c_ma=
ke_random_key

On 8/15/2022 2:25 AM, Ben Huntsman (ben@huntsmans.net<mailto:ben@huntsmans.=
net>) wrote:
Hi there!
   Ah, that makes some sense.  So presumably there hasn't ever been a succe=
ssful build on AIX 6.1 using kerberos.  Is it practical to try to build wit=
hout it?


AIX was built with Kerberos 5.   As I said, it was known to work for AIX 6.=
1 TL5 and OpenAFS 1.6.5.


Somewhere between AIX 6.1 TL5 and TL8 the kernel module stopped functioning=
 properly and no one ever had the combination of desire, skills, knowledge =
and access to AIX systems to figure out why.


The build failures you are experiencing could be for several reasons:

  *   The wrong libraries are being used because of 32-bit vs 64-bit.
     *   How many versions of krb5-config are there?   Are there two, one f=
or 32-bit and the other for 64-bit?
  *   Perhaps krb5_c_make_random_key isn't in the export list for AIX?
  *   Other broken behavior in the configure tests related to AIX.




--_000_MWHPR0701MB3674EA646E07BFF858BF8195A7689MWHPR0701MB3674_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<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">
Ok, I got the whole tree to build!&nbsp; Now to test!</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
I had to add one more symbol to an .sym file, fix one of the Makefiles for =
AIX, and I manually edited one of the generated Makefiles to append -lk5cry=
pto to the kerberos libs.</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">
One thing I noticed, it seems that the rc files for AIX in src/afsd are not=
 installed, and are only referenced in the &quot;make dest&quot; target.&nb=
sp; Furthermore, they seem to be hard-coded to expect Transarc-style paths.=
&nbsp; Did anyone build for AIX using openafs-style
 paths?</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">
Thanks.</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>
<div><br>
</div>
<div style=3D"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12p=
t; color:rgb(0,0,0);">
<br>
<hr tabindex=3D"-1" style=3D"display:inline-block; width:98%;">
<b>From:</b> Jeffrey E Altman<br>
<b>Sent:</b> Monday, August 15, 2022 5:49 AM<br>
<b>To:</b> Ben Huntsman; Daria Phoebe Brashear<br>
<b>Cc:</b> Benjamin Kaduk; Ken Hornstein; openafs-devel@openafs.org<br>
<b>Subject:</b> Re: [OpenAFS-devel] AIX build fails with missing symbol .kr=
b5_c_make_random_key
<div><br>
</div>
</div>
<div class=3D"rps_2f4d">
<div>
<div class=3D"x_moz-cite-prefix">On 8/15/2022 2:25 AM, Ben Huntsman (<a hre=
f=3D"mailto:ben@huntsmans.net" target=3D"_blank" rel=3D"noopener noreferrer=
" data-auth=3D"NotApplicable" class=3D"x_moz-txt-link-abbreviated">ben@hunt=
smans.net</a>) wrote:<br>
</div>
<blockquote type=3D"cite">
<div class=3D"x_elementToProof" style=3D"font-family:Calibri,Arial,Helvetic=
a,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi there!</div>
<div class=3D"x_elementToProof" style=3D"font-family:Calibri,Arial,Helvetic=
a,sans-serif; font-size:12pt; color:rgb(0,0,0)">
&nbsp; &nbsp;Ah, that makes some sense.&nbsp; So presumably there hasn't ev=
er been a successful build on AIX 6.1 using kerberos.&nbsp; Is it practical=
 to try to build without it?</div>
<br>
</blockquote>
<p style=3D"margin-top: 0px; margin-bottom: 0px;">AIX was built with Kerber=
os 5.&nbsp;&nbsp; As I said, it was known to work for AIX 6.1 TL5 and OpenA=
FS 1.6.5.&nbsp;
<br>
</p>
<p style=3D"margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style=3D"margin-top: 0px; margin-bottom: 0px;">Somewhere between AIX 6.1=
 TL5 and TL8 the kernel module stopped functioning properly and no one ever=
 had the combination of desire, skills, knowledge and access to AIX systems=
 to figure out why.</p>
<p style=3D"margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style=3D"margin-top: 0px; margin-bottom: 0px;">The build failures you ar=
e experiencing could be for several reasons:</p>
<ul>
<li>The wrong libraries are being used because of 32-bit vs 64-bit.&nbsp; <=
br>
</li><ul>
<li>How many versions of krb5-config are there?&nbsp;&nbsp; Are there two, =
one for 32-bit and the other for 64-bit?</li></ul>
<li>Perhaps krb5_c_make_random_key isn't in the export list for AIX?</li><l=
i>Other broken behavior in the configure tests related to AIX.</li></ul>
<p style=3D"margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style=3D"margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style=3D"margin-top: 0px; margin-bottom: 0px;"><br>
</p>
</div>
</div>
</div>
</body>
</html>

--_000_MWHPR0701MB3674EA646E07BFF858BF8195A7689MWHPR0701MB3674_--