Package: libc6 Version: 2.1.2-13 Severity: normal sysconf(_SC_NPROCESSORS_CONF) (and _SC_NPROCESSORS_ONLN) always returns 0 on m68k. The reason for this is, that __get_nprocs() counts the number of lines starting with 'processor' in /proc/cpuinfo, while /proc/cpuinfo on m68k looks like this: CPU: 68060 MMU: 68060 FPU: 68060 Clocking: 49.8MHz BogoMips: 99.73 Calibration: 49868800 loops I would suggest the patch below to make sure, that __get_nprocs() always returns a sane value. -Michael --- glibc-2.1.2/sysdeps/unix/sysv/linux/getsysstats.c.orig Mon Aug 2 00:13:45 1999 +++ glibc-2.1.2/sysdeps/unix/sysv/linux/getsysstats.c Sat Feb 5 17:13:32 2000 @@ -113,6 +113,9 @@ } } + if (result < 1) + result = 1; + return result; } weak_alias (__get_nprocs, get_nprocs) -- System Information Debian Release: 2.2 Kernel Version: Linux caemlyn 2.2.10 #2 Sat Nov 13 13:22:22 CET 1999 m68k unknown Versions of the packages libc6 depends on: ii ldso 1.9.11-5 The Linux dynamic linker, library and utilit
Attachment:
pgpVXoPIESdIo.pgp
Description: PGP signature