uclibc seems to lack the function that returns the total process count on the running system. IceWM merge fails when it tries to compile acpustatus.cc, which contains this function call. However, there is another version of the code without the infamous call. I came up with a quick and dirty (as it needs to be made portable per Gentoo policy) patch made against 1.2.20. To use it, add this in the src)unpack function of the ebuild use elibc_uclibc && epatch ${FILESDIR}/${P/_}.acpustatus.patch Reproducible: Always Steps to Reproduce:
Created attachment 64904 [details, diff] Quick and dirty patch to build icewm on uclibc
i dont know what you're trying to solve but that patch is def wrong why cant you include sys/sysinfo.h ?
(In reply to comment #2) > i dont know what you're trying to solve but that patch is def wrong You are right. This patch is wrong. I made a test program and sysinfo worked. > why cant you include sys/sysinfo.h ? I get a build error. It seems there is stuff included twice. CXX acpustatus.o In file included from /usr/include/linux/sysctl.h:27, from /usr/include/sys/sysctl.h:28, from acpustatus.cc:45: /usr/include/linux/kernel.h:180: error: redefinition of `struct sysinfo' /usr/include/sys/sysinfo.h:28: error: previous definition of `struct sysinfo' make[1]: *** [acpustatus.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make: *** [base] Error 2
Created attachment 64978 [details] Mini test program for sysinfo()
test program compiles and runs fine here. Portage 2.0.51.19 (uclibc/x86/hardened/2.4, gcc-3.3.5-20050130, uclibc-0.9.27-r0, 2.4.31-hardened i686) It looks as if you have a local headers problem.
(In reply to comment #6) > test program compiles and runs fine here. The test also runs fine on my system. The build error shown on comments 3 and 4 (sorry for the double post) is from IceWM where I suspect #include directives are confusing GCC.
Created attachment 65033 [details, diff] Better patch to build icewm on uclibc Exactly what I thought. The #include directives were placed in a way to confuse GCC on my system. Also, the process count is back.
I tried it out with IceWM 1.2.25 and it solved my problem.
In CVS, thanks for the patch. :)