Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 161864

Summary: app-shells/sash 3.7-r1 will not compile with linux-headers-2.6.19
Product: Gentoo Linux Reporter: Justin Blanchard <justinb>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 159304    

Description Justin Blanchard 2007-01-13 08:31:47 UTC
As of linux-headers v. 2.6.19, it seems that some things that used to be defined in <linux/ext2_fs.h> have been moved to <linux/fs.h>.
So, this sort of patch needs to be thrown in so it can compile:

--- cmd_chattr.c.old    2007-01-13 00:22:50.000000000 -0800
+++ cmd_chattr.c        2007-01-13 00:23:00.000000000 -0800
@@ -12,6 +12,7 @@
 
 #include <sys/ioctl.h>
 #include <sys/types.h>
+#include <linux/fs.h>
 #include <linux/ext2_fs.h>
 
 #include "sash.h"

Reproducible: Always

Steps to Reproduce:
emerge sys-kernel/linux-headers-2.6.19 (~arch package)
attempt to emerge sash
=> compilation failure



justinb@localhost ~ $ emerge --info
Portage 2.1.2_rc4-r8 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.19-suspend2-r1 i686)
=================================================================
System uname: 2.6.19-suspend2-r1 i686 Genuine Intel(R) CPU           T2050  @ 1.60GHz
Gentoo Base System version 1.12.8
Last Sync: Fri, 12 Jan 2007 19:30:01 +0000
dev-java/java-config: 1.3.7, 2.0.31-r1
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.19
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/init.d /etc/java-config/vms/ /etc/pam.d /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.llarian.net/ http://mirrors.acm.cs.rpi.edu/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.chem.wisc.edu/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa avahi bash-completion beagle berkdb bitmap-fonts blas bogofilter bonobo bzip2 cairo cdparanoia cdr cli cracklib crypt cscope cups dbus divx djvu dlloader dri dv dvd dvdr dvi eds emboss encode esd evo exif fam firefox flac fortran fpx gdbm gif glibc-omitfp glitz gnome gpm gstreamer gtk gtkhtml hal howl-compat iconv ipv6 isdnlog javascript jbig joystick jpeg lcms ldap libg++ lzo mad mikmod mmx mono moznocompose moznoirc moznomail mozsvg mp3 mpeg nautilus ncurses new-login nls nptl nptlonly nsplugin offensive ogg ole opengl oss pam pcmcia pcre pdf perl pic png ppds pppd python quicktime readline real reflection rtc samba sbcl sdl session slang slp speex spell spl sse sse2 ssl svg t1lib tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev unicode usb v4l vidix vim-syntax vorbis win32codecs wma wmf x86 xml xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="fpit keyboard mouse synaptics" KERNEL="linux" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 SpanKY gentoo-dev 2007-01-13 19:03:54 UTC
nah, ext2_fs.h needs to include fs.h as it uses defines from it
Comment 2 SpanKY gentoo-dev 2007-01-13 19:19:42 UTC
fixed in linux-headers-2.6.19.2