<meta http-equiv="Content-Type" content="text/html; charset=GB18030"><div><div>hi all,</div><div>  </div><div>When compiling jdk8u from x86_64, there is an alarm message as shown below.</div><div>jdk/src/share/native/sun/security/jgss/wrapper/GSSLibStub.c:719:3: note: in expansion of macro ¡®TRACE1¡¯</div><div>719 |   TRACE1("[GSSLibStub_getCredName] pName=%" PRIuPTR "", (uintptr_t) nameHdl);</div><div>    |   ^~~~~~</div><div>jdk/src/share/native/sun/security/jgss/wrapper/GSSLibStub.c: In function ¡®Java_sun_security_jgss_wrapper_GSSLibStub_importContext¡¯:</div><div>jdk/src/share/native/sun/security/jgss/wrapper/NativeUtil.h:92:52: warning: format ¡®%u¡¯ expects argument of type ¡®unsigned int¡¯, but argument 3 has type ¡®long unsigned int¡¯ [-Wformat=]</div><div><br></div><div><br></div><div>PRIuPTR is redefined in jdk/src/share/native/sun/security/jgss/wrapper/NativeUtil.h</div><div>----------------------------------</div><div>#if _MSC_VER >= 1800</div><div># include <inttypes.h></div><div>#endif</div><div><br></div><div>// Visual Studio 2010-2012 doesn't provide inttypes.h so provide appropriate definitions here.</div><div>#if _MSC_VER < 1800</div><div>#ifdef _LP64</div><div>#define PRIuPTR       "I64u"</div><div>#else</div><div>#define PRIuPTR       "u"</div><div>#endif</div><div>#endif</div><div>----------------------------------</div><div>Upon checking the code, it was found that the custom macro PRIuPTR was used in the Linux system. The header file # include<inttypes.h> should be used in linux.</div><div>There are two solutions, one is limit the usage range of custom macros to visual studio 2010-2012.and the other is remove special macro definitions related to _MSC_VER.</div><div><br></div><div>Is this issue a bug? If it is a bug, can you create a problem on JBS. thank you!</div></div><div><hr align="left" style="margin: 0 0 10px 0;border: 0;border-bottom:1px solid #E4E5E6;height:0;line-height:0;font-size:0;padding: 20px 0 0 0;width: 50px;"><div style="font-size:14px;font-family:Verdana;color:#000;"><a class="xm_write_card" id="in_alias" style="white-space: normal; display: inline-block; text-decoration: none !important;font-family: -apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei;" href="https://wx.mail.qq.com/home/index?t=readmail_businesscard_midpage&nocheck=true&name=%3Blmlmklxn&icon=http%3A%2F%2Fthirdqq.qlogo.cn%2Fg%3Fb%3Dsdk%26k%3Dh0OU5woGUf7o0PNicG6rC0w%26s%3D100%26t%3D1554209974%3Frand%3D1646809357&mail=576420940%40qq.com&code=" target="_blank"><table style="white-space: normal;table-layout: fixed; padding-right: 20px;" contenteditable="false" cellpadding="0" cellspacing="0"><tbody><tr valign="top"><td style="width: 40px;min-width: 40px; padding-top:10px"><div style="width: 38px; height: 38px; border: 1px #FFF solid; border-radius:50%; margin: 0;vertical-align: top;box-shadow: 0 0 10px 0 rgba(127,152,178,0.14);"><img src="http://thirdqq.qlogo.cn/g?b=sdk&k=h0OU5woGUf7o0PNicG6rC0w&s=100&t=1554209974?rand=1646809357" style="width:100%;border-radius:50%;pointer-events: none;"></div></td><td style="padding: 10px 0 8px 10px;"><div class="businessCard_name" style="font-size: 14px;color: #33312E;line-height: 20px; padding-bottom: 2px; margin:0;font-weight: 500;">;lmlmklxn</div><div class="businessCard_mail" style="font-size: 12px;color: #999896;line-height: 18px; margin:0;">576420940@qq.com</div></td></tr></tbody></table></a></div></div><div> </div>