Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 531714 - media-video/ffmpeg-2.5 USE=samba - libavformat/libavformat.so: undefined reference to `smbc_init_context'
Summary: media-video/ffmpeg-2.5 USE=samba - libavformat/libavformat.so: undefined refe...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-04 20:37 UTC by Thomas Kear
Modified: 2014-12-12 09:22 UTC (History)
0 users

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


Attachments
ffmpeg-2.5:20141204-201305.log.gz (ffmpeg-2.5:20141204-201305.log.gz,76.97 KB, application/gzip)
2014-12-04 20:37 UTC, Thomas Kear
Details
ffmpeg-9999-abi_x86_64.amd64/config.log (config.log,479.54 KB, text/plain)
2014-12-05 17:39 UTC, jospezial
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Kear 2014-12-04 20:37:41 UTC
Created attachment 390958 [details]
ffmpeg-2.5:20141204-201305.log.gz

[ebuild     U #] media-video/ffmpeg-2.5:0/54.56.56 [2.4.4:0/54.56.56] USE="3dnow 3dnowext X aac aacplus alsa amr avx avx2 bzip2 encode faac fma3 gnutls gsm hardcoded-tables iconv ladspa libcaca libv4l mmx mmxext mp3 network opengl openssl opus pic pulseaudio rtmp samba schroedinger sdl speex sse sse2 sse3 sse4 sse4_2 ssh ssse3 theora threads truetype v4l vaapi vdpau vorbis vpx wavpack webp x264 x265 xvid zlib (-altivec) -amrenc (-armv5te) (-armv6) (-armv6t2) (-armvfp) -bindist -bluray -bs2b -cdio -celt -cpudetection -debug -doc -examples -fdk -flite -fma4 -fontconfig -frei0r -fribidi -gme -iec61883 -ieee1394 -jack -jpeg2k -libass -libsoxr -lzma (-mips32r2) (-mipsdspr1) (-mipsdspr2) (-mipsfpu) -modplug (-neon) -openal -oss -quvi -static-libs {-test} -twolame -xcb% -xop -zvbi" ABI_X86="32 (64) (-x32)" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart trasher" 0 KiB

/var/tmp/portage/media-video/ffmpeg-2.5/work/ffmpeg-2.5/Makefile:122: recipe for target 'ffserver_g' failed
make: *** [ffserver_g] Error 1
libavformat/libavformat.so: undefined reference to `smbc_init_context'
libavformat/libavformat.so: undefined reference to `smbc_free_context'
libavformat/libavformat.so: undefined reference to `smbc_set_context'
libavformat/libavformat.so: undefined reference to `smbc_read'
libavformat/libavformat.so: undefined reference to `smbc_close'
libavformat/libavformat.so: undefined reference to `smbc_new_context'
libavformat/libavformat.so: undefined reference to `smbc_write'
libavformat/libavformat.so: undefined reference to `smbc_lseek'
libavformat/libavformat.so: undefined reference to `smbc_setFunctionAuthDataWithContext'
libavformat/libavformat.so: undefined reference to `smbc_setTimeout'
libavformat/libavformat.so: undefined reference to `smbc_open'
libavformat/libavformat.so: undefined reference to `smbc_fstat'
libavformat/libavformat.so: undefined reference to `smbc_setWorkgroup'
libavformat/libavformat.so: undefined reference to `smbc_init'
libavformat/libavformat.so: undefined reference to `smbc_setOptionUserData'

I assumed this might be due to lack of net-misc/smbc, but installing it did not resolve the issue.  Setting -samba did, however.  The ebuild references a 'libsmbclient' which doesn't appear to exist.

Portage 2.2.14 (python 3.4.2-final-0, default/linux/amd64/13.0, gcc-4.8.3, glibc-2.20, 3.2.0-4-amd64 x86_64)
=================================================================
System uname: Linux-3.2.0-4-amd64-x86_64-Intel-R-_Xeon-R-_CPU_E5620_@_2.40GHz-with-gentoo-2.2
KiB Mem:     8166996 total,   3663464 free
KiB Swap:     392188 total,    254264 free
Timestamp of tree: Thu, 04 Dec 2014 10:15:01 +0000
ld GNU ld (GNU Binutils) 2.24
ccache version 3.2 [disabled]
app-shells/bash:          4.3_p30-r1
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1-r3
dev-lang/python:          2.7.8, 3.3.5-r1, 3.4.2
dev-util/ccache:          3.2
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.6
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6-r1, 1.12.6, 1.13.4, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.6.3, 4.7.4, 4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.3-r2
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.17-r1 (virtual/os-headers)
sys-libs/glibc:           2.20

Full build log attached.
Comment 1 jospezial 2014-12-04 21:54:03 UTC
I can confirm this bug in media-video/ffmpeg-9999

x86_64-pc-linux-gnu-gcc -Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat -Llibavresample -Llibavutil -Llibpostproc -Llibswscale -Llibswresample -Wl,-O1 -Wl,--as-needed  -Wl,--as-needed -Wl,-z,noexecstack -Wl,--warn-common -Wl,-rpath-link=libpostproc:libswresample:libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil:libavresample   -o ffprobe_g cmdutils.o ffprobe.o   -lavdevice -lavfilter -lavformat -lavcodec -lavresample -lpostproc -lswresample -lswscale -lavutil -lXv -lX11 -lXext -ldl -lva -lxcb -lxcb-shm -lxcb -lxcb-xfixes -lxcb-render -lxcb-shape -lxcb -lxcb-shape -lxcb -lX11 -lcdio_paranoia -lcdio_cdda -lcdio -ljack -lasound -lSDL -lpthread -lnettle -lhogweed -lgmp -lssl -lcrypto -lGL -lopenal -lzvbi -lxvidcore -lx265 -lx264 -lwavpack -lvpx -lvpx -lvpx -lvpx -lvorbisenc -lvorbis -logg -lvo-aacenc -lv4l2 -ltwolame -ltwolame -ltheoraenc -ltheoradec -logg -lspeex -lssh -lschroedinger-1.0 -lrtmp -lz -lgmp -lgnutls -lhogweed -lnettle -lpulse -lopenjpeg -DOPJ_STATIC -lmp3lame -lmodplug -lgsm -lgme -lstdc++ -lfreetype -lfontconfig -lfreetype -lfaac -lcaca -lbluray -lass -laacplus -lgnutls -lm -llzma -lbz2 -lz -pthread  
libavformat/libavformat.so: undefined reference to `smbc_init_context'
libavformat/libavformat.so: undefined reference to `smbc_free_context'
libavformat/libavformat.so: undefined reference to `smbc_set_context'
libavformat/libavformat.so: undefined reference to `smbc_read'
libavformat/libavformat.so: undefined reference to `smbc_close'
libavformat/libavformat.so: undefined reference to `smbc_new_context'
libavformat/libavformat.so: undefined reference to `smbc_write'
libavformat/libavformat.so: undefined reference to `smbc_lseek'
libavformat/libavformat.so: undefined reference to `smbc_setFunctionAuthDataWithContext'
libavformat/libavformat.so: undefined reference to `smbc_setTimeout'
libavformat/libavformat.so: undefined reference to `smbc_open'
libavformat/libavformat.so: undefined reference to `smbc_fstat'
libavformat/libavformat.so: undefined reference to `smbc_setWorkgroup'
libavformat/libavformat.so: undefined reference to `smbc_init'
libavformat/libavformat.so: undefined reference to `smbc_setOptionUserData'
collect2: error: ld returned 1 exit status
/var/tmp/portage/media-video/ffmpeg-9999/work/ffmpeg-9999/Makefile:122: recipe for target 'ffplay_g' failed
make: *** [ffplay_g] Error 1
make: *** Waiting for unfinished jobs....
libavformat/libavformat.so: undefined reference to `smbc_init_context'
libavformat/libavformat.so: undefined reference to `smbc_free_context'
libavformat/libavformat.so: undefined reference to `smbc_set_context'
libavformat/libavformat.so: undefined reference to `smbc_read'
libavformat/libavformat.so: undefined reference to `smbc_close'
libavformat/libavformat.so: undefined reference to `smbc_new_context'
libavformat/libavformat.so: undefined reference to `smbc_write'
libavformat/libavformat.so: undefined reference to `smbc_lseek'
libavformat/libavformat.so: undefined reference to `smbc_setFunctionAuthDataWithContext'
libavformat/libavformat.so: undefined reference to `smbc_setTimeout'
libavformat/libavformat.so: undefined reference to `smbc_open'
libavformat/libavformat.so: undefined reference to `smbc_fstat'
libavformat/libavformat.so: undefined reference to `smbc_setWorkgroup'
libavformat/libavformat.so: undefined reference to `smbc_init'
libavformat/libavformat.so: undefined reference to `smbc_setOptionUserData'
collect2: error: ld returned 1 exit status
/var/tmp/portage/media-video/ffmpeg-9999/work/ffmpeg-9999/Makefile:122: recipe for target 'ffmpeg_g' failed
make: *** [ffmpeg_g] Error 1
libavformat/libavformat.so: undefined reference to `smbc_init_context'
libavformat/libavformat.so: undefined reference to `smbc_free_context'
libavformat/libavformat.so: undefined reference to `smbc_set_context'
libavformat/libavformat.so: undefined reference to `smbc_read'
libavformat/libavformat.so: undefined reference to `smbc_close'
libavformat/libavformat.so: undefined reference to `smbc_new_context'
libavformat/libavformat.so: undefined reference to `smbc_write'
libavformat/libavformat.so: undefined reference to `smbc_lseek'
libavformat/libavformat.so: undefined reference to `smbc_setFunctionAuthDataWithContext'
libavformat/libavformat.so: undefined reference to `smbc_setTimeout'
libavformat/libavformat.so: undefined reference to `smbc_open'
libavformat/libavformat.so: undefined reference to `smbc_fstat'
libavformat/libavformat.so: undefined reference to `smbc_setWorkgroup'
libavformat/libavformat.so: undefined reference to `smbc_init'
libavformat/libavformat.so: undefined reference to `smbc_setOptionUserData'
collect2: error: ld returned 1 exit status
/var/tmp/portage/media-video/ffmpeg-9999/work/ffmpeg-9999/Makefile:122: recipe for target 'ffprobe_g' failed
make: *** [ffprobe_g] Error 1
 * ERROR: media-video/ffmpeg-9999::gentoo failed (compile phase):
 *   emake failed


2 days ago the build went fine.
And no problems with USE="-samba"
Comment 2 Ognian Tenchev 2014-12-05 07:31:41 UTC
I can confirm this bug
Comment 3 jospezial 2014-12-05 17:39:43 UTC
Created attachment 391028 [details]
ffmpeg-9999-abi_x86_64.amd64/config.log

I can't find an smb related error in it.
Comment 4 jospezial 2014-12-05 17:41:19 UTC
There was an smb related change 2 days ago:

http://git.videolan.org/?p=ffmpeg.git;a=commit;h=cfcaf6b38e39ed6e788abb1a5a44f23660dce2f6
Use use_pkg_config for libx264 and libsmbclient: more readable
and three external call less per library.

there is the diff:
http://git.videolan.org/?p=ffmpeg.git;a=blobdiff;f=configure;h=12f93f3a4e541247a6b41880e8e89fb416c94357;hp=d4a86c0abbeec8ddaae98f916e5dde06ffe205ef;hb=cfcaf6b38e39ed6e788abb1a5a44f23660dce2f6;hpb=59f1f764d6cd07ff7d1bb113d423b3e62b3510c1

Could this be related to the bug?
Comment 5 Robert Cabrera 2014-12-06 19:42:34 UTC
I too got hit with this bug on my ~amd64 laptop when I updated this morning. My output is the same as the first two posters. My emerge --info

Portage 2.2.15 (python 3.4.2-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.8.3, glibc-2.20, 3.17.0-pf1 x86_64)
=================================================================
System uname: Linux-3.17.0-pf1-x86_64-Intel-R-_Core-TM-2_CPU_T7200_@_2.00GHz-with-gentoo-2.2
KiB Mem:     3335796 total,   1270988 free
KiB Swap:    4200960 total,   4200960 free
Timestamp of tree: Sat, 06 Dec 2014 18:15:01 +0000
sh bash 4.3_p30-r1
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p30-r1
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1-r3
dev-lang/python:          2.7.8, 3.4.2
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.6
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6-r1, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.3-r2
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.17-r1 (virtual/os-headers)
sys-libs/glibc:           2.20
Repositories: gentoo sunrise my_local_overlay
Installed sets: @android, @nicefonts, @toolchain, @xorgupdate
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -mtune=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native -mtune=native"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=2 --with-bdeps=y --keep-going --complete-graph --load-average=1.5"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"                                                                              
FFLAGS="-O2 -pipe -march=native -mtune=native"                                                                                                                                                             
GENTOO_MIRRORS="http://gentoo.netnitco.net http://gentoo.osuosl.org/ http://gentoo.mirrors.tds.net/gentoo http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.wetzlmayr.com/ http://osmirrors.cerias.purdue.edu/pub/gentoo/ http://www.cyberuse.com/gentoo/ http://gentoo.mirrors.hoobly.com/ ftp://gentoo.imj.fr/pub/gentoo/ http://130.59.10.35/ftp/mirror/gentoo/"                                   
LANG="en_US.utf8"                                                                                                                                                                                          
LDFLAGS="-Wl,-O1 -Wl,--as-needed"                                                                                                                                                                          
MAKEOPTS="-j2 -l1.5 -s"                                                                                                                                                                                    
PKGDIR="/usr/portage/packages"                                                                                                                                                                             
PORTAGE_CONFIGROOT="/"                                                                                                                                                                                     
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"                                                                                                                                                                                      
PORTAGE_TMPDIR="/var/tmp"                                                                                                                                                                                  
PORTDIR="/usr/portage"                                                                                                                                                                                     
PORTDIR_OVERLAY="/var/lib/layman/sunrise /usr/local/portage"                                                                                                                                               
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"                                                                                                                                                          
USE="S3TC X a52 aac aacplus aacs aalib acl acpi alsa amd64 amr avahi berkdb bidi bluetooth bluray branding btrfs bzip2 cairo cdda cddb cdio cdparanoia cdr cli consolekit cracklib crypt cups curl cvs cxx dbus declarative device-mapper dirac djvu dri dts dv dvd dvdr emboss encode exif extraengine faac fam fat ffmpeg firefox flac fontconfig fortran gdbm gif git glamor gphoto2 gtk iconv idn ieee1394 imagemagick ipv6 java jbig joystick jpeg jpeg2k kde kipi lame lastfm lcms ldap libass libnotify libsamplerate live lto lua lzma lzo mad matroska mime mjpeg mms mmx mmxext mng modplug modules mp3 mp4 mpeg multilib musepack musicbrainz ncurses netlink nls nptl nsplugin ntfs ntp ogg openal openexr opengl openmp pam pango pcre pdf phonon plasma png policykit postproc ppds qalculate qt3support qt4 quicktime rar readline samba scanner schroedinger sdl semantic-desktop session smp sndfile sox speex spell sse sse2 sse3 ssl ssse3 startup-notification subversion svg symlink taglib tcpd telepathy theora tiff truetype twolame udev udisks unicode upower usb vcd vcdx vlm vnc vorbis vpx wavpack wifi wmf wxwidgets x264 xa xcb xcomposite xinerama xml xscreensaver xv xvid xvmc zeroconf zlib" ABI_X86="64 32" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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="kexi words flow plan sheets stage tables krita karbon braindump author" 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 ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev keyboard mouse synaptics joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python3_4 python2_7" RUBY_TARGETS="ruby19 ruby20" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="nvidia nv" 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"
USE_PYTHON="3.4 2.7"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 jospezial 2014-12-09 18:25:51 UTC
Today media-video/ffmpeg-9999 built with USE=samba .

media-video/ffmpeg-9999 was built with the following:
USE="3dnow 3dnowext X aac aacplus alsa bluray bzip2 cdio encode faac fontconfig gme gnutls gsm hardcoded-tables iconv jack jpeg2k ladspa libass libcaca libv4l lzma mmx mmxext modplug mp3 network openal opengl openssl pulseaudio rtmp samba schroedinger sdl speex sse sse2 sse3 sse4 sse4_2 ssh theora threads truetype twolame v4l vaapi vdpau vorbis vpx wavpack x264 x265 xcb xvid zlib zvbi (-altivec) -amr -amrenc (-armv5te) (-armv6) (-armv6t2) (-armvfp) -avx -avx2 -bindist -bs2b -celt -cpudetection -debug -doc -examples -fdk -flite -fma3 -fma4 -frei0r -fribidi -iec61883 -ieee1394 -libsoxr (-mips32r2) (-mipsdspr1) (-mipsdspr2) (-mipsfpu) (-neon) -opus -oss -pic -quvi -ssse3 -static-libs -test -webp -xop" ABI_X86="64 -32 -x32" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart trasher"

As I said in #c4 the bug was triggered by this commit:
http://git.videolan.org/?p=ffmpeg.git;a=commit;h=cfcaf6b38e39ed6e788abb1a5a44f23660dce2f6

The fixing commit is there:
http://git.videolan.org/?p=ffmpeg.git;a=commit;h=754f4957d7a7e5be0df0e9de1d31aebeecdc4476

The patch you can try for ffmpeg-2.5 too is there:
http://git.videolan.org/?p=ffmpeg.git;a=patch;h=754f4957d7a7e5be0df0e9de1d31aebeecdc4476;hp=885e74622e3f3be31aebee35540339c7652e723f

diff --git a/configure b/configure
index 40d5428..0933210 100755
--- a/configure
+++ b/configure
@@ -4887,7 +4887,7 @@ enabled libquvi           && require_pkg_config libquvi quvi/quvi.h quvi_init
 enabled librtmp           && require_pkg_config librtmp librtmp/rtmp.h RTMP_Socket
 enabled libschroedinger   && require_pkg_config schroedinger-1.0 schroedinger/schro.h schro_init
 enabled libshine          && require_pkg_config shine shine/layer3.h shine_encode_buffer
-enabled libsmbclient      && { check_pkg_config smbclient libsmbclient.h smbc_init ||
+enabled libsmbclient      && { use_pkg_config smbclient libsmbclient.h smbc_init ||
                                require smbclient libsmbclient.h smbc_init -lsmbclient; }
 enabled libsoxr           && require libsoxr soxr.h soxr_create -lsoxr
 enabled libssh            && require_pkg_config libssh libssh/sftp.h sftp_init
-- 
1.7.10.4
Comment 7 Alexis Ballier gentoo-dev 2014-12-12 09:22:11 UTC
+  12 Dec 2014; Alexis Ballier <aballier@gentoo.org> ffmpeg-2.5.ebuild,                                                                                                                                                                                                        
+  +files/samba.patch:                                                                                                                                                                                                                                                         
+  backport upstream patch to build with USE=samba, patch pointed out by                                                                                                                                                                                                       
+  jospezial in bug #531714                                                                                                                                                                                                                                                    
+                                            


thx