Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 390067 - media-video/kino-1.3.4 w/ media-video/libav-0.8_pre20110818 - frame.cc:1066:78: error: 'avcodec_decode_video' was not declared in this scope
Summary: media-video/kino-1.3.4 w/ media-video/libav-0.8_pre20110818 - frame.cc:1066:7...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Denis Dupeyron (RETIRED)
URL: http://bugs.debian.org/cgi-bin/bugrep...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-10 10:03 UTC by Charlie Gehlin
Modified: 2011-11-15 12:05 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge.info,16.17 KB, text/plain)
2011-11-10 10:04 UTC, Charlie Gehlin
Details
build.log (build.log,64.15 KB, text/plain)
2011-11-10 10:06 UTC, Charlie Gehlin
Details
kino-1.3.4-libav-0.7.patch (kino-1.3.4-libav-0.7.patch,1.95 KB, text/plain)
2011-11-10 10:07 UTC, Charlie Gehlin
Details
kino-1.3.4.ebuild.patch (kino-1.3.4.ebuild.patch,421 bytes, patch)
2011-11-10 10:09 UTC, Charlie Gehlin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Charlie Gehlin 2011-11-10 10:03:57 UTC
kino seems to dependant on old ffmpeg.
Debian/Ubuntu have a patch for libav

Reproducible: Always

Steps to Reproduce:
1. emerge kino
2.
3.
Actual Results:  
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -Wall     -I/usr/include/lqt   -I/usr/include/alsa   -I/usr/include/libxml2   -pthread -DQT_SHARED -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/libdrm -I/usr/include/qt4/QtCore      -D_FILE_OFFSET_BITS=64 -DKINO_PLUGINDIR=\""/usr/lib64/kino-gtk2"\" -DDATADIR=\""/usr/share"\" -D_REENTRANT -D__STDC_CONSTANT_MACROS  -I/usr/include/libavcodec -I/usr/include/libavformat -I/usr/include/libswscale  -march=native -O2 -pipe -c -o avi.o avi.cc
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -Wall     -I/usr/include/lqt   -I/usr/include/alsa   -I/usr/include/libxml2   -pthread -DQT_SHARED -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/libdrm -I/usr/include/qt4/QtCore      -D_FILE_OFFSET_BITS=64 -DKINO_PLUGINDIR=\""/usr/lib64/kino-gtk2"\" -DDATADIR=\""/usr/share"\" -D_REENTRANT -D__STDC_CONSTANT_MACROS  -I/usr/include/libavcodec -I/usr/include/libavformat -I/usr/include/libswscale  -march=native -O2 -pipe -c -o frame.o frame.cc
frame.cc: In constructor 'Frame::Frame()':
frame.cc:104:15: warning: 'AVCodecContext* avcodec_alloc_context()' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3574)
frame.cc:104:37: warning: 'AVCodecContext* avcodec_alloc_context()' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3574)
frame.cc:105:2: warning: 'int avcodec_open(AVCodecContext*, AVCodec*)' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3705)
frame.cc:105:69: warning: 'int avcodec_open(AVCodecContext*, AVCodec*)' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3705)
frame.cc: In member function 'int Frame::ExtractRGB(void*)':
frame.cc:1066:78: error: 'avcodec_decode_video' was not declared in this scope
frame.cc: In member function 'int Frame::ExtractYUV(void*)':
frame.cc:1126:78: error: 'avcodec_decode_video' was not declared in this scope
frame.cc: In member function 'int Frame::ExtractYUV420(uint8_t*, uint8_t**)':
frame.cc:1159:78: error: 'avcodec_decode_video' was not declared in this scope
frame.cc: In member function 'bool Frame::CreateEncoder(bool, bool)':
frame.cc:1322:45: error: 'av_alloc_format_context' was not declared in this scope
frame.cc:1325:62: error: 'guess_format' was not declared in this scope
frame.cc:1327:29: error: 'CODEC_TYPE_VIDEO' was not declared in this scope
frame.cc:1352:4: warning: 'int avcodec_thread_init(AVCodecContext*, int)' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3667)
frame.cc:1352:70: warning: 'int avcodec_thread_init(AVCodecContext*, int)' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3667)
frame.cc:1356:4: warning: 'int av_set_parameters(AVFormatContext*, AVFormatParameters*)' is deprecated (declared at /usr/include/libavformat/avformat.h:1398)
frame.cc:1356:45: warning: 'int av_set_parameters(AVFormatContext*, AVFormatParameters*)' is deprecated (declared at /usr/include/libavformat/avformat.h:1398)
frame.cc:1357:4: warning: 'int avcodec_open(AVCodecContext*, AVCodec*)' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3705)
frame.cc:1357:75: warning: 'int avcodec_open(AVCodecContext*, AVCodec*)' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3705)
frame.cc: In member function 'void Frame::EncodeRGB(uint8_t*)':
frame.cc:1463:4: warning: 'int url_open_buf(AVIOContext**, uint8_t*, int, int)' is deprecated (declared at /usr/include/libavformat/avio.h:332)
frame.cc:1463:71: warning: 'int url_open_buf(AVIOContext**, uint8_t*, int, int)' is deprecated (declared at /usr/include/libavformat/avio.h:332)
frame.cc:1467:5: warning: 'int av_write_header(AVFormatContext*)' is deprecated (declared at /usr/include/libavformat/avformat.h:1456)
frame.cc:1467:38: warning: 'int av_write_header(AVFormatContext*)' is deprecated (declared at /usr/include/libavformat/avformat.h:1456)
frame.cc:1472:4: warning: 'int url_close_buf(AVIOContext*)' is deprecated (declared at /usr/include/libavformat/avio.h:335)
frame.cc:1472:39: warning: 'int url_close_buf(AVIOContext*)' is deprecated (declared at /usr/include/libavformat/avio.h:335)
make[3]: *** [frame.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/media-video/kino-1.3.4/work/kino-1.3.4/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-video/kino-1.3.4/work/kino-1.3.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-video/kino-1.3.4/work/kino-1.3.4'
make: *** [all] Error 2
 * ERROR: media-video/kino-1.3.4 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of 'emerge --info =media-video/kino-1.3.4',
 * the complete build log and the output of 'emerge -pqv =media-video/kino-1.3.4'.
 * The complete build log is located at '/var/tmp/portage/media-video/kino-1.3.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-video/kino-1.3.4/temp/environment'.
 * S: '/var/tmp/portage/media-video/kino-1.3.4/work/kino-1.3.4'

>>> Failed to emerge media-video/kino-1.3.4, Log file:

>>>  '/var/tmp/portage/media-video/kino-1.3.4/temp/build.log'

 * Messages for package media-video/kino-1.3.4:

 * ERROR: media-video/kino-1.3.4 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of 'emerge --info =media-video/kino-1.3.4',
 * the complete build log and the output of 'emerge -pqv =media-video/kino-1.3.4'.
 * The complete build log is located at '/var/tmp/portage/media-video/kino-1.3.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-video/kino-1.3.4/temp/environment'.
 * S: '/var/tmp/portage/media-video/kino-1.3.4/work/kino-1.3.4'


Expected Results:  
Compiles as expected with attached patch applied.

Will attach emerge --info
Comment 1 Charlie Gehlin 2011-11-10 10:04:58 UTC
Created attachment 292093 [details]
emerge --info
Comment 2 Charlie Gehlin 2011-11-10 10:06:36 UTC
Created attachment 292095 [details]
build.log
Comment 3 Charlie Gehlin 2011-11-10 10:07:34 UTC
Created attachment 292097 [details]
kino-1.3.4-libav-0.7.patch

Modified patch from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=634214
Comment 4 Charlie Gehlin 2011-11-10 10:09:47 UTC
Created attachment 292099 [details, diff]
kino-1.3.4.ebuild.patch

Diffs between my overlay ebuild and original in portage.
Comment 5 Luca Barbato gentoo-dev 2011-11-15 12:05:48 UTC
Update in portage, thank you =)