<?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>164137</bug_id>
          
          <creation_ts>2007-01-28 01:10 0000</creation_ts>
          <short_desc>net-dialup/capi4k-utils-20050718-r2 fails /w linux-headers-2.6.19</short_desc>
          <delta_ts>2007-01-28 20:42:03 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>All</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>marcel@koeln.ccc.de</reporter>
          <assigned_to>sbriesen@gentoo.org</assigned_to>
          <cc>net-dialup@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>marcel@koeln.ccc.de</who>
            <bug_when>2007-01-28 01:10:25 0000</bug_when>
            <thetext>I&apos;m not able to compile net-dialup/capi4k-utils-20050718-r2.
I think the problem is this line &quot;capidyn.c:23:28: error: linux/compiler.h: No such file or directory&quot;.

set -e; for i in `echo  capi20 capiinfo avmb1 capiinit rcapid`; do make -C $i all; done
make[1]: Entering directory `/var/tmp/portage/net-dialup/capi4k-utils-20050718-r2/work/capi4k-utils/capi20&apos;
gcc -DPACKAGE_NAME=\&quot;\&quot; -DPACKAGE_TARNAME=\&quot;\&quot; -DPACKAGE_VERSION=\&quot;\&quot; -DPACKAGE_STRING=\&quot;\&quot; -DPACKAGE_BUGREPORT=\&quot;\&quot; -DPACKAGE=\&quot;libcapi20\&quot; -DVERSION=\&quot;3.4\&quot; -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LINUX_CAPI_H=1 -DHAVE_SELECT=1  -I. -I.      -march=i686 -mmmx -msse -msse2 -msse3 -Os -pipe -fomit-frame-pointer -fPIC -c capidyn.c
/bin/sh ./libtool --mode=compile gcc -DPACKAGE_NAME=\&quot;\&quot; -DPACKAGE_TARNAME=\&quot;\&quot; -DPACKAGE_VERSION=\&quot;\&quot; -DPACKAGE_STRING=\&quot;\&quot; -DPACKAGE_BUGREPORT=\&quot;\&quot; -DPACKAGE=\&quot;libcapi20\&quot; -DVERSION=\&quot;3.4\&quot; -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LINUX_CAPI_H=1 -DHAVE_SELECT=1  -I. -I.      -march=i686 -mmmx -msse -msse2 -msse3 -Os -pipe -fomit-frame-pointer -fPIC -c capi20.c
capidyn.c:23:28: error: linux/compiler.h: No such file or directory
make[1]: *** [capidyn.o] Error 1
make[1]: *** Waiting for unfinished jobs....
mkdir .libs      
gcc -DPACKAGE_NAME=\&quot;\&quot; -DPACKAGE_TARNAME=\&quot;\&quot; -DPACKAGE_VERSION=\&quot;\&quot; -DPACKAGE_STRING=\&quot;\&quot; -DPACKAGE_BUGREPORT=\&quot;\&quot; -DPACKAGE=\&quot;libcapi20\&quot; -DVERSION=\&quot;3.4\&quot; -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LINUX_CAPI_H=1 -DHAVE_SELECT=1 -I. -I. -march=i686 -mmmx -msse -msse2 -msse3 -Os -pipe -fomit-frame-pointer -fPIC -c capi20.c  -fPIC -DPIC -o .libs/capi20.lo
capi20.c:116:28: error: linux/compiler.h: No such file or directory
capi20.c: In function &apos;alloc_buffers&apos;:
capi20.c:244: warning: incompatible implicit declaration of built-in function &apos;malloc&apos;
make[1]: *** [capi20.lo] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-dialup/capi4k-utils-20050718-r2/work/capi4k-utils/capi20&apos;
make: *** [subtargets] Error 2



Reproducible: Always

Steps to Reproduce:
1. emerge 




Portage 2.1.2-r4 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.19-hardened-r5 i686)
=================================================================
System uname: 2.6.19-hardened-r5 i686 VIA Esther processor 1200MHz
Gentoo Base System release 1.12.9
Timestamp of tree: Sat, 27 Jan 2007 20:30:01 +0000
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.61
sys-devel/automake:  1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.19.2-r1
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-march=i686 -mmmx -msse -msse2 -msse3 -Os -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=i686 -mmmx -msse -msse2 -msse3 -Os -pipe -fomit-frame-pointer&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo&quot;
LANG=&quot;en_US.UTF-8&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_EXTRA_OPTS=&quot;--exclude-from=/etc/portage/rsync_excludes&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&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sbriesen@gentoo.org</who>
            <bug_when>2007-01-28 03:16:30 0000</bug_when>
            <thetext>I have no real solution yet.

but there&apos;s an ugly workaround:
ln -snf /usr/src/linux/include/linux/compile*.h /usr/include/linux/

very ugly. I don&apos;t know, why these headers are missing now. Many packages just need them. I ask the kernel guys how to handle this situation properly...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>marcel@koeln.ccc.de</who>
            <bug_when>2007-01-28 03:54:01 0000</bug_when>
            <thetext>(In reply to comment #1)

&gt; but there&apos;s an ugly workaround:
&gt; ln -snf /usr/src/linux/include/linux/compile*.h /usr/include/linux/

Okay this works so far, thank you.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sbriesen@gentoo.org</who>
            <bug_when>2007-01-28 19:41:54 0000</bug_when>
            <thetext>fixed w/o rev-bump. emerge --sync in 1h, remove symlinks and try again to (re-)emerge *-r2. *-r1 is not fixed, because I will remove it asap.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>marcel@koeln.ccc.de</who>
            <bug_when>2007-01-28 20:42:03 0000</bug_when>
            <thetext>Works, thanks.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>