[ELDK] ELDK 4.1 (ppc-linux-x86): sysctl missing in glibc
wd at denx.de
Mon Dec 3 14:35:36 CET 2007
In message <m24pf0m0nm.fsf at ohwell.denx.de> you wrote:
> > I'm unable to compile lm-sensors (2.10.5) due to a undefined
> > reference to 'sysctl':
> Yep, on first sight, this seems to be really missing in 4.1. I just
> checked 4.0 and 4.2 Beta and they are ok.
That's probably indeed first sight only.
for example, the "sysctl" application ("/sbin/sysctl") is working fine
in ELDk 4.1, too:
bash-3.00# sysctl -a
sunrpc.nlm_debug = 0
sunrpc.nfsd_debug = 0
sunrpc.nfs_debug = 0
sunrpc.rpc_debug = 0
abi.fake_utsname = 0
abi.trace = 0
abi.defhandler_libcso = 68157441
abi.defhandler_lcall7 = 68157441
abi.defhandler_elf = 0
abi.defhandler_coff = 117440515
dev.cdrom.check_media = 0
dev.cdrom.lock = 1
> Just out of interest, as the man page sysctl(2) says
> The object names vary between kernel versions. THIS MAKES THIS
> SYSTEM CALL WORTHLESS FOR APPLICATIONS. Use the /proc/sys
> interface instead. Not all available objects are properly
> documented. It is not yet possible to change operating system by
> writing to /proc/sys/kernel/ostype.
> I wonder what exactly is being done in lm-sensors to rely on such a
They probably use old code...
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Man is the best computer we can put aboard a spacecraft ... and the
only one that can be mass produced with unskilled labor.
- Wernher von Braun
More information about the eldk