Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 175437 - media-video/kino-0.9.5 fail to compile with ffmpeg-0.4.9_p20070330
Summary: media-video/kino-0.9.5 fail to compile with ffmpeg-0.4.9_p20070330
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Denis Dupeyron (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-21 12:45 UTC by ROPA Jean-Philippe
Modified: 2007-04-22 11:43 UTC (History)
2 users (show)

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 ROPA Jean-Philippe 2007-04-21 12:45:40 UTC
emerge failed with this output on an AMD64:

/usr/include/ffmpeg/avcodec.h:2445: attention : attribute ignored in declaration of ‘struct ImgReSampleContext’
/usr/include/ffmpeg/avcodec.h:2445: attention : attribute for ‘struct ImgReSampleContext’ must follow the ‘struct’ keyword
/usr/include/ffmpeg/avcodec.h:2450: attention : ‘ImgReSampleContext’ is deprecated (declared at /usr/include/ffmpeg/avcodec.h:2447)
/usr/include/ffmpeg/avcodec.h:2457: attention : ‘ImgReSampleContext’ is deprecated (declared at /usr/include/ffmpeg/avcodec.h:2447)
/usr/include/ffmpeg/avcodec.h:2461: attention : ‘ImgReSampleContext’ is deprecated (declared at /usr/include/ffmpeg/avcodec.h:2447)
/usr/include/ffmpeg/avcodec.h:2463: attention : ‘ImgReSampleContext’ is deprecated (declared at /usr/include/ffmpeg/avcodec.h:2447)
/usr/include/ffmpeg/avformat.h: In function ‘void av_init_packet(AVPacket*)’:
/usr/include/ffmpeg/avformat.h:66: erreur: ‘INT64_C’ was not declared in this scope
/usr/include/ffmpeg/avformat.h: At global scope:
/usr/include/ffmpeg/avformat.h:284: attention : ‘AVFrac’ is deprecated (declared at /usr/include/ffmpeg/avformat.h:118)
make[3]: *** [preferences.o] Erreur 1
make[3]: quittant le répertoire « /var/tmp/portage/media-video/kino-0.9.5/work/kino-0.9.5/src »
make[2]: *** [all-recursive] Erreur 1
make[2]: quittant le répertoire « /var/tmp/portage/media-video/kino-0.9.5/work/kino-0.9.5/src »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /var/tmp/portage/media-video/kino-0.9.5/work/kino-0.9.5 »
make: *** [all] Erreur 2

!!! ERROR: media-video/kino-0.9.5 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 1290:   Called src_compile
  kino-0.9.5.ebuild, line 61:   Called die

!!! Compilation failed
!!! 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-video:kino-0.9.5:20070421-120823.log'.

###############################################################################
My system:

# emerge --info
Portage 2.1.2.2 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r5_02 x86_64)
=================================================================
System uname: 2.6.19-gentoo-r5_02 x86_64 AMD Athlon(tm) 64 Processor 3400+
Gentoo Base System release 1.12.9
Timestamp of tree: Sat, 21 Apr 2007 07:50:01 +0000
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
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.16.1-r3
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=k8"
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/lib/fax /usr/share/X11/xkb /usr/share/config /var/spool/fax/etc"
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 -pipe -march=k8"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.club-internet.fr/pub/mirrors/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo "
LANG="fr_FR.utf-8"
LC_ALL="fr_FR.UTF-8"
LINGUAS="fr fr_FR en en_US"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acpi alsa amd64 arts bash-completion berkdb bitmap-fonts bluetooth cairo cdr cli cracklib crypt cups dbus dri dvd dvdr eds emacs emboss encode esd fam firefox fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal iconv imagemagick ipv6 isdnlog java jpeg kde ldap libg++ mad midi mikmod mp3 mpeg ncurses nls nptl nptlonly nsplugin ogg opengl oss pam pcmcia pcre pdf perl png ppds pppd python qt qt3 qt4 quicktime readline reflection samba sdl session spell spl ssl tcpd tetex truetype truetype-fonts type1-fonts unicode usb vorbis xml xorg xv xvid 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="fr fr_FR en en_US" USERLAND="GNU" VIDEO_CARDS="fglrx radeon vga vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

##############################################################################



Reproducible: Always

Steps to Reproduce:
# emerge -av --oneshot kino





By including this line in 
/usr/include/ffmpeg/avformat.h:

#define INT64_C

the compilation succeeded.
Comment 1 Denis Dupeyron (RETIRED) gentoo-dev 2007-04-22 10:28:29 UTC
(In reply to comment #0)
> By including this line in 
> /usr/include/ffmpeg/avformat.h:
> 
> #define INT64_C
> 
> the compilation succeeded.

Thanks for the bug report and the solution you offer. However, it requires messing with ffmpeg, which isn't a good idea in my opinion. I have adjusted the ffmpeg dependency in the ebuild to avoid the last 2 snapshots which are not compatible with kino-0.9.5.

I will be able to ask for the stabilization of kino-1.0.0 very soon, but in the meantime you can already use it as it seems to work great.

Denis.
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2007-04-22 10:44:08 UTC
> Thanks for the bug report and the solution you offer. However, it requires
> messing with ffmpeg, which isn't a good idea in my opinion. I have adjusted the
> ffmpeg dependency in the ebuild to avoid the last 2 snapshots which are not
> compatible with kino-0.9.5.
> 
> I will be able to ask for the stabilization of kino-1.0.0 very soon, but in the
> meantime you can already use it as it seems to work great.
> 
> Denis.
> 

Nah, it requires INT64_C to be defined before including ffmpeg headers in kinos files.

Similar way to,media-video/ffmpegthumbnailer/files/ffmpegthumbnailer-1.1-inttypes.patch

So unless you're not fixing it you should ask stabilization for kino-1.1.0 now to avoid upgrade/downgrade cycle caused by kino.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2007-04-22 10:46:22 UTC
kino-1.0.0 is what I meant, srry..
Comment 4 Denis Dupeyron (RETIRED) gentoo-dev 2007-04-22 11:43:03 UTC
(In reply to comment #2)
> Nah, it requires INT64_C to be defined before including ffmpeg headers in
> kinos files.

I guessed so, but the fix isn't as easy to apply as for ffmpegthumbnailer. Plus, fixing kino-0.9.5 is a waste of time as it's a version that's considered buggy by upstream and stabilization of 1.0.0 was just around the corner.

> So unless you're not fixing it you should ask stabilization for kino-1.1.0 now
> to avoid upgrade/downgrade cycle caused by kino.

That was the plan. I just need to iron out some minor thing with 1.0.0 and it'll be ready for stabilization. Please give my old brain a few minutes to organize this.

Denis.