<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"><style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }p { margin-top: 0px; margin-bottom: 0px; }body { font-size: 14px; font-family: 'Microsoft YaHei UI'; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span></div><div><span><div style="margin: 10px;"><p class="MsoNormal" style="font-family: 等线; font-size: 10.5pt; line-height: normal; margin: 0cm; text-align: justify;">Thanks,please ignore this patch.</p></div></span></div>
<blockquote style="margin-Top: 0px; margin-Bottom: 0px; margin-Left: 0.5em; margin-Right: inherit"><div> </div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><div style="PADDING-RIGHT: 8px; PADDING-LEFT: 8px; FONT-SIZE: 12px;FONT-FAMILY:tahoma;COLOR:#000000; BACKGROUND: #efefef; PADDING-BOTTOM: 8px; PADDING-TOP: 8px"><div><b>From:</b> <a href="mailto:xuyang2018.jy@fujitsu.com">xuyang2018.jy@fujitsu.com</a></div><div><b>Date:</b> 2021-03-26 11:03</div><div><b>To:</b> <a href="mailto:liuxp11@chinatelecom.cn">Xinpeng Liu</a></div><div><b>CC:</b> <a href="mailto:ltp@lists.linux.it">ltp@lists.linux.it</a></div><div><b>Subject:</b> Re: [LTP] [PATCH] syscalls/mallopt:fix compiling error</div></div></div><div><div>Hi Liu</div>
<div>> mallopt01.c:33:3: warning: implicit declaration of function ‘print_mallinfo’</div>
<div>> [-Wimplicit-function-declaration]</div>
<div>> print_mallinfo("Test uordblks",&info);</div>
<div>> ^</div>
<div>> /tmp/ccOU0s7e.o: In function `test_mallopt':</div>
<div>> /root/mywork/ltp_github/testcases/kernel/syscalls/mallopt/mallopt01.c:37:</div>
<div>> undefined reference to `print_mallinfo'</div>
<div>> /root/mywork/ltp_github/testcases/kernel/syscalls/mallopt/mallopt01.c:33:</div>
<div>> undefined reference to `print_mallinfo'</div>
<div>Usually, if glibc supports mallopt, it should also support mallinfo. So </div>
<div>I guess you met this problem because your compile enviroment wat not clean.</div>
<div>Please try again as the following step:</div>
<div>make distclean</div>
<div>make autotools</div>
<div>./configure</div>
<div>cd testcases/kernel/syscalls/mallopt/</div>
<div>make</div>
<div>></div>
<div>> Signed-off-by: Xinpeng Liu<liuxp11@chinatelecom.cn></div>
<div>> ---</div>
<div>> testcases/kernel/syscalls/mallopt/mallopt01.c | 1 +</div>
<div>> 1 file changed, 1 insertion(+)</div>
<div>></div>
<div>> diff --git a/testcases/kernel/syscalls/mallopt/mallopt01.c b/testcases/kernel/syscalls/mallopt/mallopt01.c</div>
<div>> index 8ff4649..bb7234f 100644</div>
<div>> --- a/testcases/kernel/syscalls/mallopt/mallopt01.c</div>
<div>> +++ b/testcases/kernel/syscalls/mallopt/mallopt01.c</div>
<div>> @@ -13,6 +13,7 @@</div>
<div>> */</div>
<div>></div>
<div>></div>
<div>> +#define HAVE_MALLINFO</div>
<div>We have checked mallinfo function in configure.ac. We never define this </div>
<div>directly.</div>
<div>> #include "../mallinfo/mallinfo_common.h"</div>
<div>> #include "tst_safe_macros.h"</div>
<div>></div>
<div> </div>
<div>Best Regards</div>
<div>Yang Xu</div>
</div></blockquote>
</body></html>