Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 185350 - media-tv/linuxtv-dvb-apps-1.1.1.20070114 fails to emerge
Summary: media-tv/linuxtv-dvb-apps-1.1.1.20070114 fails to emerge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo VDR Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-14 21:02 UTC by Alexander Hsia
Modified: 2007-07-18 08:10 UTC (History)
1 user (show)

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


Attachments
error log produced by emerge (linuxtv-dvb-apps.log,1.79 KB, text/plain)
2007-07-14 21:03 UTC, Alexander Hsia
Details
emerge info (emerge.info,9.13 KB, text/plain)
2007-07-15 07:11 UTC, Alexander Hsia
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Hsia 2007-07-14 21:02:23 UTC
emerge linuxtv-dvb-apps results in the following error:

CC dvbvideo.o
In file included from dvbvideo.c:28:
/usr/include/linux/dvb/video.h:100: error: expected specifier-qualifier-list before รข
make[2]: *** [dvbvideo.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/media-tv/linuxtv-dvb-apps-1.1.1.20070114/work/linuxtv-dvb-apps-20070114/lib/libdvbapi'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/media-tv/linuxtv-dvb-apps-1.1.1.20070114/work/linuxtv-dvb-apps-20070114/lib'
make: *** [all] Error 2
 * 
 * ERROR: media-tv/linuxtv-dvb-apps-1.1.1.20070114 failed.
 * Call stack:


Reproducible: Always

Steps to Reproduce:
1.emerge linuxtv-dvb-apps
2.
3.

Actual Results:  
failed emerge

Expected Results:  
successful emerge
Comment 1 Alexander Hsia 2007-07-14 21:03:51 UTC
Created attachment 124880 [details]
error log produced by emerge
Comment 2 Alexander Hsia 2007-07-15 07:11:40 UTC
Created attachment 124901 [details]
emerge info
Comment 3 Martin Jansa 2007-07-18 06:50:47 UTC
For newer kernel (2.6.22) you have to add #include <linux/types.h> to dvbvideo.c before including of video.h from linux-headers.

Info in german http://www.vdr-portal.de/board/print.php?threadid=66358&page=1&sid=82f0d443ecb0218088f21c62be1a9dd9

This patch do this, save it in files dir and add 

epatch ${FILESDIR}/kernel-2.6.22.patch line in ebuild

diff -uNr linuxtv-dvb-apps-20070114.orig/lib/libdvbapi/dvbvideo.c linuxtv-dvb-apps-20070114/lib/libdvbapi/dvbvideo.c
--- linuxtv-dvb-apps-20070114.orig/lib/libdvbapi/dvbvideo.c     2007-07-18 08:43:30.968087841 +0200
+++ linuxtv-dvb-apps-20070114/lib/libdvbapi/dvbvideo.c  2007-07-18 08:42:40.272317488 +0200
@@ -25,6 +25,7 @@
 #include <fcntl.h>
 #include <unistd.h>
 #include <sys/ioctl.h>
+#include <linux/types.h>
 #include <linux/dvb/video.h>
 #include <errno.h>
 #include "dvbvideo.h"
Comment 4 Matthias Schwarzott gentoo-dev 2007-07-18 08:10:54 UTC
Fixed, thanks for reporting and patch.