[OpenAFS-devel] Clang error on AIX
Ben Huntsman
ben@huntsmans.net
Wed, 18 Dec 2024 15:39:19 +0000
--_000_BYAPR07MB58794C4ADA59D1339B4C8C71A7052BYAPR07MB5879namp_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi there-
Using the IBM clang-based Open XL C 17.1.0, I'm getting the following se=
quence of errors when trying to compile src/rx/AIX/rx_knet.c:
/home/build/openafs/src/rx/AIX/rx_knet.c:378:6: error: expected expression
MGETHDR(m, M_DONTWAIT, MT_DATA);
^
../sys/mbuf_macro.h:389:25: note: expanded from macro 'MGETHDR'
(m)->m_eyecat =3D EYEC_MBUFA; =
\
^
../sys/mbuf_base.h:79:61: note: expanded from macro 'EYEC_MBUFA'
#define EYEC_MBUFA __EYEC8('m','b','u','f','A','L','L','')/* %mbufALL =
*/
^
And a few others that are similar, all going back to the EYEC_MBUFA defi=
nition. The ^ is under the '' in case the font doesn't display this messag=
e correctly. What exactly is this telling me, and any suggestions on how =
to resolve? sys/mbuf_base.h is a system header and we can't exactly change=
it...
Thank you for any tips!
-Ben
--_000_BYAPR07MB58794C4ADA59D1339B4C8C71A7052BYAPR07MB5879namp_
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 class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; c=
olor: rgb(0, 0, 0);">
Hi there-</div>
<div class=3D"elementToProof" style=3D"line-height: normal; margin: 0px; fo=
nt-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helveti=
ca, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Using the IBM clang-based Open XL C 17.1.0, I'm getting the fo=
llowing sequence of errors when trying to compile src/rx/AIX/rx_knet.c:</di=
v>
<div class=3D"elementToProof" style=3D"line-height: normal; margin: 0px; fo=
nt-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helveti=
ca, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class=3D"elementToProof" style=3D"line-height: normal; margin: 0px; fo=
nt-family: "Courier New", monospace; font-size: 12pt; color: rgb(=
0, 0, 0);">
<b>/home/build/openafs/src/rx/AIX/rx_knet.c:378:6: error: expected expressi=
on</b></div>
<div style=3D"line-height: normal; margin: 0px; font-family: "Courier =
New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
MGETHDR(m, M_DONTWAIT, MT_DATA);<=
/div>
<div style=3D"line-height: normal; margin: 0px; font-family: "Courier =
New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
<b> ^</b></div>
<div style=3D"line-height: normal; margin: 0px; font-family: "Courier =
New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
<b>../sys/mbuf_macro.h:389:25: note: </b>expanded from macro 'MGETHDR'</div=
>
<div style=3D"line-height: normal; margin: 0px; font-family: "Courier =
New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
(m)->m_eyecat =3D EYEC_MBUFA; =
 =
; \</div>
<div style=3D"line-height: normal; margin: 0px; font-family: "Courier =
New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
<b> &n=
bsp; ^</b></div>
<div style=3D"line-height: normal; margin: 0px; font-family: "Courier =
New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
<b>../sys/mbuf_base.h:79:61: note: </b>expanded from macro 'EYEC_MBUFA'</di=
v>
<div style=3D"line-height: normal; margin: 0px; font-family: "Courier =
New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
#define EYEC_MBUFA __EYEC8('m','b','u','f','A','L','L',=
'')/* %mbufALL */</div>
<div style=3D"line-height: normal; margin: 0px; font-family: "Courier =
New", monospace; font-size: 12pt; color: rgb(0, 0, 0);">
<b> &n=
bsp; =
^</b></div>
<div class=3D"elementToProof" style=3D"line-height: normal; margin: 0px; fo=
nt-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helveti=
ca, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class=3D"elementToProof" style=3D"line-height: normal; margin: 0px; fo=
nt-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helveti=
ca, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
And a few others that are similar, all going back to the EYEC_=
MBUFA definition. The ^ is under the '' in case the font doesn't disp=
lay this message correctly. What exactly is this telling me, an=
d any suggestions on how to resolve? sys/mbuf_base.h is
a system header and we can't exactly change it...</div>
<div class=3D"elementToProof" style=3D"line-height: normal; margin: 0px; fo=
nt-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helveti=
ca, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class=3D"elementToProof" style=3D"line-height: normal; margin: 0px; fo=
nt-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helveti=
ca, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thank you for any tips!</div>
<div class=3D"elementToProof" style=3D"line-height: normal; margin: 0px; fo=
nt-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helveti=
ca, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class=3D"elementToProof" style=3D"line-height: normal; margin: 0px; fo=
nt-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helveti=
ca, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
-Ben</div>
<div class=3D"elementToProof" style=3D"line-height: normal; margin: 0px; fo=
nt-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helveti=
ca, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
</body>
</html>
--_000_BYAPR07MB58794C4ADA59D1339B4C8C71A7052BYAPR07MB5879namp_--