Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 378011 - net-misc/mediatomb-0.12.1 - ../src/metadata/ffmpeg_handler.cc:92:25: error: ‘struct AVFormatContext’ has no member named ‘title’
Summary: net-misc/mediatomb-0.12.1 - ../src/metadata/ffmpeg_handler.cc:92:25: error: ‘...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Jeremy Olexa (darkside) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-06 14:54 UTC by Chr0nos
Modified: 2011-12-21 12:44 UTC (History)
6 users (show)

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


Attachments
build log (build.log,72.25 KB, text/plain)
2011-08-12 15:03 UTC, Chr0nos
Details
Proposed updated ebuild (mediatomb-0.12.1-r1.ebuild.patch,377 bytes, patch)
2011-09-12 02:35 UTC, Martin Cyr
Details | Diff
Proposed source patch for ffmpeg-0.7 (mediatomb-0.12.1-fix_libav_0.7_support.patch,2.00 KB, patch)
2011-09-12 02:35 UTC, Martin Cyr
Details | Diff
Proposed updated ebuild with libav support (mediatomb-0.12.1.ebuild.patch,460 bytes, patch)
2011-10-17 22:59 UTC, Florian Klink
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chr0nos 2011-08-06 14:54:25 UTC
hi, i have some trouble when i try to recompil mediatomb with emerge -av mediatomb or emerge @preserved-rebuild


Reproducible: Always

Steps to Reproduce:
1.emerge -v mediatomb
2.
3.
Actual Results:  
mv -f .deps/libmediatomb_a-mem_io_handler.Tpo .deps/libmediatomb_a-mem_io_handler.Po
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I../tombupnp/upnp/inc    -I../src -I../tombupnp/ixml/inc -I../tombupnp/threadutil/inc -I../tombupnp/upnp/inc -I..    -I/usr/include/taglib       -pthread        -O2 -mtune=core2 -march=core2 -pipe  -MT libmediatomb_a-exiv2_handler.o -MD -MP -MF .deps/libmediatomb_a-exiv2_handler.Tpo -c -o libmediatomb_a-exiv2_handler.o `test -f '../src/metadata/exiv2_handler.cc' || echo './'`../src/metadata/exiv2_handler.cc
mv -f .deps/libmediatomb_a-exiv2_handler.Tpo .deps/libmediatomb_a-exiv2_handler.Po
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I../tombupnp/upnp/inc    -I../src -I../tombupnp/ixml/inc -I../tombupnp/threadutil/inc -I../tombupnp/upnp/inc -I..    -I/usr/include/taglib       -pthread        -O2 -mtune=core2 -march=core2 -pipe  -MT libmediatomb_a-extractor_handler.o -MD -MP -MF .deps/libmediatomb_a-extractor_handler.Tpo -c -o libmediatomb_a-extractor_handler.o `test -f '../src/metadata/extractor_handler.cc' || echo './'`../src/metadata/extractor_handler.cc
mv -f .deps/libmediatomb_a-dvd_handler.Tpo .deps/libmediatomb_a-dvd_handler.Po
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I../tombupnp/upnp/inc    -I../src -I../tombupnp/ixml/inc -I../tombupnp/threadutil/inc -I../tombupnp/upnp/inc -I..    -I/usr/include/taglib       -pthread        -O2 -mtune=core2 -march=core2 -pipe  -MT libmediatomb_a-ffmpeg_handler.o -MD -MP -MF .deps/libmediatomb_a-ffmpeg_handler.Tpo -c -o libmediatomb_a-ffmpeg_handler.o `test -f '../src/metadata/ffmpeg_handler.cc' || echo './'`../src/metadata/ffmpeg_handler.cc
mv -f .deps/libmediatomb_a-extractor_handler.Tpo .deps/libmediatomb_a-extractor_handler.Po
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I../tombupnp/upnp/inc    -I../src -I../tombupnp/ixml/inc -I../tombupnp/threadutil/inc -I../tombupnp/upnp/inc -I..    -I/usr/include/taglib       -pthread        -O2 -mtune=core2 -march=core2 -pipe  -MT libmediatomb_a-metadata_handler.o -MD -MP -MF .deps/libmediatomb_a-metadata_handler.Tpo -c -o libmediatomb_a-metadata_handler.o `test -f '../src/metadata_handler.cc' || echo './'`../src/metadata_handler.cc
../src/metadata/ffmpeg_handler.cc: In function ‘void addFfmpegMetadataFields(zmm::Ref<CdsItem>, AVFormatContext*)’:
../src/metadata/ffmpeg_handler.cc:92:25: erreur: ‘struct AVFormatContext’ has no member named ‘title’
../src/metadata/ffmpeg_handler.cc:94:110: erreur: ‘struct AVFormatContext’ has no member named ‘title’
../src/metadata/ffmpeg_handler.cc:96:51: erreur: ‘struct AVFormatContext’ has no member named ‘title’
../src/metadata/ffmpeg_handler.cc:98:25: erreur: ‘struct AVFormatContext’ has no member named ‘author’
../src/metadata/ffmpeg_handler.cc:100:112: erreur: ‘struct AVFormatContext’ has no member named ‘author’
../src/metadata/ffmpeg_handler.cc:102:51: erreur: ‘struct AVFormatContext’ has no member named ‘author’
../src/metadata/ffmpeg_handler.cc:104:25: erreur: ‘struct AVFormatContext’ has no member named ‘album’
../src/metadata/ffmpeg_handler.cc:106:111: erreur: ‘struct AVFormatContext’ has no member named ‘album’
../src/metadata/ffmpeg_handler.cc:108:51: erreur: ‘struct AVFormatContext’ has no member named ‘album’
../src/metadata/ffmpeg_handler.cc:110:18: erreur: ‘struct AVFormatContext’ has no member named ‘year’
../src/metadata/ffmpeg_handler.cc:112:110: erreur: ‘struct AVFormatContext’ has no member named ‘year’
../src/metadata/ffmpeg_handler.cc:114:64: erreur: ‘struct AVFormatContext’ has no member named ‘year’
../src/metadata/ffmpeg_handler.cc:116:25: erreur: ‘struct AVFormatContext’ has no member named ‘genre’
../src/metadata/ffmpeg_handler.cc:118:111: erreur: ‘struct AVFormatContext’ has no member named ‘genre’
../src/metadata/ffmpeg_handler.cc:120:51: erreur: ‘struct AVFormatContext’ has no member named ‘genre’
../src/metadata/ffmpeg_handler.cc:122:25: erreur: ‘struct AVFormatContext’ has no member named ‘comment’
../src/metadata/ffmpeg_handler.cc:124:113: erreur: ‘struct AVFormatContext’ has no member named ‘comment’
../src/metadata/ffmpeg_handler.cc:126:51: erreur: ‘struct AVFormatContext’ has no member named ‘comment’
../src/metadata/ffmpeg_handler.cc:128:18: erreur: ‘struct AVFormatContext’ has no member named ‘track’
../src/metadata/ffmpeg_handler.cc:130:111: erreur: ‘struct AVFormatContext’ has no member named ‘track’
../src/metadata/ffmpeg_handler.cc:132:64: erreur: ‘struct AVFormatContext’ has no member named ‘track’
../src/metadata/ffmpeg_handler.cc: In function ‘void addFfmpegResourceFields(zmm::Ref<CdsItem>, AVFormatContext*, int*, int*)’:
../src/metadata/ffmpeg_handler.cc:181:73: erreur: ‘CODEC_TYPE_VIDEO’ was not declared in this scope
../src/metadata/ffmpeg_handler.cc:212:31: erreur: ‘CODEC_TYPE_AUDIO’ was not declared in this scope
../src/metadata/ffmpeg_handler.cc: In member function ‘virtual void FfmpegHandler::fillMetadata(zmm::Ref<CdsItem>)’:
../src/metadata/ffmpeg_handler.cc:263:9: attention : ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1090)
../src/metadata/ffmpeg_handler.cc:264:73: attention : ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1090)
make[2]: *** [libmediatomb_a-ffmpeg_handler.o] Erreur 1
make[2]: *** Attente des tâches non terminées....
mv -f .deps/libmediatomb_a-content_manager.Tpo .deps/libmediatomb_a-content_manager.Po
mv -f .deps/libmediatomb_a-fallback_layout.Tpo .deps/libmediatomb_a-fallback_layout.Po
mv -f .deps/libmediatomb_a-metadata_handler.Tpo .deps/libmediatomb_a-metadata_handler.Po
mv -f .deps/libmediatomb_a-config_manager.Tpo .deps/libmediatomb_a-config_manager.Po
make[2] : on quitte le répertoire « /var/tmp/portage/net-misc/mediatomb-0.12.1/work/mediatomb-0.12.1/build »
make[1]: *** [all-recursive] Erreur 1
make[1] : on quitte le répertoire « /var/tmp/portage/net-misc/mediatomb-0.12.1/work/mediatomb-0.12.1 »
make: *** [all] Erreur 2
emake failed
 * ERROR: net-misc/mediatomb-0.12.1 failed (compile phase):
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 3121:  Called _eapi2_src_compile
 *     ebuild.sh, line  669:  Called die
 * The specific snippet of code:
 *   		emake || die "emake failed"
 * 
 * If you need support, post the output of 'emerge --info =net-misc/mediatomb-0.12.1',
 * the complete build log and the output of 'emerge -pqv =net-misc/mediatomb-0.12.1'.
 * The complete build log is located at '/var/tmp/portage/net-misc/mediatomb-0.12.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-misc/mediatomb-0.12.1/temp/environment'.
 * S: '/var/tmp/portage/net-misc/mediatomb-0.12.1/work/mediatomb-0.12.1'



Expected Results:  
a work compilation :)

StarK / # emerge --info
Portage 2.2.0_alpha50 (default/linux/amd64/10.0/desktop/gnome, gcc-4.5.3, glibc-2.13-r4, 2.6.39-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.39-gentoo-r1-x86_64-Intel-R-_Core-TM-_i3_CPU_540_@_3.07GHz-with-gentoo-2.0.3
Timestamp of tree: Sat, 06 Aug 2011 11:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.5 [enabled]
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r2, 3.2-r2
dev-util/ccache:          3.1.5
dev-util/cmake:           2.8.5-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1
sys-devel/gcc:            4.5.3
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo sunrise multimedia voyageur games gamerlay-stable pcsx2 mozilla java-overlay artemis
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -mtune=core2 -march=core2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -mtune=core2 -march=core2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg ccache distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ "
LANG="fr_FR"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/multimedia /var/lib/layman/voyageur /var/lib/layman/games /var/lib/layman/gamerlay /var/lib/layman/pcsx2 /var/lib/layman/mozilla /var/lib/layman/java-overlay /var/lib/layman/chronos"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam ffmpeg firefox flac fortran gdbm gdu gif gnome gnome-keyring gnutls gpm gstreamer gtk iconv ipv6 joystick jpeg lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses networkmanager nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd pulseaudio python qt3support qt4 readline samba sdl session spell sse sse2 ssl startup-notification svg sysfs syslog tcpd threads tiff truetype udev unicode usb vorbis x264 xcb xml xorg xulrunner 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="wacom joystick evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

StarK / # cat /etc/portage/package.use | grep mediatomb
net-misc/mediatomb inotify thumbnail -javascript
Comment 1 Oliver Freyermuth 2011-08-07 00:41:41 UTC
I am hit by this, too. 
Appears to be related to new >ffmpeg-0.7 / libav-0.7. Can you confirm having updated to the unstable versions of one of those packages?
Comment 2 Wormo (RETIRED) gentoo-dev 2011-08-07 06:36:14 UTC
Yes, please post ffmpeg version; this looks like another symptom of ffmpeg API changes
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2011-08-07 14:05:48 UTC
Please attach a complete build log.
Comment 4 Chr0nos 2011-08-12 15:03:55 UTC
Created attachment 283039 [details]
build log

sorry for the reply time i was in hollidays for the week
ps: excuse my bad english
Comment 5 Chr0nos 2011-08-12 15:06:10 UTC
i have the media-video/ffmpeg-0.8.2 installed
Comment 6 Dmitri Bogomolov 2011-08-20 22:27:07 UTC
I have same problem with media-video/libav-0.8_pre20110818
Comment 7 michkas78 2011-09-04 14:50:34 UTC
Having the same problem, I modified the ffmpeg_handler.cc code as proposed in https://launchpadlibrarian.net/71985647/libav_0.7_support.patch.
For further details you can also read https://bugs.launchpad.net/ubuntu/+source/mediatomb/+bug/784431

Manual compilation (using the source code I had already downloaded through Portage) was successfully completed and mediatomb seems to be running normally.
Comment 8 Martin Cyr 2011-09-12 02:35:02 UTC
Created attachment 286199 [details, diff]
Proposed updated ebuild
Comment 9 Martin Cyr 2011-09-12 02:35:57 UTC
Created attachment 286201 [details, diff]
Proposed source patch for ffmpeg-0.7
Comment 10 Florian Klink 2011-10-17 22:57:03 UTC
I tested the ebuild and patch from #8 and #9.

The patch should also be applied if >=media-video/libav-0.8_pre20110818 is installed. On my machine, I had no ffmepg, only libav, so the patching didn't run.

After I modified the ebuild to also do the patching if we have libav, the compilation worked fine. (amd64, libav-0.8_pre20110818)
Comment 11 Florian Klink 2011-10-17 22:59:49 UTC
Created attachment 290125 [details, diff]
Proposed updated ebuild with libav support
Comment 12 Azpegath 2011-12-04 19:58:39 UTC
Is anybody bringing these fixes into portage? Same issue here with ffmpeg-0.8.7. No libav.
Comment 13 Alexis Ballier gentoo-dev 2011-12-21 12:44:48 UTC
*mediatomb-0.12.1-r1 (07 Dec 2011)

  07 Dec 2011; Jeff Gardner <je_fro@gentoo.org> +mediatomb-0.12.1-r1.ebuild,
  +files/mediatomb-0.12.1-libav7.patch:
  Add libav-0.7 support, thanks to Daniel van Vugt (vanvugt)


-> fixed it seems