Bug 185828 - sci-visualization/opendx-4.3.2-r1 doesn't compile w/ linux-headers-2.6.21
Bug#: 185828 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: sci@gentoo.org Reported By: f.r.bissey@massey.ac.nz
Component: Applications
URL: 
Summary: sci-visualization/opendx-4.3.2-r1 doesn't compile w/ linux-headers-2.6.21
Keywords:  
Status Whiteboard: 
Opened: 2007-07-19 02:22 0000
Description:   Opened: 2007-07-19 02:22 0000
I recently upgraded to the latest linux-headers (2.6.21) and tried to re-emerge
opendx. The compilation failed with the following message:
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../include
-I../../../include -Dlinux -I/usr/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O2 -march=athlon-xp -mtune=athlon-xp
-fomit-frame-pointer -pipe -fno-strict-aliasing -Wall -W -pthread -O2
-march=athlon-xp -mtune=athlon-xp -fomit-frame-pointer -pipe
-fno-strict-aliasing -fno-strength-reduce -D_GNU_SOURCE -c memory.c -o memory.o
memory.c:69:23: error: linux/sys.h: No such file or directory
make[4]: *** [memory.lo] Error 1
make[4]: Leaving directory
`/scratch/portage/sci-visualization/opendx-4.3.2-r1/work/dx-4.3.2/src/exec/libdx'
make[3]: *** [all] Error 2
make[3]: Leaving directory
`/scratch/portage/sci-visualization/opendx-4.3.2-r1/work/dx-4.3.2/src/exec/libdx'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/scratch/portage/sci-visualization/opendx-4.3.2-r1/work/dx-4.3.2/src/exec'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/scratch/portage/sci-visualization/opendx-4.3.2-r1/work/dx-4.3.2/src'
make: *** [all-recursive] Error 1

!!! ERROR: sci-visualization/opendx-4.3.2-r1 failed.

---------------------
On closer inspection the header linux/sys.h that was present in earlier version
of the kernel is not included in 2.6.21
The problem also occurs with the latest upstream version (opendx-4.4.4).
I guess the header in question may be gone for good in which case it is 
really an upstream problem. 

Reproducible: Always

Steps to Reproduce:
1. emerge linux-headers-2.6.21
2. emerge opendx
3.

Actual Results:  
Compilation failure as previously reported.

Expected Results:  
I expected it to compile.

emerge --info
Portage 2.1.2.9 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.5-r4,
2.6.20-gentoo-r7 i686)
=================================================================
System uname: 2.6.20-gentoo-r7 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 18 Jul 2007 07:20:01 +0000
ccache version 2.4 [disabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
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, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -mtune=athlon-xp -fomit-frame-pointer -pipe
-fno-strict-aliasing"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild
/etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=athlon-xp -mtune=athlon-xp -fomit-frame-pointer -pipe
-fno-strict-aliasing"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict
userfetch"
GENTOO_MIRRORS="ftp://ftp.citylink.co.nz/gentoo http://mirrors.tds.net/gentoo
http://distfiles.gentoo.org
http://www.ibiblio.org/pub/Linux/distributions/gentoo
ftp://mirrors.tds.net/gentoo http://gentoo.eliteitminds.com"
LDFLAGS="-Wl,--as-needed"
LINGUAS="en_GB fr"
MAKEOPTS="-j2"
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
--filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/scratch"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/science
/usr/portage/local/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib acl alsa amr asf audiofile berkdb bidi
bitmap-fonts bootsplash bzip2 cairo cdf cdparanoia cli cracklib crypt cups curl
dbus dga dmi dri dts dv dvd dvdr dvdread encode exif expat fb fbcon ffmpeg fftw
flac foomaticdb fortran fpx gdbm gif gimpprint glut gmp gpm graphviz gs
gstreamer gtk gtk2 hal iconv idn imagemagick imlib imlib2 ipv6 isdnlog jack
java jbig joystick jpeg jpeg2k kde kdehiddenvisibility kdexdeltas lame lcms
libg++ lzo mad matroska midi mikmod mime mmx mmx2 mmxext mng motif mp3 mp4 mpeg
mplayer mudflap musepack musicbrainz ncurses netcdf network nls nptl nptlonly
ogg openal openexr opengl openmp pcre pdf perl png portaudio posix ppds pppd
python qt3 qt4 quicktime readline real reflection sdl session sndfile spell spl
sse ssl svg svga szip tcl tcltk tcpd tetex tga theora tiff tk truetype
truetype-fonts type1-fonts unicode usb vcd vidix vorbis wavpack wmf x264 x86
xanim xcb xine xml xorg xpm xsl xv xvid xvmc zeroconf zlib" ALSA_CARDS="cmipci
via82xx" 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="evdev keyboard
mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780
lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB fr" USERLAND="GNU"
VIDEO_CARDS="radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #1 From Francois Bissey 2007-07-19 02:33:45 0000 -------
There is a report upstream with a suggested resolution:
http://www.opendx.org/bugs/view.php?id=231

------- Comment #2 From Jeffrey Gardner 2007-07-19 08:04:31 0000 -------
I found this, which was helpful...
http://www.redhat.com/archives/fedora-extras-commits/2006-September/msg03773.html