Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96248 - sys-apps/readahead-list 0.20050517.0220 does not compile with linux-headers 2.6.8.1-r2
Summary: sys-apps/readahead-list 0.20050517.0220 does not compile with linux-headers 2...
Status: RESOLVED DUPLICATE of bug 86410
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-15 23:12 UTC by Rohan McGovern
Modified: 2005-06-16 01:51 UTC (History)
0 users

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 Rohan McGovern 2005-06-15 23:12:38 UTC
When attempting to compile readahead-list with linux-headers-2.6.8.1-r2  
(latest stable linux-headers at the moment) installed, compile fails with this  
message:  
  
In file included from /usr/include/linux/fs.h:12,  
                 from filelist-order.cxx:33:  
/usr/include/linux/wait.h: In function `int  
waitqueue_active(wait_queue_head_t*)':  
/usr/include/linux/wait.h:79: error: `list_empty' undeclared (first use this  
function)  
  
After looking through the kernel headers, it looks like what happens is that,  
for some reason, the __KERNEL__ macro is defined while wait.h is included but  
not while list.h is included from wait.h.  This results in list_empty not  
being defined in list.h, but being used in wait.h.  I suppose the correct  
behaviour is for the __KERNEL__ macro to not be defined in either of the  
includes.  
  
It really doesn't look like anything is wrong with the readahead-list sources,  
so this appears to be a bug in linux-headers (probably not just on my system - 
I haven't done anything weird with linux-headers :-) 
  
readahead-list builds fine with linux-headers-2.6.11-r1.  
  
Possible solutions:  
 1) Make readahead-list depend on >=linux-headers-2.6.11-r1  
 2) investigate in more depth why exactly this happens and fix  
linux-headers-2.6.8.1-r2  
 3) #define __LINUX_KEYBOARD_H in filelist-order.cxx before including  
linux/fs.h (works because list_empty is declared if either __KERNEL__ or  
__LINUX_KEYBOARD_H is defined - don't ask me why :-)  
  

Reproducible: Always
Steps to Reproduce:
 



 
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.4, 
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r6 i686) 
================================================================= 
System uname: 2.6.11-gentoo-r6 i686 Intel(R) Celeron(R) M processor         
1500MHz 
Gentoo Base System version 1.6.12 
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Apr 28 2005, 09:00:34)] 
dev-lang/python:     2.3.5 
sys-apps/sandbox:    [Not Present] 
sys-devel/autoconf:  2.59-r6, 2.13 
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 
sys-devel/binutils:  2.15.92.0.2-r10 
sys-devel/libtool:   1.5.16 
virtual/os-headers:  2.6.11-r1 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=pentium-m -O2 -fweb -pipe -fomit-frame-pointer" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/namazu/template /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=pentium-m -O2 -fweb -pipe -fomit-frame-pointer 
-fvisibility-inlines-hidden" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict 
userpriv usersandbox" 
GENTOO_MIRRORS="ftp://mirror.aarnet.edu.au/pub/gentoo/ 
ftp://planetmirror.com/pub/gentoo/ http://gentoo.osuosl.org 
http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
LDFLAGS="-Wl,-O2 -Wl,--enable-new-dtags -Wl,--sort-common" 
MAKEOPTS="-j1" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage-gentopia" 
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage" 
USE="x86 X aac acpi alsa apache2 avi bash-completion berkdb bitmap-fonts cap 
cdf cdparanoia cdr crypt cups curl directfb doc dvd emboss encode fam fbcon 
ffmpeg flac foomaticdb fortran gcj gd gdbm gif gnokii gstreamer guile hal hdf 
hdf5 i8x0 imagemagick imlib java jpeg kde kdeenablefinal kerberos ldap libg++ 
libwww mad mikmod mmx mmx2 mng mono motif mozsvg mp3 mpeg mpi mysql ncurses 
netcdf nls nptl objc offensive ogg oggvorbis opengl pam pcmcia pcre pdflib 
perl pic png ppds qt quicktime rdesktop readline rogue ruby samba scanner sdl 
slang slp sms snmp spell sqlite sse sse2 ssl subversion svg szip tcltk tcpd 
tetex tidy tiff truetype truetype-fonts type1-fonts usb v4l v4l2 vorbis wifi 
win32codecs xatrix xine xml2 xv xvid xvmc zeroconf zlib video_cards_i810 
video_cards_i915 userland_GNU kernel_linux elibc_glibc" 
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LINGUAS
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-06-16 01:51:01 UTC
readahead-list is NOT in stable, ergo you should NOT be using the stable 
headers.

*** This bug has been marked as a duplicate of 86410 ***