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

Ben Huntsman ben@huntsmans.net
Sun, 14 Aug 2022 19:52:23 +0000


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

Hi Ken!
   No worries, but thank you for your pointers so far!

   It is interesting that krb5-config --libs does indeed show k5crypto:

$ krb5-config --libs
-L/opt/freeware/lib64 -Wl,-blibpath:/opt/freeware/lib64:/opt/freeware/lib:/=
usr/lib:/lib -L/opt/freeware/lib64 -L/opt/freeware/lib -Wl,-brtl -lpthreads=
 -lkrb5 -lk5crypto -lcom_err


It would appear that the output from that is not being used by OpenAFS thou=
gh, because in the original error I also didn't see the -blibpath... argume=
nts nor references to /opt/freeware/lib64.

Thanks!

-Ben

________________________________
From: Ken Hornstein <kenh@cmf.nrl.navy.mil>
Sent: Sunday, August 14, 2022 12:10 PM
To: Ben Huntsman <ben@huntsmans.net>
Cc: openafs-devel@openafs.org <openafs-devel@openafs.org>
Subject: Re: [OpenAFS-devel] AIX build fails with missing symbol .krb5_c_ma=
ke_random_key

>Ah, yes, I believe you are right.  That library does exist on my
>system also, and I manually added it to Makefile.config and the build
>continued.  The question is then, why didn't ./configure detect it and
>add it?

I can't speak for that; I lack the energy at this time to go delving
into the configure script for OpenAFS.  The traditional way that Kerberos
options are detected by autoconf (as Benjamin Kaduk alluded to) is
you give it a path to a krb5-config script which will tell you the
right compile and link-time options to build a Kerberos program.

--Ken

--_000_MWHPR0701MB3674CAB6F6ABC28851A5579FA7699MWHPR0701MB3674_
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 Ken!</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
&nbsp; &nbsp;No worries, but thank you for your pointers so far!</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">
&nbsp; &nbsp;It is interesting that krb5-config --libs does indeed show k5c=
rypto:</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">
$ krb5-config --libs
<div>-L/opt/freeware/lib64 -Wl,-blibpath:/opt/freeware/lib64:/opt/freeware/=
lib:/usr/lib:/lib -L/opt/freeware/lib64 -L/opt/freeware/lib -Wl,-brtl -lpth=
reads -lkrb5 -lk5crypto -lcom_err</div>
<br>
</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">
It would appear that the output from that is not being used by OpenAFS thou=
gh, because in the original error I also didn't see the -blibpath... argume=
nts nor references to /opt/freeware/lib64.</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 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> Ken Hornstein &lt;ken=
h@cmf.nrl.navy.mil&gt;<br>
<b>Sent:</b> Sunday, August 14, 2022 12:10 PM<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 fails with missing symbol .kr=
b5_c_make_random_key</font>
<div>&nbsp;</div>
</div>
<div class=3D"BodyFragment"><font size=3D"2"><span style=3D"font-size:11pt;=
">
<div class=3D"PlainText">&gt;Ah, yes, I believe you are right.&nbsp; That l=
ibrary does exist on my<br>
&gt;system also, and I manually added it to Makefile.config and the build<b=
r>
&gt;continued.&nbsp; The question is then, why didn't ./configure detect it=
 and<br>
&gt;add it?<br>
<br>
I can't speak for that; I lack the energy at this time to go delving<br>
into the configure script for OpenAFS.&nbsp; The traditional way that Kerbe=
ros<br>
options are detected by autoconf (as Benjamin Kaduk alluded to) is<br>
you give it a path to a krb5-config script which will tell you the<br>
right compile and link-time options to build a Kerberos program.<br>
<br>
--Ken<br>
</div>
</span></font></div>
</body>
</html>

--_000_MWHPR0701MB3674CAB6F6ABC28851A5579FA7699MWHPR0701MB3674_--