<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>185665</bug_id>
          
          <creation_ts>2007-07-17 15:44 0000</creation_ts>
          <short_desc>sys-apps/ipmitool-1.8.8 fails to compile with linux-headers-2.6.21</short_desc>
          <delta_ts>2007-09-25 06:31:26 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>159304</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>gentoo@valli.org</reporter>
          <assigned_to>robbat2@gentoo.org</assigned_to>
          <cc>luckyluke@softhome.net</cc>
    
    <cc>Martin.vGagern@gmx.net</cc>
    
    <cc>wschlich@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>gentoo@valli.org</who>
            <bug_when>2007-07-17 15:44:49 0000</bug_when>
            <thetext>sys-apps/ipmitool-1.8.8 fails to compile with linux-headers-2.6.21
I think it&apos;s a Bug in linux-headers (missing /usr/include/linux/compiler.h),
see attached output for details.

...
make[4]: Entering directory `/var/tmp/portage/sys-apps/ipmitool-1.8.8/work/ipmitool-1.8.8/src/plugins/open&apos;
if /bin/sh ../../../libtool --silent --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../include    -march=pentium4 -O2 -pipe -fomit-frame-pointer -fno-strict-aliasing -I /usr/include -MT open.lo -MD -MP -MF &quot;.deps/open.Tpo&quot; -c -o open.lo open.c; \
        then mv -f &quot;.deps/open.Tpo&quot; &quot;.deps/open.Plo&quot;; else rm -f &quot;.deps/open.Tpo&quot;; exit 1; fi
open.c:53:29: error: linux/compiler.h: No such file or directory
make[4]: *** [open.lo] Error 1
make[4]: Leaving directory `/var/tmp/portage/sys-apps/ipmitool-1.8.8/work/ipmitool-1.8.8/src/plugins/open&apos;
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/sys-apps/ipmitool-1.8.8/work/ipmitool-1.8.8/src/plugins&apos;
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-apps/ipmitool-1.8.8/work/ipmitool-1.8.8/src&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-apps/ipmitool-1.8.8/work/ipmitool-1.8.8&apos;
make: *** [all] Error 2

!!! ERROR: sys-apps/ipmitool-1.8.8 failed.
Call stack:
  ebuild.sh, line 1621:   Called dyn_compile
  ebuild.sh, line 973:   Called qa_call &apos;src_compile&apos;
  ebuild.sh, line 44:   Called src_compile
  ipmitool-1.8.8.ebuild, line 28:   Called die


Reproducible: Always

Steps to Reproduce:
1. # emerge ipmitool
2.
3.




Portage 2.1.2.9 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.5-r4, 2.6.21.6-mail1-0.1 i686)
=================================================================
System uname: 2.6.21.6-mail1-0.1 i686 Intel(R) Xeon(TM) CPU 3.00GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Tue, 17 Jul 2007 06:50:01 +0000
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-march=pentium4 -O2 -pipe -fomit-frame-pointer&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo&quot;
CXXFLAGS=&quot;-march=pentium4 -O2 -pipe -fomit-frame-pointer&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;distlocks metadata-transfer sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://mirror.switch.ch/mirror/gentoo/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo&quot;
MAKEOPTS=&quot;-j3&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.europe.gentoo.org/gentoo-portage&quot;
USE=&quot;berkdb cracklib crypt gdbm gpm iconv libwww mudflap ncurses nls nptl nptlonly pam pcre perl postgres python readline ssl tcpd unicode x86 xml xsl zlib&quot; ELIBC=&quot;glibc&quot; KERNEL=&quot;linux&quot; USERLAND=&quot;GNU&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gentoo@valli.org</who>
            <bug_when>2007-07-17 16:01:57 0000</bug_when>
            <thetext>This error does not occur with ipmitool-1.8.9
(See also http://bugs.gentoo.org/show_bug.cgi?id=175007)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pumuckel@metropolis.de</who>
            <bug_when>2007-07-25 13:00:54 0000</bug_when>
            <thetext>Confirm. 1.8.9 is compiling. 1.8.8 fails.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>luckyluke@softhome.net</who>
            <bug_when>2007-08-08 13:18:50 0000</bug_when>
            <thetext>also ipmitool-1.8.6 with the same linux-headers-2.6.21 compiles and runs ok on both i386 and x86_64 with hardened profile.

(while we&apos;re at it, why not unmask 1.8.6 on x86 and amd64?)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robbat2@gentoo.org</who>
            <bug_when>2007-09-23 06:03:52 0000</bug_when>
            <thetext>1.8.9 in cvs.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gao@schrodinger.com</who>
            <bug_when>2007-09-25 06:31:26 0000</bug_when>
            <thetext>Saw similar problem with xen-sources-2.6.18-r5. Compiling 1.8.6 and 1.8.9 worked fine. 

However, 1.8.9 has some bug which can&apos;t report correct value for CPU temp. Had to back down to 1.8.6.

Simon</thetext>
          </long_desc>
      
    </bug>

</bugzilla>