Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 196198 - media-tv/kvdr-0.64-r1: compile error
Summary: media-tv/kvdr-0.64-r1: compile error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-17 18:58 UTC by sogined
Modified: 2007-11-17 09:51 UTC (History)
1 user (show)

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


Attachments
patch which removes the ansi compile flag so that __u64 is defined (remove-ansi-cflag.patch,3.73 KB, patch)
2007-10-17 19:02 UTC, sogined
Details | Diff
corrects cast error (unsigned-int-casting.patch,509 bytes, patch)
2007-10-17 19:03 UTC, sogined
Details | Diff
minor .desktop file corrections (desktop-file.patch,570 bytes, patch)
2007-10-17 19:03 UTC, sogined
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description sogined 2007-10-17 18:58:54 UTC
In file included from /usr/include/linux/videodev.h:15,
                 from kvdr.h:44,
                 from ckvdrcfg.cpp:27:
/usr/include/linux/videodev2.h:599: error: ‘__u64’ does not name a type
/usr/include/linux/videodev2.h:691: error: ‘v4l2_std_id’ does not name a type
/usr/include/linux/videodev2.h:708: error: ‘v4l2_std_id’ does not name a type
/usr/include/linux/videodev2.h:746: error: ‘v4l2_std_id’ does not name a type
/usr/include/linux/videodev2.h:769: error: ‘__s64’ does not name a type
/usr/include/linux/videodev2.h:1144: error: ‘__u64’ does not name a type
/usr/include/linux/videodev2.h:1145: error: ‘__u64’ does not name a type
/usr/include/linux/videodev2.h:1305: error: ‘__u64’ does not name a type
/usr/include/linux/videodev2.h:1306: error: ‘__u64’ does not name a type
make[3]: *** [ckvdrcfg.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from /usr/include/linux/videodev.h:15,
                 from kvdr.h:44,
                 from kvdr.cpp:18:
/usr/include/linux/videodev2.h:599: error: ‘__u64’ does not name a type
/usr/include/linux/videodev2.h:691: error: ‘v4l2_std_id’ does not name a type
/usr/include/linux/videodev2.h:708: error: ‘v4l2_std_id’ does not name a type
/usr/include/linux/videodev2.h:746: error: ‘v4l2_std_id’ does not name a type
/usr/include/linux/videodev2.h:769: error: ‘__s64’ does not name a type
/usr/include/linux/videodev2.h:1144: error: ‘__u64’ does not name a type
/usr/include/linux/videodev2.h:1145: error: ‘__u64’ does not name a type
/usr/include/linux/videodev2.h:1305: error: ‘__u64’ does not name a type
/usr/include/linux/videodev2.h:1306: error: ‘__u64’ does not name a type
kvdr.cpp:56: warning: unused parameter ‘event’
kvdr.cpp: In constructor ‘Kvdr::Kvdr(QWidget*, const char*)’:
kvdr.cpp:104: warning: dereferencing type-punned pointer will break strict-aliasing rules
kvdr.cpp:104: error: invalid conversion from ‘int*’ to ‘unsigned int*’
kvdr.cpp:104: error:   initializing argument 3 of ‘int XF86DGAGetVideoLL(Display*, int, unsigned int*, int*, int*, int*)’
kvdr.cpp:156: warning: unused variable ‘orgDesktop’
kvdr.cpp: At global scope:
kvdr.cpp:389: warning: unused parameter ‘e’
kvdr.cpp: In member function ‘bool Kvdr::GImg(const char*, bool, int, int, int)’:
kvdr.cpp:860: warning: comparison of unsigned expression < 0 is always false
kvdr.cpp: At global scope:
kvdr.cpp:1881: warning: unused parameter ‘ev’
kvdr.cpp:1886: warning: unused parameter ‘ev’
kvdr.cpp: In member function ‘void Kvdr::addCRect(int&, int, int, int, int)’:
kvdr.cpp:1958: warning: unused variable ‘callno’
kvdr.cpp: At global scope:
kvdr.cpp:2341: warning: unused parameter ‘event’
kvdr.cpp:681: warning: ‘void yuy2_bgr24_c(unsigned char*, const unsigned char*, int)’ defined but not used
make[3]: *** [kvdr.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Reproducible: Always

Steps to Reproduce:
just emerge it
Actual Results:  
ebuild fails due to the following compile errors:
 - __u64 type is not defined
 - wrong void pointer cast

Expected Results:  
compile without errors :)
Comment 1 sogined 2007-10-17 19:02:04 UTC
Created attachment 133696 [details, diff]
patch which removes the ansi compile flag so that __u64 is defined
Comment 2 sogined 2007-10-17 19:03:01 UTC
Created attachment 133698 [details, diff]
corrects cast error
Comment 3 sogined 2007-10-17 19:03:23 UTC
Created attachment 133699 [details, diff]
minor .desktop file corrections
Comment 4 Matthias Schwarzott gentoo-dev 2007-10-18 16:24:34 UTC
Fixed compile issues with patches submitted by ms@venturemedia.de
Comment 5 Vasilij K. Savin 2007-10-22 18:41:10 UTC
(In reply to comment #4)
> Fixed compile issues with patches submitted by ms@venturemedia.de
> 

Do you know when it'll be fixed in portage?
Comment 6 Matthias Schwarzott gentoo-dev 2007-10-22 18:52:00 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > Fixed compile issues with patches submitted by ms@venturemedia.de
> > 
> 
> Do you know when it'll be fixed in portage?
> 

It IS fixed. That is the reason this bug is closed. As soon as you do emerge --sync you can emerge kvdr-0.64-r2.
Comment 7 Vasilij K. Savin 2007-10-22 19:33:03 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > (In reply to comment #4)
> > > Fixed compile issues with patches submitted by ms@venturemedia.de
> > > 
> > 
> > Do you know when it'll be fixed in portage?
> > 
> 
> It IS fixed. That is the reason this bug is closed. As soon as you do emerge
> --sync you can emerge kvdr-0.64-r2.
> 
Sorry, it is NOT fixed yet! At least for me ;(
The error message and my emerge --info below:

kvdr.cpp:56: warning: unused parameter 'event'
kvdr.cpp: In constructor 'Kvdr::Kvdr(QWidget*, const char*)':
kvdr.cpp:104: warning: dereferencing type-punned pointer will break strict-aliasing rules
kvdr.cpp:104: error: invalid conversion from 'unsigned int*' to 'int*'
kvdr.cpp:104: error:   initializing argument 3 of 'int XF86DGAGetVideoLL(Display*, int, int*, int*, int*, int*)'
kvdr.cpp:156: warning: unused variable 'orgDesktop'
kvdr.cpp: At global scope:
kvdr.cpp:389: warning: unused parameter 'e'
kvdr.cpp: In member function 'bool Kvdr::GImg(const char*, bool, int, int, int)':
kvdr.cpp:860: warning: comparison of unsigned expression < 0 is always false
kvdr.cpp: At global scope:
kvdr.cpp:1881: warning: unused parameter 'ev'
kvdr.cpp:1886: warning: unused parameter 'ev'
kvdr.cpp: In member function 'void Kvdr::addCRect(int&, int, int, int, int)':
kvdr.cpp:1958: warning: unused variable 'callno'
kvdr.cpp: At global scope:
kvdr.cpp:2341: warning: unused parameter 'event'
kvdr.cpp:681: warning: 'void yuy2_bgr24_c(unsigned char*, const unsigned char*, int)' defined but not used
make[3]: *** [kvdr.o] Error 1
make[3]: *** Waiting for unfinished jobs....
main.cpp:51: warning: unused parameter 'i'
make[3]: Leaving directory `/var/tmp/portage/media-tv/kvdr-0.64-r2/work/kvdr-0.64-gentoo/kvdr'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-tv/kvdr-0.64-r2/work/kvdr-0.64-gentoo/kvdr'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-tv/kvdr-0.64-r2/work/kvdr-0.64-gentoo'
make: *** [all] Error 2
 *
 * ERROR: media-tv/kvdr-0.64-r2 failed.
 * Call stack:
 *   ebuild.sh, line 1654:   Called dyn_compile
 *   ebuild.sh, line 990:   Called qa_call 'src_compile'
 *   ebuild.sh, line 44:   Called src_compile
 *   ebuild.sh, line 1334:   Called kde_src_compile
 *   kde.eclass, line 170:   Called kde_src_compile 'all'
 *   kde.eclass, line 340:   Called kde_src_compile 'myconf' 'configure' 'make'
 *   kde.eclass, line 336:   Called die
 *
 * died running emake, kde_src_compile:make
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/media-tv:kvdr-0.64-r2:20071022-182824.log'.
 *

Portage 2.1.3.9 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-gentoo-r8amd64ws878 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r8amd64ws878 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Timestamp of tree: Mon, 22 Oct 2007 17:30:09 +0000
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-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/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs distlocks fixpackages metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en lt ru"
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/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X X509 aac acl acpi aiglx aio alsa amd64 apache2 apm arts asf atm audiofile avahi avi berkdb bitmap-fonts bluetooth bzip2 cairo caps cdparanoia cdr chroot cli cracklib crypt cups curl dbus dga divx4linux dlloader dmx dri dts dv dvd dvdr dvdread emboss encode esd ethereal evo exif fam fax ffmpeg firefox flac flash font-server foomaticdb fpx gd gdbm gif gmp gnokii gnutls gphoto2 gpm graphvi graphviz gstreamer gtk gtk2 iconv imlib ipv6 irda isdnlog ithreads jack java jbig jpeg jpeg2k kde kerberos krb4 lcms libg++ libwww lirc live lm_sensors logrotate lzo mad mailbox mailwrapper matroska mbox md5sum midi mikmod milter mmx mmxext mng modplug motif mozilla mp2 mp3 mpeg mudflap musepack mythtv nas ncurses netboot nethack network nls nntp nptl nptlonly nsplugin nvidia ogg opengl openmp oss pam pcmcia pcre pda pdf perl png pnp ppds pppd pthreads python qt qt3 qt3support qt4 quicktime rar readline realmedia reflection rtc samba scanner sdl serial session skey slang slp sms sndfile snmp socks5 speex spell spl sse sse2 ssh ssl svg sysfs tcpd tga theora threads tiff timidity tk truetype truetype-fonts type1-fonts unicode usb utf8 v4l v4l2 vcd vesa vorbis wavpack wma wmf x264 xanim xcomposite xinetd xml xml2 xorg xprint xscreensaver xv xvid xvmc zeroconf 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en lt ru" USERLAND="GNU" VIDEO_CARDS="nv nvidia v4l vesa vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 8 sogined 2007-10-22 21:06:04 UTC
Which version of xf86dgaproto do you have? (you can find out your version with 'equery l xf86dgaproto')
Comment 9 Vasilij K. Savin 2007-10-23 08:05:03 UTC
(In reply to comment #8)
> Which version of xf86dgaproto do you have? (you can find out your version with
> 'equery l xf86dgaproto')
> 
I think (99.9%) that it is 2.0.2 but I'll check it tonight (it is my home box).
Comment 10 Vasilij K. Savin 2007-10-23 16:57:33 UTC
(In reply to comment #8)
> Which version of xf86dgaproto do you have? (you can find out your version with
> 'equery l xf86dgaproto')
> 

Here you are:
x11-proto/xf86dgaproto-2.0.2
Comment 11 sogined 2007-10-23 20:02:32 UTC
(In reply to comment #10)
> Here you are:
> x11-proto/xf86dgaproto-2.0.2
> 

Alright. I suggest to let the 'unigned-int-casting.patch' depend on version 2.0.3 of xf86dgaproto.

ebuild change:
has_version '>=x11-proto/xf86dgaproto-2.0.3' && epatch "${FILESDIR}/kvdr-0.64-unsigned-int-casting.patch"
Comment 12 Vasilij K. Savin 2007-10-25 06:01:43 UTC
(In reply to comment #11)
> (In reply to comment #10)
> > Here you are:
> > x11-proto/xf86dgaproto-2.0.2
> > 
> 
> Alright. I suggest to let the 'unigned-int-casting.patch' depend on version
> 2.0.3 of xf86dgaproto.
> 
> ebuild change:
> has_version '>=x11-proto/xf86dgaproto-2.0.3' && epatch
> "${FILESDIR}/kvdr-0.64-unsigned-int-casting.patch"
> 

It's compiled with version 2.0.3, thanks!
I'll test the whole system ASAP.
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2007-11-17 09:51:49 UTC
Closing; you are mixing ~arch ebuilds with stable dependencies, which is unsupported.