procps/lib.a(top.o): In function `top_main':
.../busybox-1.10.0/procps/top.c:865: undefined reference to `topmem_sort'
.../busybox-1.10.0/procps/top.c:874: undefined reference to
`display_topmem_process_list'
collect2: ld returned 1 exit status
with top configured like this:
CONFIG_TOP=y
CONFIG_FEATURE_TOP_CPU_USAGE_PERCENTAGE=y
# CONFIG_FEATURE_TOP_CPU_GLOBAL_PERCENTS is not set
# CONFIG_FEATURE_TOP_DECIMALS is not set
# CONFIG_FEATURE_TOPMEM is not set
POC patch in attachment.
Cheers,
--
Cristian
--- procps/top.c.~1~ 2008-03-22 02:31:52.000000000 +0100
+++ procps/top.c 2008-04-17 17:04:16.000000000 +0200
@@ -861,17 +861,22 @@
#else
qsort(top, ntop, sizeof(top_status_t),
(void*)(sort_function[0]));
#endif /* FEATURE_TOP_CPU_USAGE_PERCENTAGE */
- } else { /* TOPMEM */
+ }
+#if ENABLE_FEATURE_TOPMEM
+ else { /* TOPMEM */
qsort(topmem, ntop, sizeof(topmem_status_t),
(void*)topmem_sort);
}
+#endif
count = lines;
if (OPT_BATCH_MODE || count > ntop) {
count = ntop;
}
if (scan_mask == TOP_MASK)
display_process_list(count, col);
+#if ENABLE_FEATURE_TOPMEM
else
display_topmem_process_list(count, col);
+#endif
clearmems();
if (iterations >= 0 && !--iterations)
break;
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox