<?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>144082</bug_id>
          
          <creation_ts>2006-08-16 01:54 0000</creation_ts>
          <short_desc>media-plugins/vdr-bitstreamout-0.85 fail to compile with sys-kernel/linux-headers-2.6.17</short_desc>
          <delta_ts>2006-09-16 05:29:20 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>Core system</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>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>zzam@gentoo.org</reporter>
          <assigned_to>plasmaroo@gentoo.org</assigned_to>
          <cc>vdr@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>zzam@gentoo.org</who>
            <bug_when>2006-08-16 01:54:39 0000</bug_when>
            <thetext>The package media-plugins/vdr-bitstreamout-0.85 fails to compile against sys-kernel/linux-headers-2.6.17.

&gt;&gt;&gt; Compiling source in /var/tmp/portage/vdr-bitstreamout-0.85/work/bitstreamout-0.85 ...
bitstreamout Version 0.85
g++ -O2 -march=athlon-xp -fomit-frame-pointer -pipe -fPIC -fPIC -DPIC -c -DCONFIGDIR=\&quot;/etc/vdr\&quot; -DPLUGIN_NAME_I18N=&apos;&quot;bitstreamout&quot;&apos; -D_GNU_SOURCE  -I/usr/include -I/usr/include bitstreamout.c
/usr/include/asm-generic/bitops/fls64.h: In function &apos;int fls64(__u64)&apos;:
/usr/include/asm-generic/bitops/fls64.h:10: error: &apos;fls&apos; was not declared in this scope
/usr/include/asm-generic/bitops/fls64.h:11: error: &apos;fls&apos; was not declared in this scope
make: *** [bitstreamout.o] Error 1

The function fls which is used by fls64 seems to be defined only for in kernel usage (#ifdef __KERNEL__). But fls64 is defined without #ifdef around.

vdr-bitstreamout does not use fls/fls64 itself, it only uses some of the other bitops.

Commenting out the line #include &lt;asm-generic/bitops/fls64.h&gt; (/usr/include/asm/bitops.h, line #409) or moving it inside the #ifdef __KERNEL__ block will cure the error for vdr-bitstreamout.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zzam@gentoo.org</who>
            <bug_when>2006-09-04 04:39:04 0000</bug_when>
            <thetext>Will this be fixed, or should we think about a workaround?
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>plasmaroo@gentoo.org</who>
            <bug_when>2006-09-16 05:29:20 0000</bug_when>
            <thetext>(In reply to comment #1)
&gt; Will this be fixed, or should we think about a workaround?

It&apos;s now fixed in 2.6.17-r1; sorry for the crazily long delay.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>