[ELDK] ELDK 4.1 (ppc-linux-x86): sysctl missing in glibc

Michel Marti mma at objectxp.com
Mon Dec 3 08:26:19 CET 2007

I'm unable to compile lm-sensors (2.10.5) due to a undefined
reference to 'sysctl':

ppc_6xx-gcc -Wl,-rpath,/usr/lib -o prog/sensors/sensors
prog/sensors/main.ro prog/sensors/chips.ro  -Llib -lsensors
lib/libsensors.so: undefined reference to `sysctl'
collect2: ld returned 1 exit status

The function is declared in $ELDK_HOME/usr/include/sys/sysctl.h,
but not included in $ELDK_HOME/ppc_6xx/lib/libc-2.3.5.so:

$ grep sysctl.\( $ELDK_HOME/ppc_6xx/usr/include/sys/sysctl.h
extern int sysctl (int *__name, int __nlen, void *__oldval,
$ objdump  -T $ELDK_HOME/ppc_6xx/lib/libc-2.3.5.so |grep sysctl

Looks like a bug to me.



More information about the eldk mailing list