[OpenAFS-devel] AIX build fails with missing symbol .krb5_c_make_random_key
Ben Huntsman
ben@huntsmans.net
Sun, 14 Aug 2022 06:31:35 +0000
--_000_MWHPR0701MB3674796EE70642DF77484A14A7699MWHPR0701MB3674_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi guys-
Sorry for the spam of late but thank you to everyone who's helped so far=
. Great progress is being made!
Currently, it's failing on aklog. Here's the output:
+ cd aklog
+ make all
/bin/sh ../../libtool --quiet --mode=3Dlink --tag=3DCC xlc_r -st=
atic -L/opt/freeware/lib -L/project/openafs/lib -L/project/openafs/lib -O=
-I/opt/freeware/include -DALLOW_REGISTER -O -K -D_NONSTD_TYPES -D_MBI=
=3Dvoid -I/project/openafs/src/config -I/project/openafs/include -I. -I.=
-DAFS_PTHREAD_ENV -o asetkey asetkey.o -L/opt/freeware/lib -lkrb5 =
-lcom_err -lkrb5support ../../src/ptserver/liboafs_prot.la ../../src/rxk=
ad/liboafs_rxkad.la ../../src/cmd/liboafs_cmd.la ../../src/opr/liboafs_op=
r.la ../../src/util/liboafs_util.la -L/project/openafs/lib -lafshcrypto -L=
/project/openafs/lib -lrokenafs -lpthread -ldl
ld: 0711-317 ERROR: Undefined symbol: .krb5_c_make_random_key
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more informati=
on.
make: 1254-004 The error code from the last command is 8.
There is a changeset https://gerrit.openafs.org/#/c/10107/ that looks like =
a substantially similar build failure, except on Linux. However, that's a =
pretty old change and it would appear that this code worked on AIX more rec=
ently. One thing to note, I'm using the krb5 from the AIX Linux Toolbox, a=
nd krb5.a is in /opt/freeware/lib. nm shows that it indeed has that symbol=
in it, and it's there on the command line... Do most AIX users typically =
use the AIX Linux Toolbox kerberos, or a different implementation?
Thanks again!
-Ben
Gerrit Code Review - OpenAFS<https://gerrit.openafs.org/#/c/10107/>
ID: Subject: Status: Owner: Project: Branch: Updated: Size: CR: V: 15085: v=
iced: Keep host locked after h_Lookup_r: Merge Conflict
gerrit.openafs.org
--_000_MWHPR0701MB3674796EE70642DF77484A14A7699MWHPR0701MB3674_
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">
Hi guys-</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
Sorry for the spam of late but thank you to everyone who's hel=
ped so far. Great progress is being made!</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">
Currently, it's failing on aklog. Here's the output:</di=
v>
<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">
+ cd aklog
<div>+ make all</div>
<div> /bin/sh ../../libtool --quiet --mode=
=3Dlink --tag=3DCC xlc_r -static -L/opt/freeware/lib -L/projec=
t/openafs/lib -L/project/openafs/lib -O -I/opt/freeware/include=
-DALLOW_REGISTER -O -K -D_NONSTD_TYPES -D_MBI=3Dvoid -I/proj=
ect/openafs/src/config
-I/project/openafs/include -I. -I. -DAFS_PTHREAD=
_ENV -o asetkey asetkey.o -L/opt/freeware/lib -lkrb5 -lcom_err=
-lkrb5support ../../src/ptserver/liboafs_prot.la ../../src/rx=
kad/liboafs_rxkad.la ../../src/cmd/liboafs_cmd.la ../../src/opr=
/liboafs_opr.la
../../src/util/liboafs_util.la -L/project/openafs/lib -lafshcrypto -=
L/project/openafs/lib -lrokenafs -lpthread -ldl</div>
<div>ld: 0711-317 ERROR: Undefined symbol: .krb5_c_make_random_key</div>
<div>ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more info=
rmation.</div>
<div>make: 1254-004 The error code from the last command is 8.</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">
There is a changeset <a href=3D"https://gerrit.openafs.org/#/c/10107/"=
id=3D"LPlnkOWALinkPreview">https://gerrit.openafs.org/#/c/10107/</a> =
that looks like a substantially similar build failure, except on Linux.&nbs=
p; However, that's a pretty old change and it would
appear that this code worked on AIX more recently. One thing to note=
, I'm using the krb5 from the AIX Linux Toolbox, and krb5.a is in /opt/free=
ware/lib. nm shows that it indeed has that symbol in it, and it's the=
re on the command line... Do most AIX users
typically use the AIX Linux Toolbox kerberos, or a different implementatio=
n?</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 again!</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 class=3D"_Entity _EType_OWALinkPreview _EId_OWALinkPreview _EReadonly_=
1">
<div id=3D"LPBorder_GTaHR0cHM6Ly9nZXJyaXQub3BlbmFmcy5vcmcvIy9jLzEwMTA3Lw.."=
class=3D"LPBorder697064" style=3D"width: 100%; margin-top: 16px; margin-bo=
ttom: 16px; position: relative; max-width: 800px; min-width: 424px;">
<table id=3D"LPContainer697064" role=3D"presentation" style=3D"padding: 12p=
x 36px 12px 12px; width: 100%; border-width: 1px; border-style: solid; bord=
er-color: rgb(200, 200, 200); border-radius: 2px;">
<tbody>
<tr valign=3D"top" style=3D"border-spacing: 0px;">
<td style=3D"width: 100%;">
<div id=3D"LPTitle697064" style=3D"font-size: 21px; font-weight: 300; margi=
n-right: 8px; font-family: wf_segoe-ui_light, "Segoe UI Light", &=
quot;Segoe WP Light", "Segoe UI", "Segoe WP", Taho=
ma, Arial, sans-serif; margin-bottom: 12px;">
<a target=3D"_blank" id=3D"LPUrlAnchor697064" href=3D"https://gerrit.openaf=
s.org/#/c/10107/" style=3D"text-decoration: none; color: var(--themePrimary=
);">Gerrit Code Review - OpenAFS</a></div>
<div id=3D"LPDescription697064" style=3D"font-size: 14px; max-height: 100px=
; color: rgb(102, 102, 102); font-family: wf_segoe-ui_normal, "Segoe U=
I", "Segoe WP", Tahoma, Arial, sans-serif; margin-bottom: 12=
px; margin-right: 8px; overflow: hidden;">
ID: Subject: Status: Owner: Project: Branch: Updated: Size: CR: V: 15085: v=
iced: Keep host locked after h_Lookup_r: Merge Conflict</div>
<div id=3D"LPMetadata697064" style=3D"font-size: 14px; font-weight: 400; co=
lor: rgb(166, 166, 166); font-family: wf_segoe-ui_normal, "Segoe UI&qu=
ot;, "Segoe WP", Tahoma, Arial, sans-serif;">
gerrit.openafs.org</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<br>
</body>
</html>
--_000_MWHPR0701MB3674796EE70642DF77484A14A7699MWHPR0701MB3674_--