[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">
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">
Ok, I built using the prefix /opt/openafs. Everything is=
in there. 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">
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> 0509-150 Dependent module /opt/open=
afs/lib/librokenafs.a(librokenafs.so.2) could not be loaded.</div>
<div> 0509-152 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> =
***Loader Section***</div>
<div> =
Loader Header Information</div>
<div>VERSION# #SYMtableENT #RELOC=
ent LENidSTR</div>
<div>0x00000001 0x00000043 0x0000=
00a4 0x000002b9</div>
<div><br>
</div>
<div>#IMPfilID OFFidSTR &nb=
sp; LENstrTBL OFFstrTBL</div>
<div>0x0000000b 0x00000e18 0x0000=
01b4 0x000010d1</div>
<div><br>
</div>
<div><br>
</div>
<div> =
***Import File Strings***</div>
<div>INDEX PATH &nbs=
p; BASE  =
; MEMBER</div>
<div>0 /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  =
; libc.a &nbs=
p; shr.o</div>
<div>2  =
; libpthread.a  =
; shr_xpg5.o</div>
<div>3  =
; liboafs_opr.a &nbs=
p; liboafs_opr.so.0</div>
<div>4  =
; liboafs_util.a &nb=
sp; liboafs_util.so.0</div>
<div>5  =
; liboafs_cmd.a &nbs=
p; liboafs_cmd.so.0</div>
<div>6  =
; liboafs_sys.a &nbs=
p; liboafs_sys.so.0</div>
<div>7  =
; liboafs_auth.a &nb=
sp; liboafs_auth.so.0</div>
<div>8  =
; librokenafs.a &nbs=
p; librokenafs.so.2</div>
<div>9  =
; libafshcrypto.a &n=
bsp; libafshcrypto.so.2</div>
<div>10 / &n=
bsp; 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_--