Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 377053 - kde-base/kopete-4.7.0 does not find libavcodec when linking
Summary: kde-base/kopete-4.7.0 does not find libavcodec when linking
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-30 13:17 UTC by Claudio Roberto França Pereira
Modified: 2011-08-21 06:33 UTC (History)
0 users

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 Claudio Roberto França Pereira 2011-07-30 13:17:14 UTC
Kopete merge fails while linking binaries, complaining about missing libavcodec.so and undefined constants. I've merge libav with emerge --oneshot, but the problem is still present.

Reproducible: Always
Comment 1 Claudio Roberto França Pereira 2011-07-30 13:24:15 UTC
Since I can't add files as attachments to the bug for a misterious reason (bug in the bugzilla?), I'll add them here, as comments. I'll try to make it short.


build.log
[...]
/var/tmp/portage/kde-base/kopete-4.7.0/work/kopete-4.7.0/kopete/protocols/jabber/googletalk/libjingle/talk/base/sigslot.h:307:2: warning: ‘cl
ass sigslot::_connection_base0<sigslot::single_threaded>’ has virtual functions and accessible non-virtual destructor
/var/tmp/portage/kde-base/kopete-4.7.0/work/kopete-4.7.0/kopete/protocols/jabber/googletalk/libjingle/talk/examples/call/console.cc: In membe
r function ‘void Console::StartConsole()’:
/var/tmp/portage/kde-base/kopete-4.7.0/work/kopete-4.7.0/kopete/protocols/jabber/googletalk/libjingle/talk/examples/call/console.cc:36:50: wa
rning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result
ESC[31mESC[1mLinking CXX executable googletalk-call
ESC[0m/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libavcodec.so.52, needed by /usr/lib/gcc/x86_64
-pc-linux-gnu/4.5.2/../../../../lib64/libmediastreamer.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libavutil.so.50, needed by /usr/lib/gcc/x86_64-pc-lin
ux-gnu/4.5.2/../../../../lib64/libmediastreamer.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libswscale.so.0, needed by /usr/lib/gcc/x86_64-pc-lin
ux-gnu/4.5.2/../../../../lib64/libmediastreamer.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../lib64/libmediastreamer.so: undefined reference to `avcodec_register_all@LIBAVCODEC_52'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../lib64/libmediastreamer.so: undefined reference to `avcodec_close@LIBAVCODEC_52'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../lib64/libmediastreamer.so: undefined reference to `av_init_packet@LIBAVCODEC_52'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../lib64/libmediastreamer.so: undefined reference to `avcodec_find_decoder@LIBAVCODEC_52'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../lib64/libmediastreamer.so: undefined reference to `avcodec_init@LIBAVCODEC_52'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../lib64/libmediastreamer.so: undefined reference to `avcodec_encode_video@LIBAVCODEC_52'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../lib64/libmediastreamer.so: undefined reference to `sws_scale@LIBSWSCALE_0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../lib64/libmediastreamer.so: undefined reference to `avcodec_find_encoder@LIBAVCODEC_52'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../lib64/libmediastreamer.so: undefined reference to `avcodec_decode_video2@LIBAVCODEC_52'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../lib64/libmediastreamer.so: undefined reference to `sws_getContext@LIBSWSCALE_0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../lib64/libmediastreamer.so: undefined reference to `av_free@LIBAVUTIL_50'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../lib64/libmediastreamer.so: undefined reference to `avcodec_alloc_context@LIBAVCODEC_52'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../lib64/libmediastreamer.so: undefined reference to `sws_freeContext@LIBSWSCALE_0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../lib64/libmediastreamer.so: undefined reference to `avcodec_get_context_defaults@LIBAVCODEC_52'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../lib64/libmediastreamer.so: undefined reference to `avcodec_open@LIBAVCODEC_52'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../lib64/libmediastreamer.so: undefined reference to `avcodec_get_frame_defaults@LIBAVCODEC_52'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../lib64/libmediastreamer.so: undefined reference to `avpicture_fill@LIBAVCODEC_52'
collect2: ld returned 1 exit status
make[2]: *** [kopete/protocols/jabber/googletalk/libjingle/talk/examples/call/googletalk-call] Error 1
make[1]: *** [kopete/protocols/jabber/googletalk/libjingle/talk/examples/call/CMakeFiles/call.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 11%] Built target kopete-handbook
ESC[0m[ 11%] [ 11%] ESC[32mBuilding CXX object kopete/protocols/oscar/liboscar/CMakeFiles/oscar.dir/oscar_automoc.o
ESC[0m[ 11%] ESC[32mBuilding CXX object kopete/protocols/oscar/liboscar/CMakeFiles/oscar.dir/oscarutils.o
ESC[0mESC[32mBuilding CXX object kopete/protocols/oscar/liboscar/CMakeFiles/oscar.dir/client.o
[...]
build goes on and then make errors without anything suspicious after that above.

emerge --info
Portage 2.1.10.9 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.2, glibc-2.13-r4, 2.6.39-gentoo-r2 x86_64)
=================================================================
System uname: Linux-2.6.39-gentoo-r2-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.0.3
Timestamp of tree: Sat, 30 Jul 2011 10:30:01 +0000
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.11.1-r1
sys-devel/binutils:       2.21.1
sys-devel/gcc:            4.5.2
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 desktop-effects spidey
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US pt pt_BR"
MAKEOPTS="-j3"
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/desktop-effects /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 avahi bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cleartype cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fontconfig fortran gdbm gdu gif git gnutls gstreamer iconv icu ipv6 java jpeg kde kipi lcms libnotify mad mmx mng modules mp3 mp4 mpeg mpi mudflap multilib mysql ncurses nls nptl nptlonly nsplugin ogg openal opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pppd pulseaudio qt3support qt4 readline reiser4 sdl semantic-desktop session spell sse sse2 ssl ssse3 startup-notification subversion svg symlink sysfs tcpd threads tiff truetype udev unicode usb v4l v4l2 vaapi vorbis x264 xattr xcb xcomposite xinerama xml xorg xscreensaver 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US pt pt_BR" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" 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
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2011-08-20 21:27:41 UTC
What's your output of 

equery belongs libavcodec.so

and 

ls -la /usr/lib64/libavcodec.so*

??
Comment 3 Claudio Roberto França Pereira 2011-08-21 06:33:21 UTC
spidey@SpideyHomePC ~ $ equery b libavcodec.so
 * Searching for libavcodec.so ... 
app-emulation/emul-linux-x86-medialibs-20110722 (/usr/lib32/libavcodec.so -> libavcodec.so.52.120.0)
media-video/libav-0.8_pre20110818 (/usr/lib64/libavcodec.so -> libavcodec.so.53.8.0)
spidey@SpideyHomePC ~ $ ls -la /usr/lib64/libavcodec.so*
lrwxrwxrwx 1 root root      20 Ago 18 15:12 /usr/lib64/libavcodec.so -> libavcodec.so.53.8.0
lrwxrwxrwx 1 root root      20 Ago 18 15:12 /usr/lib64/libavcodec.so.53 -> libavcodec.so.53.8.0
-rwxr-xr-x 1 root root 7639800 Ago 18 15:12 /usr/lib64/libavcodec.so.53.8.0

Don't know exactly why, but kopete finally merged in the mean time. I'm changing the status to RESOLVED INVALID, since I don't know what went wrong. Probably my setup.