Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 168527 - media-tv/xawtv:-3.9.5-r1 fails w/ linux-headers-2.6.20
Summary: media-tv/xawtv:-3.9.5-r1 fails w/ linux-headers-2.6.20
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: sane-linux-headers
  Show dependency tree
 
Reported: 2007-02-27 06:22 UTC by Nicolas Boichat
Modified: 2009-03-25 05:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
xawtv-3.95-pagemask-fix.patch (xawtv-3.95-pagemask-fix.patch,1.43 KB, patch)
2007-02-27 06:23 UTC, Nicolas Boichat
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Boichat 2007-02-27 06:22:54 UTC
PAGE_SIZE and PAGE_MASK were removed at some point from the linux-headers (I cannot tell from which version exactly). I have linux-headers-2.6.20-r1 installed on my Gentoo.

Reproducible: Always

Steps to Reproduce:
1. emerge -a =xawtv-3.95-r1

Actual Results:  
i686-pc-linux-gnu-gcc -march=prescott -Os -pipe -msse -msse2 -msse3 -I/usr/include/X11/fonts -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/freetype2 -I/usr/X11R6/include/X11/fonts -I. -I./vbistuff -I./x11 -I./jwz -I./common -I./console -I./x11 -I./structs -I./libng -Llibng -DCONFIGFILE="/etc/X11/xawtvrc" -DLIBDIR="/usr/lib/xawtv" -DDATADIR="/usr/share/xawtv" -DVERSION="3.95" -Wp,-MD,mk/console_matrox.tmp -c -o console/matrox.o console/matrox.c
console/fbtools.c:24:22: error: asm/page.h: No such file or directory
console/fbtools.c: In function 'fb_init':
console/fbtools.c:427: error: 'PAGE_MASK' undeclared (first use in this function)
console/fbtools.c:427: error: (Each undeclared identifier is reported only once
console/fbtools.c:427: error: for each function it appears in.)
make: *** [console/fbtools.o] Error 1
make: *** Waiting for unfinished jobs....
console/matrox.c:12:38: error: asm/page.h: No such file or directory
console/matrox.c: In function 'gfx_init':
console/matrox.c:229: error: 'PAGE_SIZE' undeclared (first use in this function)
console/matrox.c:229: error: (Each undeclared identifier is reported only once
console/matrox.c:229: error: for each function it appears in.)
make: *** [console/matrox.o] Error 1

!!! ERROR: media-tv/xawtv-3.95-r1 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 3796:   Called src_compile
  xawtv-3.95-r1.ebuild, line 103:   Called die

!!! Make failed


Portage 2.1.2-r11 (default-linux/x86/2006.0, gcc-4.1.2, glibc-2.5-r0, 2.6.20.1-mactel i686)
=================================================================
System uname: 2.6.20.1-mactel i686 Genuine Intel(R) CPU           T2400  @ 1.83GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Mon, 26 Feb 2007 23:50:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
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, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -Os -pipe -msse -msse2 -msse3"
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/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.averse.net/pub/gentoo/ http://mirror.pacific.net.au/linux/Gentoo/ http://ftp.gentoo.or.kr/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/"
LINGUAS="en fr zh"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/xeffects /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amr berkdb bitmap-fonts cairo cracklib crypt cups dbus dri encode exif firefox gdbm gif glitz gnome gstreamer gtk gtk2 iconv imlib isight java jpeg kerberos kqemu libwww mad madwifi matroska midi mikmod mmx mmxext motif mp3 mpeg ncurses nls no-seamonkey nptl nptlonly nsplugin ogg opengl pam passwordsave pcre pdf perl png python quicktime readline real samba sdl session speex spell sse sse2 ssl stream svg tcpd theora threads truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vorbis win32codecs winbind wxwindows x264 x86 xml xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en fr zh" USERLAND="GNU" VIDEO_CARDS="vesa fbdev fglrx"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Nicolas Boichat 2007-02-27 06:23:56 UTC
Created attachment 111376 [details, diff]
xawtv-3.95-pagemask-fix.patch

Patch from Andreas Jochens I found there:
http://lists.debian.org/debian-qa-packages/2006/08/msg00519.html
Comment 2 Nicolas Boichat 2007-02-27 06:24:52 UTC
Patch for xawtv ebuild:

--- xawtv-3.95-r2.ebuild	2007-02-27 14:06:07.000000000 +0800
+++ /usr/portage/media-tv/xawtv/xawtv-3.95-r1.ebuild	2007-01-01 02:36:01.000000000 +0800
@@ -78,7 +78,6 @@
 
 	EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
 	epatch "${FILESDIR}/${P}-libquicktime-compat.patch"
-	epatch "${FILESDIR}/${P}-pagemask-fix.patch"
 	eautoreconf
 }
Comment 3 Alexis Ballier gentoo-dev 2007-03-02 17:27:41 UTC
fixed, thanks.
Comment 4 John Germs 2009-03-25 05:57:08 UTC
(In reply to comment #3)
> fixed, thanks.
> 

I was receiving the identical error mentioned by Nicholas when trying to emerge the xawtv-3.95-r1.ebuild
The pagemask patch line he mentiones to remove for the next ebuild (xawtv-3.95-r2.ebuild) is not actually present in the xawtv-3.95-r1.ebuild. This makes me think perhaps Nicholas accidentally pasted a backwards patch and that it should be added (as compared to removed) because I found that applying the patch from Andreas Jochens allowed everything to compile.
Hence Nicholas's pagemask-fix.patch = patch from Andreas Jochens?

I realize this bug is in reference to the 2.6.20 kernel.
I'm running a K8 with a 2.6.25 kernel, but I felt it worth mentioning since his bug starts off by saying pagemask was removed and still appears to be removed in the new kernels.