> >> So is there any need to include the kernel headers when compiling > >> other > >> parts of lm_sensors? In particular, I ran into trouble with the 2.6 > >> version of linux/sysctl.h, and disabling $(LINUX_HEADERS) in the > >> makefile (by setting it to '.') picked up > >/usr/include/linux/sysctl.h,> which resulted in a much happier > >compiler. > > > > NEVER use kernel header files from userspace!!! > > Honest, the Makefile did it, not me! It broke hardcore against 2.6 > (__user macros and all), so that's why I was trying to figure out what > was going on there. > > > Use the glibc sanitized ones that your glibc is built against. If > > not, bad things will happen. > > OK, so basically what that means is that LINUX_HEADERS needs to come > out of ALL_CPPFLAGS (or some similar kernel/userspace CPPFLAGS split > has to happen). Proposed patch attached. Can you give it a try and tell us how it works for you? Thanks. -- Jean Delvare http://www.ensicaen.ismra.fr/~delvare/ -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: Makefile.diff Url: http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20030730/d18c54fe/attachment.pl