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

Ben Huntsman ben@huntsmans.net
Sun, 14 Aug 2022 20:09:36 +0000


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

Hi Daria-
   I just re-ran configure using that option, and it does print out that it=
 uses /opt/freeware/bin/krb5-config, however it still does not add the opti=
on -lk5crypto to the Kerberos build flags.

Thank you.

-Ben

________________________________
From: Ben Huntsman <ben@huntsmans.net>
Sent: Sunday, August 14, 2022 1:03 PM
To: Daria Phoebe Brashear <shadow@gmail.com>
Cc: Ken Hornstein <kenh@cmf.nrl.navy.mil>; openafs-devel@openafs.org <opena=
fs-devel@openafs.org>
Subject: Re: [OpenAFS-devel] AIX build fails with missing symbol .krb5_c_ma=
ke_random_key

I did not, I just used the option --with-krb5=3D/opt/freeware

Shouldn't that be enough since krb5-config is in /opt/freeware/bin?

Thank you!

-Ben

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

did you tell it to use krb5-config, and where it was?
PATH_KRB5_CONFIG=3D/path/to/krb5-config ./configure ...


On Sun, Aug 14, 2022 at 3:53 PM Ben Huntsman (ben@huntsmans.net)
<ben@huntsmans.net> wrote:
>
> 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 -lpthrea=
ds -lkrb5 -lk5crypto -lcom_err
>
>
> It would appear that the output from that is not being used by OpenAFS th=
ough, because in the original error I also didn't see the -blibpath... argu=
ments 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_=
make_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



--
Daria Phoebe Brashear
AuriStor, Inc
dariaphoebe.com

--_000_MWHPR0701MB367464822B7EBD9766B78BB7A7699MWHPR0701MB3674_
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 Daria-</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 just re-ran configure using that option, and it does print o=
ut that it uses /opt/freeware/bin/krb5-config, however it still does not ad=
d the option -lk5crypto to the Kerberos build flags.</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> Ben Huntsman &lt;ben@=
huntsmans.net&gt;<br>
<b>Sent:</b> Sunday, August 14, 2022 1:03 PM<br>
<b>To:</b> Daria Phoebe Brashear &lt;shadow@gmail.com&gt;<br>
<b>Cc:</b> Ken Hornstein &lt;kenh@cmf.nrl.navy.mil&gt;; openafs-devel@opena=
fs.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>
<style type=3D"text/css" style=3D"display:none">
<!--
p
	{margin-top:0;
	margin-bottom:0}
-->
</style>
<div dir=3D"ltr">
<div class=3D"x_elementToProof" style=3D"font-family:Calibri,Arial,Helvetic=
a,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I did not, I just used the option --with-krb5=3D/opt/freeware</div>
<div class=3D"x_elementToProof" style=3D"font-family:Calibri,Arial,Helvetic=
a,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class=3D"x_elementToProof" style=3D"font-family:Calibri,Arial,Helvetic=
a,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Shouldn't that be enough since krb5-config is in /opt/freeware/bin?</div>
<div class=3D"x_elementToProof" style=3D"font-family:Calibri,Arial,Helvetic=
a,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class=3D"x_elementToProof" style=3D"font-family:Calibri,Arial,Helvetic=
a,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Thank you!</div>
<div class=3D"x_elementToProof" style=3D"font-family:Calibri,Arial,Helvetic=
a,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div class=3D"x_elementToProof" style=3D"font-family:Calibri,Arial,Helvetic=
a,sans-serif; font-size:12pt; color:rgb(0,0,0)">
-Ben</div>
<div class=3D"x_elementToProof" style=3D"font-family:Calibri,Arial,Helvetic=
a,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div id=3D"x_appendonsend"></div>
<hr tabindex=3D"-1" style=3D"display:inline-block; width:98%">
<div id=3D"x_divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" =
color=3D"#000000" style=3D"font-size:11pt"><b>From:</b> Daria Phoebe Brashe=
ar &lt;shadow@gmail.com&gt;<br>
<b>Sent:</b> Sunday, August 14, 2022 12:57 PM<br>
<b>To:</b> Ben Huntsman &lt;ben@huntsmans.net&gt;<br>
<b>Cc:</b> Ken Hornstein &lt;kenh@cmf.nrl.navy.mil&gt;; openafs-devel@opena=
fs.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"x_BodyFragment"><font size=3D"2"><span style=3D"font-size:11p=
t">
<div class=3D"x_PlainText">did you tell it to use krb5-config, and where it=
 was?<br>
PATH_KRB5_CONFIG=3D/path/to/krb5-config ./configure ...<br>
<br>
<br>
On Sun, Aug 14, 2022 at 3:53 PM Ben Huntsman (ben@huntsmans.net)<br>
&lt;ben@huntsmans.net&gt; wrote:<br>
&gt;<br>
&gt; Hi Ken!<br>
&gt;&nbsp;&nbsp;&nbsp; No worries, but thank you for your pointers so far!<=
br>
&gt;<br>
&gt;&nbsp;&nbsp;&nbsp; It is interesting that krb5-config --libs does indee=
d show k5crypto:<br>
&gt;<br>
&gt; $ krb5-config --libs<br>
&gt; -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<br>
&gt;<br>
&gt;<br>
&gt; It would appear that the output from that is not being used by OpenAFS=
 though, because in the original error I also didn't see the -blibpath... a=
rguments nor references to /opt/freeware/lib64.<br>
&gt;<br>
&gt; Thanks!<br>
&gt;<br>
&gt; -Ben<br>
&gt;<br>
&gt; ________________________________<br>
&gt; From: Ken Hornstein &lt;kenh@cmf.nrl.navy.mil&gt;<br>
&gt; Sent: Sunday, August 14, 2022 12:10 PM<br>
&gt; To: Ben Huntsman &lt;ben@huntsmans.net&gt;<br>
&gt; Cc: openafs-devel@openafs.org &lt;openafs-devel@openafs.org&gt;<br>
&gt; Subject: Re: [OpenAFS-devel] AIX build fails with missing symbol .krb5=
_c_make_random_key<br>
&gt;<br>
&gt; &gt;Ah, yes, I believe you are right.&nbsp; That library does exist on=
 my<br>
&gt; &gt;system also, and I manually added it to Makefile.config and the bu=
ild<br>
&gt; &gt;continued.&nbsp; The question is then, why didn't ./configure dete=
ct it and<br>
&gt; &gt;add it?<br>
&gt;<br>
&gt; I can't speak for that; I lack the energy at this time to go delving<b=
r>
&gt; into the configure script for OpenAFS.&nbsp; The traditional way that =
Kerberos<br>
&gt; options are detected by autoconf (as Benjamin Kaduk alluded to) is<br>
&gt; you give it a path to a krb5-config script which will tell you the<br>
&gt; right compile and link-time options to build a Kerberos program.<br>
&gt;<br>
&gt; --Ken<br>
<br>
<br>
<br>
-- <br>
Daria Phoebe Brashear<br>
AuriStor, Inc<br>
dariaphoebe.com<br>
</div>
</span></font></div>
</div>
</body>
</html>

--_000_MWHPR0701MB367464822B7EBD9766B78BB7A7699MWHPR0701MB3674_--