[OpenAFS-devel] Running afsd on AIX

Ben Huntsman ben@huntsmans.net
Mon, 15 Aug 2022 20:18:39 +0000


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

Hi guys-
   Changing the subject to keep topics making sense...

   Ok, I built using the prefix /opt/openafs.  Everything is in there.  The=
re are some issues:

1. On AIX, the install stripped the execute flags from /opt/openafs/lib/ope=
nafs/cfgafs64 and cfgexport64

   I added it back and the export and afs kernel module loaded!

2. Running afsd fails:

bash-4.2# /opt/openafs/sbin/afsd -stat 300 -dcache 100 -daemons 2 -volumes =
50
exec(): 0509-036 Cannot load program /opt/openafs/sbin/afsd because of the =
following errors:
        0509-150   Dependent module /opt/openafs/lib/librokenafs.a(libroken=
afs.so.2) could not be loaded.
        0509-152   Member librokenafs.so.2 is not found in archive


Something seems to be messed up with the linking:


bash-4.2# dump -H /opt/openafs/sbin/afsd

/opt/openafs/sbin/afsd:

                        ***Loader Section***
                      Loader Header Information
VERSION#         #SYMtableENT     #RELOCent        LENidSTR
0x00000001       0x00000043       0x000000a4       0x000002b9

#IMPfilID        OFFidSTR         LENstrTBL        OFFstrTBL
0x0000000b       0x00000e18       0x000001b4       0x000010d1


                        ***Import File Strings***
INDEX  PATH                          BASE                MEMBER
0      /project/openafs/src/auth/.libs:/project/openafs/src/audit/.libs:/pr=
oject/openafs/src/rxkad/.libs:/project/openafs/src/crypto/rfc3961/.libs:/pr=
oject/openafs/src/util/.libs:/project/openafs/src/sys/.libs:/project/openaf=
s/src/cmd/.libs:/project/openafs/src/comerr/.libs:/project/openafs/src/rx/.=
libs:/project/openafs/src/opr/.libs:/opt/openafs/lib:/opt/IBM/xlmass/8.1.3/=
lib/aix61:/opt/IBM/xlc/13.1.3/lib:/usr/lib:/lib
1                                    libc.a              shr.o
2                                    libpthread.a        shr_xpg5.o
3                                    liboafs_opr.a       liboafs_opr.so.0
4                                    liboafs_util.a      liboafs_util.so.0
5                                    liboafs_cmd.a       liboafs_cmd.so.0
6                                    liboafs_sys.a       liboafs_sys.so.0
7                                    liboafs_auth.a      liboafs_auth.so.0
8                                    librokenafs.a       librokenafs.so.2
9                                    libafshcrypto.a     libafshcrypto.so.2
10     /                             unix


Is this libtool's doing?

Thanks!

-Ben


--_000_MWHPR0701MB36749E06BD652BCB1CA2DEBEA7689MWHPR0701MB3674_
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">
&nbsp; &nbsp;Changing the subject to keep topics making sense...</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;Ok, I built using the prefix /opt/openafs.&nbsp; Everything is=
 in there.&nbsp; There are some issues:</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">
1. On AIX, the install stripped the execute flags from /opt/openafs/lib/ope=
nafs/cfgafs64 and cfgexport64</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;I added it back and the export and afs kernel module loaded!</=
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">
2. Running afsd fails:</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">
bash-4.2# /opt/openafs/sbin/afsd -stat 300 -dcache 100 -daemons 2 -volumes =
50
<div>exec(): 0509-036 Cannot load program /opt/openafs/sbin/afsd because of=
 the following errors:</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; 0509-150 &nbsp; Dependent module /opt/open=
afs/lib/librokenafs.a(librokenafs.so.2) could not be loaded.</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; 0509-152 &nbsp; Member librokenafs.so.2 is=
 not found in archive</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">
Something seems to be messed up with the linking:</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">
<br>
</div>
<div style=3D"font-family: Calibri, Arial, Helvetica, sans-serif; font-size=
: 12pt; color: rgb(0, 0, 0);" class=3D"elementToProof">
bash-4.2# dump -H /opt/openafs/sbin/afsd
<div><br>
</div>
<div>/opt/openafs/sbin/afsd:</div>
<div><br>
</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; ***Loader Section***</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; Loader Header Information</div>
<div>VERSION# &nbsp; &nbsp; &nbsp; &nbsp; #SYMtableENT &nbsp; &nbsp; #RELOC=
ent &nbsp; &nbsp; &nbsp; &nbsp;LENidSTR</div>
<div>0x00000001 &nbsp; &nbsp; &nbsp; 0x00000043 &nbsp; &nbsp; &nbsp; 0x0000=
00a4 &nbsp; &nbsp; &nbsp; 0x000002b9</div>
<div><br>
</div>
<div>#IMPfilID &nbsp; &nbsp; &nbsp; &nbsp;OFFidSTR &nbsp; &nbsp; &nbsp; &nb=
sp; LENstrTBL &nbsp; &nbsp; &nbsp; &nbsp;OFFstrTBL</div>
<div>0x0000000b &nbsp; &nbsp; &nbsp; 0x00000e18 &nbsp; &nbsp; &nbsp; 0x0000=
01b4 &nbsp; &nbsp; &nbsp; 0x000010d1</div>
<div><br>
</div>
<div><br>
</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; ***Import File Strings***</div>
<div>INDEX &nbsp;PATH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbs=
p; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BASE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp=
; &nbsp; &nbsp; &nbsp;MEMBER</div>
<div>0 &nbsp; &nbsp; &nbsp;/project/openafs/src/auth/.libs:/project/openafs=
/src/audit/.libs:/project/openafs/src/rxkad/.libs:/project/openafs/src/cryp=
to/rfc3961/.libs:/project/openafs/src/util/.libs:/project/openafs/src/sys/.=
libs:/project/openafs/src/cmd/.libs:/project/openafs/src/comerr/.libs:/proj=
ect/openafs/src/rx/.libs:/project/openafs/src/opr/.libs:/opt/openafs/lib:/o=
pt/IBM/xlmass/8.1.3/lib/aix61:/opt/IBM/xlc/13.1.3/lib:/usr/lib:/lib</div>
<div>1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp=
; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;libc.a &nbsp; &nbs=
p; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;shr.o</div>
<div>2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp=
; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;libpthread.a &nbsp=
; &nbsp; &nbsp; &nbsp;shr_xpg5.o</div>
<div>3 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp=
; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;liboafs_opr.a &nbs=
p; &nbsp; &nbsp; liboafs_opr.so.0</div>
<div>4 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp=
; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;liboafs_util.a &nb=
sp; &nbsp; &nbsp;liboafs_util.so.0</div>
<div>5 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp=
; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;liboafs_cmd.a &nbs=
p; &nbsp; &nbsp; liboafs_cmd.so.0</div>
<div>6 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp=
; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;liboafs_sys.a &nbs=
p; &nbsp; &nbsp; liboafs_sys.so.0</div>
<div>7 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp=
; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;liboafs_auth.a &nb=
sp; &nbsp; &nbsp;liboafs_auth.so.0</div>
<div>8 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp=
; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;librokenafs.a &nbs=
p; &nbsp; &nbsp; librokenafs.so.2</div>
<div>9 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp=
; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;libafshcrypto.a &n=
bsp; &nbsp; libafshcrypto.so.2</div>
<div>10 &nbsp; &nbsp; / &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &n=
bsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; unix</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">
Is this libtool's doing?</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>
</body>
</html>

--_000_MWHPR0701MB36749E06BD652BCB1CA2DEBEA7689MWHPR0701MB3674_--