Hi Duncan,
It turns out that the 2.6.18 kernel does not include <linux/compiler.h>
in the headers that it exports. The ipmitool files ipmievd.c and open.c
in v1.8.8 currently include the <linux/compiler.h> file which causes the
ipmitool build on 2.6.18 kernels to break on any system where the
officially exported headers from 2.6.18 are used.
What exported headers are these, is this from a particular distro? (ubuntu dapper includes a compiler.h in their headers package but it is empty)
Simply deleting the #include <linux/compiler.h> line in both of these
ipmitool files corrects the problem and allows ipmitool to build
normally.
I couldn't find any reason offhand as to why that header was still
needed for ipmitool. If you agree that removing these two (#include
<linux.h/compiler.h>) lines from ipmievd.c and open.c is the way to fix
this problem, please let me know -- I can send you a patch to do it.
Otherwise, please let me know how you would prefer to resolve this
problem.
This header is needed for any build that uses the --with-kerneldir=/path/to/kernel/src option to build against a specific 2.6 kernel.org source tree--I do these types of builds frequently to compile against whatever latest kernel I am using on various dev boxes.
I think some smarter autoconf logic should probably check for the existance of this file (since it apparently doesn't exist on all distro header packages) and only include it if found though, I'll put something together that does this.
-duncan
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Ipmitool-devel mailing list Ipmitool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ipmitool-devel