Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144082 - media-plugins/vdr-bitstreamout-0.85 fail to compile with sys-kernel/linux-headers-2.6.17
Summary: media-plugins/vdr-bitstreamout-0.85 fail to compile with sys-kernel/linux-hea...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-16 01:54 UTC by Matthias Schwarzott
Modified: 2006-09-16 05:29 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Schwarzott gentoo-dev 2006-08-16 01:54:39 UTC
The package media-plugins/vdr-bitstreamout-0.85 fails to compile against sys-kernel/linux-headers-2.6.17.

>>> 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=\"/etc/vdr\" -DPLUGIN_NAME_I18N='"bitstreamout"' -D_GNU_SOURCE  -I/usr/include -I/usr/include bitstreamout.c
/usr/include/asm-generic/bitops/fls64.h: In function 'int fls64(__u64)':
/usr/include/asm-generic/bitops/fls64.h:10: error: 'fls' was not declared in this scope
/usr/include/asm-generic/bitops/fls64.h:11: error: 'fls' 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 <asm-generic/bitops/fls64.h> (/usr/include/asm/bitops.h, line #409) or moving it inside the #ifdef __KERNEL__ block will cure the error for vdr-bitstreamout.
Comment 1 Matthias Schwarzott gentoo-dev 2006-09-04 04:39:04 UTC
Will this be fixed, or should we think about a workaround?
Comment 2 Tim Yamin (RETIRED) gentoo-dev 2006-09-16 05:29:20 UTC
(In reply to comment #1)
> Will this be fixed, or should we think about a workaround?

It's now fixed in 2.6.17-r1; sorry for the crazily long delay.