Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 188183
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Olivier Crete <tester@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Zillode <zillode@hotmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
build.log buildlog text/plain Zillode 2007-08-08 22:46 0000 927.26 KB Details
mpeg4ip-1.5.0.1-avcodec_extern_c.patch patch to fix compilation patch Andreas Arens 2007-11-24 08:31 0000 1.18 KB Details | Diff
mpeg4ip-1.5.0.1-r3.ebuild patched ebuild text/plain Andreas Arens 2007-11-24 08:32 0000 3.64 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 188183 depends on: Show dependency tree
Bug 188183 blocks:
Votes: 5    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-08-08 22:43 0000
mpeg4ip fails with useflagg ffmpeg enabled

./.libs/libmp4live.a(audio_ffmpeg.o): In function `InitFFmpegAudio()':
audio_ffmpeg.cpp:(.text+0x1f6): undefined reference to `avcodec_init()'
audio_ffmpeg.cpp:(.text+0x1fb): undefined reference to `avcodec_register_all()'
audio_ffmpeg.cpp:(.text+0x205): undefined reference to
`avcodec_find_encoder(CodecID)'
audio_ffmpeg.cpp:(.text+0x215): undefined reference to
`avcodec_find_encoder(CodecID)'
./.libs/libmp4live.a(audio_ffmpeg.o): In function
`CFfmpegAudioEncoder::StopEncoder()':
audio_ffmpeg.cpp:(.text+0x32c): undefined reference to
`avcodec_close(AVCodecContext*)'
./.libs/libmp4live.a(audio_ffmpeg.o): In function
`CFfmpegAudioEncoder::EncodeSamples(short*, unsigned int, unsigned char)':
audio_ffmpeg.cpp:(.text+0x4df): undefined reference to
`avcodec_encode_audio(AVCodecContext*, unsigned char*, int, short const*)'
./.libs/libmp4live.a(audio_ffmpeg.o): In function
`CFfmpegAudioEncoder::Init()':
audio_ffmpeg.cpp:(.text+0xc5b): undefined reference to `avcodec_init()'
audio_ffmpeg.cpp:(.text+0xc60): undefined reference to `avcodec_register_all()'
audio_ffmpeg.cpp:(.text+0xc7d): undefined reference to
`avcodec_find_encoder(CodecID)'
audio_ffmpeg.cpp:(.text+0xca0): undefined reference to
`avcodec_alloc_context()'
audio_ffmpeg.cpp:(.text+0xcac): undefined reference to `avcodec_alloc_frame()'
audio_ffmpeg.cpp:(.text+0xd0d): undefined reference to
`avcodec_find_encoder(CodecID)'
audio_ffmpeg.cpp:(.text+0xed1): undefined reference to
`avcodec_open(AVCodecContext*, AVCodec*)'
audio_ffmpeg.cpp:(.text+0xfb1): undefined reference to
`avcodec_find_encoder(CodecID)'
audio_ffmpeg.cpp:(.text+0xfd6): undefined reference to
`avcodec_find_encoder(CodecID)'
audio_ffmpeg.cpp:(.text+0x10bf): undefined reference to
`avcodec_find_encoder(CodecID)'
./.libs/libmp4live.a(video_ffmpeg.o): In function
`CFfmpegVideoEncoder::EncodeImage(unsigned char const*, unsigned char const*,
unsigned char const*, unsigned int, unsigned int, bool, long, unsigned long)':
video_ffmpeg.cpp:(.text+0x5c2): undefined reference to
`avcodec_encode_video(AVCodecContext*, unsigned char*, int, AVFrame const*)'
./.libs/libmp4live.a(video_ffmpeg.o): In function
`CFfmpegVideoEncoder::StopEncoder()':
video_ffmpeg.cpp:(.text+0x671): undefined reference to
`avcodec_close(AVCodecContext*)'
....
collect2: ld returned 1 exit status


Reproducible: Always




ZilPC mpeg4ip # emerge --info
Portage 2.1.3_rc9 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6-r0,
2.6.22-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r1 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor
5600+
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 08 Aug 2007 04:50:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61-r1
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.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -msse3"
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/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/
/etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo
/etc/texmf/web2c"
CXXFLAGS="-march=athlon64 -O2 -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages metadata-transfer sandbox sfperms strict
unmerge-orphans userfetch"
GENTOO_MIRRORS="http://www.ibiblio.org/gentoo
http://ftp.snt.utwente.nl/pub/os/linux/gentoo
http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo
ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo
ftp://ftp.fu-berlin.de/unix/X11/ftp.x.org ftp://ftp.sunet.se/pub/X11
http://gentoo.osuosl.org/distfiles/
ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LINGUAS="en"
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"
SYNC="rsync://rsync.belnet.be/gentoo-portage"
USE="3dnow 3dnowext 64bit 7zip X a52 aac acpi akode alsa amarok amd amd64 amr
amrnb amrr amrwb apache2 api arts asf audiofile bash-completion berkdb
bitmap-fonts boost branding browserplugin cairo cdr cli cracklib crypt cscope
css cups dbus devhelp dia dict dmi doc dri dv dvd dvdnav dvdr dvdread emboss
encode enscript esd ethereal evo examples fam fastcgi ffmpeg firefox flac flash
fortran ftp gdbm gif gimp gimpprint glade glib gnomedb gnutls gphoto2 gpm
graphviz gs gstreamer hal iconv ieee1394 imagemagick imap imlib isdnlog java
javascript jikes joystick jpeg jpeg2k kcal kde kdeenablefinal kerberos keyring
ladspa lame latex ldap libg++ libnotify libsexy libvisual libwww logitech-mouse
logrotate logwatch lyrics mad mcal md5 md5sum midi mikmod mmx mmxext mng mono
mp3 mp4 mpeg mpeg2 mplayer mplayer-bin msn mudflap mysql ncurses net network
networking new-login nforce nls no-htdocs no-seamonkey no-suexec nptl nptlonly
nsplugin nvidia ogg on-the-fly-crypt openexr opengl openmp opera optimizations
oss pam pcre pdf perl php plotutils png postscript pppd preview-latex python qt
qt-static qt3 qt3support qt4 quicktime rar rdesktop readline reflection
restrict-javascript ruby samba scanner sdl seamonkey session sftp slang spell
spl sql sqlite sqlite3 sse sse2 ssl ssse3 subversion svg svgz svn-mirror tcpd
tetex themes theora threads thunderbird tidy tiff tracker truetype
truetype-fonts type1-fonts unicode usb v4l verse videos vim vim-pager
vim-with-x visual vnc vorbis win32ddl wxwindows x264 xinerama xml xorg xpm
xscreensaver xv xvid xvmc xvnc yv12 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" LIRC_DEVICES="serial usb devinput mouseremote
mouseremote_ps2 pctv" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS,
PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

------- Comment #1 From Zillode 2007-08-08 22:46:57 0000 -------
Created an attachment (id=127325) [details]
buildlog

------- Comment #2 From Andreas Arens 2007-10-02 18:22:38 0000 -------
I ran into the same when media-libs/x264-svn-20070924 forced a revdep-rebuild
of media-video/mpeg4ip-1.5.0.1-r2.

This however is not a problem of mpeg4ip, but of
media-video/ffmpeg-0.4.9_p20070616-r1.

The reason for the problem is that the include <ffmpeg/avcodec.h> is not C++ -
save. Wrapping the include in 'extern "C" { ... }' makes mpeg4ip compile (and
work) again.

------- Comment #3 From Andreas Arens 2007-10-03 08:18:19 0000 -------
Besides, this seems to be a DUPE of bug #186420

------- Comment #4 From Jeff Mitchell 2007-11-19 17:58:00 0000 -------
Running into the same issue.

------- Comment #5 From Andreas Arens 2007-11-24 08:31:50 0000 -------
Created an attachment (id=136864) [details]
patch to fix compilation

I'm sick of hand-patching this every time things like faad require an
revdep-rebuild, so here's a patch.

------- Comment #6 From Andreas Arens 2007-11-24 08:32:35 0000 -------
Created an attachment (id=136866) [details]
patched ebuild

And the ebuild for it.

------- Comment #7 From Andreas Arens 2007-11-24 08:33:25 0000 -------
Diego, this is one less in you 'emerge -e system' rebuild struggle...

------- Comment #8 From Alexandre Rostovtsev 2008-01-06 02:40:36 0000 -------
(In reply to comment #5)
Had same compilation error as everyone else. Patch fixes it for me.

------- Comment #9 From Patrizio Bassi 2008-01-12 10:29:25 0000 -------
quite old bug, can we apply to portage? today i still have this issue

------- Comment #10 From Olivier Crete 2008-01-12 20:44:25 0000 -------
*** Bug 186420 has been marked as a duplicate of this bug. ***

------- Comment #11 From Olivier Crete 2008-01-12 21:05:24 0000 -------
patch is in.. sorry for the delay

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug