Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35784 - [[ headers ]] sash 3.6 won't compile against 2.6 headers
Summary: [[ headers ]] sash 3.6 won't compile against 2.6 headers
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: 2003-12-14 01:03 UTC by Prakash Punnoor
Modified: 2004-07-18 17:47 UTC (History)
4 users (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 Prakash Punnoor 2003-12-14 01:03:57 UTC
Calculating dependencies ...done!
>>> emerge (1 of 1) app-shells/sash-3.6 to /
>>> md5 src_uri ;-) sash-3.6.tar.gz
>>> Unpacking source...
>>> Unpacking sash-3.6.tar.gz to /var/tmp/portage/sash-3.6/work
 * Applying sash-3.6-fix-includes.patch...                                [ ok ]
 * Applying sash-3.6-readline.patch...                                    [ ok ]
>>> Source unpacked.
gcc -march=athlon-xp -mfpmath=sse -O2 -pipe -frename-registers -fomit-frame-pointer -s -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE   -c -o sash.o sash.c
sash.c: In function `fileman_completion':
sash.c:536: Warnung: implicit declaration of function `completion_matches'
sash.c:536: Warnung: assignment makes pointer from integer without a cast
sash.c: In function `command_generator':
sash.c:561: Warnung: suggest parentheses around assignment used as truth value
sash.c: At top level:
sash.c:1450: Warnung: `showPrompt' defined but not used
gcc -march=athlon-xp -mfpmath=sse -O2 -pipe -frename-registers -fomit-frame-pointer -s -Wall -Wmissing-prototypes -DHAVE_GZIP=1 -DHAVE_LINUX_ATTR=1 -DHAVE_LINUX_MOUNT=1 -DHAVE_BSD_MOUNT=0 -DMOUNT_TYPE='"ext3"' -DHAVE_READLINE   -c -o cmds.o cmds.c
In file included from /usr/include/linux/fs.h:16,
                 from cmds.c:21:
/usr/include/linux/list.h:576:2: Warnung: #warning "don't include kernel headers in userspace"
In file included from /usr/include/linux/fs.h:20,
                 from cmds.c:21:
/usr/include/linux/radix-tree.h: In function `radix_tree_preload_end':
/usr/include/linux/radix-tree.h:54: error: invalid type argument of `->'
/usr/include/linux/radix-tree.h:54: error: `TIF_NEED_RESCHED' undeclared (first use in this function)
/usr/include/linux/radix-tree.h:54: error: (Each undeclared identifier is reported only once
/usr/include/linux/radix-tree.h:54: error: for each function it appears in.)
make: *** [cmds.o] Fehler 1

!!! ERROR: app-shells/sash-3.6 failed.
!!! Function src_compile, Line 38, Exitcode 2
!!! (no error message)


emerge info:

Portage 2.0.49-r18 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.0-test11-love2)
=================================================================
System uname: 2.6.0-test11-love2 i686 AMD Athlon(tm)
Gentoo Base System version 1.4.3.12
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -mfpmath=sse -O2 -pipe -frename-registers -fomit-frame-pointer -s"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /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/env.d"
CXXFLAGS="-march=athlon-xp -mfpmath=sse -O2 -pipe -frename-registers -fomit-frame-pointer -s"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache digest prelink sandbox"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://linux.rz.ruhr-uni-bochum.de/gentoo-portage/"
USE="3dnow S3TC X acpi acpi4linux apm arts avi berkdb crypt cups dga dv dvb dvd dvdr encode ext-png ext-zlib faad fbcon ffmpeg flac foomaticdb gdbm gif gpm gtk gtk2 imlib java javascript jikes jpeg kde libg++ libwww lirc mad matroska mikmod mmx motif moznocompose mpeg mpi ncurses nls nocd nptl nvidia oggvorbis opengl pam pdflib perl pic png python qt qtmt quicktime readline sdl slang spell sse ssl svga tcpd threads tiff transcode truetype usb v4l videos wmf x86 xfs xine xml2 xmms xv xvid zlib"




Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2003-12-14 02:00:40 UTC
Not sure if this should go to hardened or kernel..
Comment 2 SpanKY gentoo-dev 2003-12-14 22:45:13 UTC
i actually did some research into this ...
there's two bugs here ...

first: linux mount support pulls in 'linux/fs.h' which leads to the errors you see here ... the headers are a mess of __KERNEL__ and __ASSEMBLY__ defines which is why TIF_NEED_RESCHED isnt being found in user space ... i think this needs to be sorted out in the kernel headers rather than in this package

second: linux chattr support (well, really ext2 chattr support) pulls in linux/ext2_fs.h which leads eventually to the ugly linux/spinlock.h errors ... one solution here might be to depend on sys-fs/e2fsprogs and change the linux/ext2_fs.h include to ext2fs/ext2_fs.h ... the other solution is to sort out the linux headers package ...
Comment 3 SpanKY gentoo-dev 2003-12-23 11:19:36 UTC
dosfstools is hitting this same bug ...

the best way to fix this imho is by editing /usr/include/linux/fs.h and ifdef-ing
the linux/radix-tree.h include ...

#ifdef __KERNEL__
#include <linux/radix-tree.h>
#endif

the only code in fs.h that uses the radix stuff has this same ifdef around it
so i dont believe it'd break anything
Comment 4 Tim Yamin (RETIRED) gentoo-dev 2003-12-24 04:11:13 UTC
No, using e2fsprogs isn't really a solution as there seems to be some sort of problem if you use that, as sash is necessary in the bootstrap process for something or the other - so I patched the headers.

Should be fixed in linux-headers-2.6.0.
Comment 5 SpanKY gentoo-dev 2004-02-06 06:20:44 UTC
*** Bug 40578 has been marked as a duplicate of this bug. ***
Comment 6 SpanKY gentoo-dev 2004-02-22 16:22:23 UTC
*** Bug 42527 has been marked as a duplicate of this bug. ***
Comment 7 Alexander Skwar 2004-07-18 03:21:53 UTC
I think the problem is happening again with the latest linux26-headers (ie. linux26-headers-2.6.7-r3). Please see bug #57376. I filed this bug also against sash and I'm also getting the error " `TIF_NEED_RESCHED' undeclared". See Bug #57376 comment #1.
Comment 8 SpanKY gentoo-dev 2004-07-18 17:47:22 UTC
no, this bug is not happening again ... please dont split comments across bug reports