Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86222 - [2.4] linux-2.4.28-gentoo-r8 kernel causes media-libs/svgalib and media-sound/alsa-driver to fail compiling
Summary: [2.4] linux-2.4.28-gentoo-r8 kernel causes media-libs/svgalib and media-sound...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-21 23:19 UTC by Andre Hinrichs
Modified: 2005-04-13 09:06 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 Andre Hinrichs 2005-03-21 23:19:37 UTC
I've an old system still running the 2.4 kernel.
Unfortunately current svgalib does not compile here. Tried it with the same
portage on another system running the 2.6 kernel and everything went fine.
So, I assume it's a bug handling the 2.4 kernel.

Here is the error message:

i686-pc-linux-gnu-gcc -O2 -DLINUX -Dlinux -D__KERNEL__ -DMODULE   -I/include -I. -I//usr/src/linux/include -I//usr/src/linux/include/asm/mach-default -DSVGALIB_HELPER_MAJOR=209   -c -o main.o main.c
In file included from //usr/src/linux/include/linux/highmem.h:5,
                 from //usr/src/linux/include/linux/vmalloc.h:8,
                 from //usr/src/linux/include/asm/io.h:47,
                 from //usr/src/linux/include/asm/pci.h:41,
                 from //usr/src/linux/include/linux/pci.h:683,
                 from main.c:19:
//usr/src/linux/include/asm/pgalloc.h: In function `get_pgd_slow':
//usr/src/linux/include/asm/pgalloc.h:67: error: `PAGE_OFFSET_RAW' undeclared (first use in this function)
//usr/src/linux/include/asm/pgalloc.h:67: error: (Each undeclared identifier is reported only once
//usr/src/linux/include/asm/pgalloc.h:67: error: for each function it appears in.)
In file included from //usr/src/linux/include/asm/pci.h:41,
                 from //usr/src/linux/include/linux/pci.h:683,
                 from main.c:19:
//usr/src/linux/include/asm/io.h: In function `virt_to_phys':
//usr/src/linux/include/asm/io.h:78: error: `PAGE_OFFSET_RAW' undeclared (first use in this function)
//usr/src/linux/include/asm/io.h: In function `phys_to_virt':
//usr/src/linux/include/asm/io.h:96: error: `PAGE_OFFSET_RAW' undeclared (first use in this function)
//usr/src/linux/include/asm/io.h: In function `isa_check_signature':
//usr/src/linux/include/asm/io.h:268: error: `PAGE_OFFSET_RAW' undeclared (first use in this function)
make: *** [main.o] Error 1

!!! ERROR: media-libs/svgalib-1.9.19-r3 failed.
!!! Function src_compile, Line 95, Exitcode 2
!!! Failed to build kernel module!
!!! If you need support, post the topmost build error, NOT this status message.


Reproducible: Always
Steps to Reproduce:
1.run 2.4 kernel
2.install svgalib



Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20041102-r1,
2.4.28 i686)
=================================================================
System uname: 2.4.28 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar 21 2005, 13:20:31)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.4-r1
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.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.22-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /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/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks keeptemp sandbox sfperms strict"
GENTOO_MIRRORS="http://192.168.200.2/"
MAKEOPTS="-j 2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://192.168.200.2/gentoo-portage"
USE="x86 X Xaw3d a52 aac aalib acl alsa apache2 apm arts audiofile avi berkdb
bitmap-fonts bonobo bzlib cdparanoia crypt cups curl divx4linux dvd dvdread
emacs emboss encode esd fam ffmpeg flac flash font-server foomaticdb fortran gd
gdbm ggi gif gmp gnome gphoto2 gpm gtk gtk2 guile icq imagemagick imlib ipv6
java jpeg kde kdeenablefinal lcms ldap libg++ libwww mad maildir matroska
mikmodmng motif mozilla mp3 mpeg mysql nas ncurses nls ogg oggvorbis opengl oss
pam pdflib perl plotutils png ppds python qt quicktime readline samba sasl
scanner sdl slang sndfile spell ssl svga szip tcltk tcpd tetex theora tiff
truetype truetype-fonts type1-fonts unicode usb wmf xml xml2 xmms xv xvid zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Andre Hinrichs 2005-03-21 23:29:49 UTC
Wow, now run into same error compiling alsa-driver-1.0.8
It's probably a kernel bug...?

Here is that error message:

i686-pc-linux-gnu-gcc -D__KERNEL__ -DMODULE=1 -I/var/tmp/portage/alsa-driver-1.0.8/work/alsa-driver-1.0.8/include  -I/usr/src/linux/include -I/usr/src/linux/include -O2 -mpreferred-stack-boundary=2 -march=athlon -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD -nostdinc -iwithprefix include   -DEXPORT_SYMTAB -c hwdep.c
In file included from /usr/src/linux/include/linux/highmem.h:5,
                 from /usr/src/linux/include/linux/vmalloc.h:8,
                 from /usr/src/linux/include/asm/io.h:47,
                 from /usr/src/linux/include/asm/pci.h:41,
                 from /usr/src/linux/include/linux/pci.h:683,
                 from /var/tmp/portage/alsa-driver-1.0.8/work/alsa-driver-1.0.8/include/adriver.h:72,
                 from /var/tmp/portage/alsa-driver-1.0.8/work/alsa-driver-1.0.8/include/sound/driver.h:42,
                 from hwdep.c:22:
/usr/src/linux/include/asm/pgalloc.h: In function `get_pgd_slow':
/usr/src/linux/include/asm/pgalloc.h:67: error: `PAGE_OFFSET_RAW' undeclared (first use in this function)
/usr/src/linux/include/asm/pgalloc.h:67: error: (Each undeclared identifier is reported only once
/usr/src/linux/include/asm/pgalloc.h:67: error: for each function it appears in.)
In file included from /usr/src/linux/include/asm/pci.h:41,
                 from /usr/src/linux/include/linux/pci.h:683,
                 from /var/tmp/portage/alsa-driver-1.0.8/work/alsa-driver-1.0.8/include/adriver.h:72,
                 from /var/tmp/portage/alsa-driver-1.0.8/work/alsa-driver-1.0.8/include/sound/driver.h:42,
                 from hwdep.c:22:
/usr/src/linux/include/asm/io.h: In function `virt_to_phys':
/usr/src/linux/include/asm/io.h:78: error: `PAGE_OFFSET_RAW' undeclared (first use in this function)
/usr/src/linux/include/asm/io.h: In function `phys_to_virt':
/usr/src/linux/include/asm/io.h:96: error: `PAGE_OFFSET_RAW' undeclared (first use in this function)
/usr/src/linux/include/asm/io.h: In function `isa_check_signature':
/usr/src/linux/include/asm/io.h:268: error: `PAGE_OFFSET_RAW' undeclared (first use in this function)
make[1]: *** [hwdep.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/alsa-driver-1.0.8/work/alsa-driver-1.0.8/acore'
make: *** [compile] Error 1

!!! ERROR: media-sound/alsa-driver-1.0.8 failed.
!!! Function src_compile, Line 86, Exitcode 2
!!! Make Failed
!!! If you need support, post the topmost build error, NOT this status message.
Comment 2 Andre Hinrichs 2005-03-22 02:02:38 UTC
After switching to vanilla-sources-2.4.28 everything is ok again.
So, it's a bug in the kernel.
Comment 3 Daniel Drake (RETIRED) gentoo-dev 2005-04-13 09:06:57 UTC
Marking as fixed as 2.4.28 is stable