Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Multimedia
  • Search

youtube-dl /ffmpeg ERROR

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
spidark
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 147
Joined: Thu Sep 01, 2011 2:29 pm

youtube-dl /ffmpeg ERROR

  • Quote

Post by spidark » Fri Nov 29, 2019 4:18 pm

Good day to all.
I having issue with ffmpeg. :? at least , i think i do.
When i download an video from youtube or any other site using youtube-dl, i get the following ERROR.

Code: Select all

>>> dlv https://www.youtube.com/watch?v=GY0NAAVp5mE
[youtube] GY0NAAVp5mE: Downloading webpage
[youtube] GY0NAAVp5mE: Downloading video info webpage
[youtube] GY0NAAVp5mE: Downloading MPD manifest
[download] Destination: Make Your Own ebuilds - Gentoo Linux-GY0NAAVp5mE.mp4
[download] 100% of 37.25MiB in 00:06
[ffmpeg] Adding metadata to 'Make Your Own ebuilds - Gentoo Linux-GY0NAAVp5mE.mp4'
At 100% it always show this error.

Code: Select all

ERROR: ffmpeg: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
I ran

Code: Select all

revdep-rebuild -vq --library  'libstdc++.so.6'  -- --exclude gcc && sync && shutdown -h now
Wich ran for about 8 hours , re-compiling a whole lot of packages ( about 8 Hours or more )

So i thought the issue was be solved.
But its not.

I still get the same error
Funny thing though, Video downloads normaly, and i can play the file without issues with mpv video player.

/etc/portage/package.use/FFMPEG

Code: Select all

media-video/ffmpeg amr bluray bs2b cdio chromaprint fdk flite fontconfig frei0r fribidi gme gmp gsm iec61883 ieee1394 jack jpeg2k kvazaar ladspa libaom libass libcaca libdrm libilbc librtmp libsoxr libv4l libxml2 lv2 modplug openal opencl openh264 openssl opus oss pic -pulseaudio rubberband -samba snappy speex srt ssh -static-libs -test theora twolame v4l vdpau vpx wavpack webp zeromq zimg zvbi
emerge --info

Code: Select all

 >>> emerge --info
Portage 2.3.79 (python 3.6.9-final-0, default/linux/amd64/17.1/desktop, gcc-9.2.0, glibc-2.29-r2, 4.19.86-gentoo x86_64)
=================================================================
System uname: Linux-4.19.86-gentoo-x86_64-Intel-R-_Core-TM-_i7-3632QM_CPU_@_2.20GHz-with-gentoo-2.6
KiB Mem:     8056296 total,   5236156 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 28 Nov 2019 17:30:01 +0000
Head commit of repository gentoo: 2bb83a3237876597e597b7afcabd15e817ed717e
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.32 p2) 2.32.0
ccache version 3.7.4 [enabled]
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.28.2-r1::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.9::gentoo
dev-util/ccache:          3.7.4::gentoo
dev-util/cmake:           3.14.6::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.41.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            9.2.0-r2::gentoo
sys-devel/gcc-config:     2.1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
spidarkrepo
    location: /var/db/repos/localrepo
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="https://mirror.leaseweb.com/gentoo/ rsync://mirror.leaseweb.com/gentoo/ http://mirror.leaseweb.com/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8 -l3"
PKGDIR="/var/cache/binpkgs"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 apparmor audit bash-completion berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dnscrypt dri dts dvd dvdr emboss encode exif fam ffmpeg flac fortran gdbm gif glamor gpm gtk gtk3 i965 iconv icu infinality ipv6 jpeg lcms ldap libnotify libtirpc lm-sensors logrotate mad mng mp3 mp4 mpeg mtp multilib ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf pm-utils png policykit ppds rar readline sdl seccomp spell split-usr ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vaapi vorbis wxwidgets x11 x264 x265 xa xattr xcb xcomposite xml xna xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel usb-audio" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx f16c mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics wacom libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="intel i915 i965 radeon radeonsi r600 amdgpu" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Any ideas ?
Last edited by spidark on Fri Nov 29, 2019 11:55 pm, edited 1 time in total.
Laptop HP Pavilion G6 2310-SD Intel(R) Core(TM) i7-3632QM CPU @ 2.20GHz
Top
loki_val
Retired Dev
Retired Dev
Posts: 418
Joined: Mon Nov 13, 2006 11:03 am
Location: Denmark

  • Quote

Post by loki_val » Fri Nov 29, 2019 10:22 pm

What does

Code: Select all

ldd -r $(which ffmpeg)
output?
Top
spidark
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 147
Joined: Thu Sep 01, 2011 2:29 pm

  • Quote

Post by spidark » Fri Nov 29, 2019 10:28 pm

loki_val wrote:What does

Code: Select all

ldd -r $(which ffmpeg)
output?
Hi Loki_Val.

# ldd -r $(which ffmpeg)

Code: Select all

	linux-vdso.so.1 (0x00007ffecd1c6000)
	libavdevice.so.58 => /usr/lib64/libavdevice.so.58 (0x00007fb3b2778000)
	libavfilter.so.7 => /usr/lib64/libavfilter.so.7 (0x00007fb3b2492000)
	libavformat.so.58 => /usr/lib64/libavformat.so.58 (0x00007fb3b2263000)
	libavcodec.so.58 => /usr/lib64/libavcodec.so.58 (0x00007fb3b0f50000)
	libavresample.so.4 => /usr/lib64/libavresample.so.4 (0x00007fb3b0f2f000)
	libpostproc.so.55 => /usr/lib64/libpostproc.so.55 (0x00007fb3b0f1e000)
	libswresample.so.3 => /usr/lib64/libswresample.so.3 (0x00007fb3b0efd000)
	libswscale.so.5 => /usr/lib64/libswscale.so.5 (0x00007fb3b0e73000)
	libavutil.so.56 => /usr/lib64/libavutil.so.56 (0x00007fb3b0e02000)
	libm.so.6 => /lib64/libm.so.6 (0x00007fb3b0cbe000)
	libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fb3b0c9c000)
	libc.so.6 => /lib64/libc.so.6 (0x00007fb3b0ace000)
	libraw1394.so.11 => /usr/lib64/libraw1394.so.11 (0x00007fb3b0aba000)
	libavc1394.so.0 => /usr/lib64/libavc1394.so.0 (0x00007fb3b0ab3000)
	librom1394.so.0 => /usr/lib64/librom1394.so.0 (0x00007fb3b0aad000)
	libiec61883.so.0 => /usr/lib64/libiec61883.so.0 (0x00007fb3b0a9f000)
	libjack.so.0 => /usr/lib64/libjack.so.0 (0x00007fb3b0a7b000)
	libdrm.so.2 => /usr/lib64/libdrm.so.2 (0x00007fb3b0a67000)
	libopenal.so.1 => /usr/lib64/libopenal.so.1 (0x00007fb3b0989000)
	libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00007fb3b095e000)
libxcb-shm.so.0 => /usr/lib64/libxcb-shm.so.0 (0x00007fb3b0959000)
	libxcb-shape.so.0 => /usr/lib64/libxcb-shape.so.0 (0x00007fb3b0954000)
	libxcb-xfixes.so.0 => /usr/lib64/libxcb-xfixes.so.0 (0x00007fb3b094a000)
	libcdio_paranoia.so.2 => /usr/lib64/libcdio_paranoia.so.2 (0x00007fb3b0941000)
	libcdio_cdda.so.2 => /usr/lib64/libcdio_cdda.so.2 (0x00007fb3b0935000)
	libdc1394.so.22 => /usr/lib64/libdc1394.so.22 (0x00007fb3b08bb000)
	libasound.so.2 => /usr/lib64/libasound.so.2 (0x00007fb3b07d7000)
	libcaca.so.0 => /usr/lib64/libcaca.so.0 (0x00007fb3b070a000)
	libGL.so.1 => /usr/lib64/libGL.so.1 (0x00007fb3b0692000)
	libSDL2-2.0.so.0 => /usr/lib64/libSDL2-2.0.so.0 (0x00007fb3b056a000)
	libv4l2.so.0 => /usr/lib64/libv4l2.so.0 (0x00007fb3b0558000)
	libXv.so.1 => /usr/lib64/libXv.so.1 (0x00007fb3b0551000)
	libX11.so.6 => /usr/lib64/libX11.so.6 (0x00007fb3b0411000)
	libXext.so.6 => /usr/lib64/libXext.so.6 (0x00007fb3b03fc000)
	libbs2b.so.0 => /usr/lib64/libbs2b.so.0 (0x00007fb3b03f5000)
	liblilv-0.so.0 => /usr/lib64/liblilv-0.so.0 (0x00007fb3b03db000)
	libdl.so.2 => /lib64/libdl.so.2 (0x00007fb3b03d3000)
	librubberband.so.2 => /usr/lib64/librubberband.so.2 (0x00007fb3b0398000)
	libflite_cmu_us_awb.so.1 => /usr/lib64/libflite_cmu_us_awb.so.1 (0x00007fb3affab000)
	libflite_cmu_us_kal.so.1 => /usr/lib64/libflite_cmu_us_kal.so.1 (0x00007fb3afdbc000)
	libflite_cmu_us_kal16.so.1 => /usr/lib64/libflite_cmu_us_kal16.so.1 (0x00007fb3afa28000)
	libflite_cmu_us_rms.so.1 => /usr/lib64/libflite_cmu_us_rms.so.1 (0x00007fb3af598000)
	libflite_cmu_us_slt.so.1 => /usr/lib64/libflite_cmu_us_slt.so.1 (0x00007fb3af1a8000)
	libflite_usenglish.so.1 => /usr/lib64/libflite_usenglish.so.1 (0x00007fb3af17e000)
	libflite_cmulex.so.1 => /usr/lib64/libflite_cmulex.so.1 (0x00007fb3af0e7000)
	libflite.so.1 => /usr/lib64/libflite.so.1 (0x00007fb3af0b5000)
	libfribidi.so.0 => /usr/lib64/libfribidi.so.0 (0x00007fb3af097000)
	libva.so.2 => /usr/lib64/libva.so.2 (0x00007fb3af070000)
	libass.so.9 => /usr/lib64/libass.so.9 (0x00007fb3af03b000)
	libzmq.so.5 => /usr/lib64/libzmq.so.5 (0x00007fb3aefa9000)
	libzimg.so.2 => /usr/lib64/libzimg.so.2 (0x00007fb3aeef5000)
	libcl.so => /usr/lib64/OpenCL/vendors/beignet/libcl.so (0x00007fb3aee79000)
	libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 (0x00007fb3aee34000)
	libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00007fb3aed68000)
	libxml2.so.2 => /usr/lib64/libxml2.so.2 (0x00007fb3aec00000)
	libbz2.so.1 => /lib64/libbz2.so.1 (0x00007fb3aebed000)
	libgme.so.0 => /usr/lib64/libgme.so.0 (0x00007fb3aeba6000)
	libmodplug.so.1 => /usr/lib64/libmodplug.so.1 (0x00007fb3aea1b000)
	libchromaprint.so.1 => /usr/lib64/libchromaprint.so.1 (0x00007fb3aea07000)
	libbluray.so.2 => /usr/lib64/libbluray.so.2 (0x00007fb3ae9bd000)
	libz.so.1 => /lib64/libz.so.1 (0x00007fb3ae9a1000)
	libssl.so.1.1 => /usr/lib64/libssl.so.1.1 (0x00007fb3ae910000)
	libcrypto.so.1.1 => /usr/lib64/libcrypto.so.1.1 (0x00007fb3ae656000)
	librtmp.so.1 => /usr/lib64/librtmp.so.1 (0x00007fb3ae637000)
	libsrt.so.1 => /usr/lib64/libsrt.so.1 (0x00007fb3ae5b5000)
	libssh.so.4 => /usr/lib64/libssh.so.4 (0x00007fb3ae53c000)
	libvpx.so.5 => /usr/lib64/libvpx.so.5 (0x00007fb3ae335000)
	libwebpmux.so.3 => /usr/lib64/libwebpmux.so.3 (0x00007fb3ae329000)
	libwebp.so.7 => /usr/lib64/libwebp.so.7 (0x00007fb3ae2bc000)
	libopencore-amrwb.so.0 => /usr/lib64/libopencore-amrwb.so.0 (0x00007fb3ae2a6000)
librsvg-2.so.2 => /usr/lib64/librsvg-2.so.2 (0x00007fb3ae26d000)
	libgobject-2.0.so.0 => /usr/lib64/libgobject-2.0.so.0 (0x00007fb3ae212000)
	libglib-2.0.so.0 => /usr/lib64/libglib-2.0.so.0 (0x00007fb3ae0f0000)
	libcairo.so.2 => /usr/lib64/libcairo.so.2 (0x00007fb3adfbc000)
	libzvbi.so.0 => /usr/lib64/libzvbi.so.0 (0x00007fb3adf3c000)
	libsnappy.so.1 => /usr/lib64/libsnappy.so.1 (0x00007fb3adf31000)
	libaom.so.0 => /usr/lib64/libaom.so.0 (0x00007fb3ada99000)
	libfdk-aac.so.2 => /usr/lib64/libfdk-aac.so.2 (0x00007fb3ad956000)
	libgsm.so.1 => /usr/lib64/libgsm.so.1 (0x00007fb3ad945000)
	libilbc.so.2 => /usr/lib64/libilbc.so.2 (0x00007fb3ad92d000)
	libmp3lame.so.0 => /usr/lib64/libmp3lame.so.0 (0x00007fb3ad8b5000)
	libopencore-amrnb.so.0 => /usr/lib64/libopencore-amrnb.so.0 (0x00007fb3ad88a000)
	libopenjp2.so.7 => /usr/lib64/libopenjp2.so.7 (0x00007fb3ad838000)
	libopus.so.0 => /usr/lib64/libopus.so.0 (0x00007fb3ad7dd000)
	libspeex.so.1 => /usr/lib64/libspeex.so.1 (0x00007fb3ad7c0000)
	libtheoraenc.so.1 => /usr/lib64/libtheoraenc.so.1 (0x00007fb3ad791000)
	libtheoradec.so.1 => /usr/lib64/libtheoradec.so.1 (0x00007fb3ad77f000)
	libtwolame.so.0 => /usr/lib64/libtwolame.so.0 (0x00007fb3ad75a000)
	libvorbis.so.0 => /usr/lib64/libvorbis.so.0 (0x00007fb3ad72c000)
	libvorbisenc.so.2 => /usr/lib64/libvorbisenc.so.2 (0x00007fb3ad681000)
	libwavpack.so.1 => /usr/lib64/libwavpack.so.1 (0x00007fb3ad653000)
	libx264.so.157 => /usr/lib64/libx264.so.157 (0x00007fb3ad3a4000)
	libx265.so.160 => /usr/lib64/libx265.so.160 (0x00007fb3ac4c7000)
	libxvidcore.so.4 => /usr/lib64/libxvidcore.so.4 (0x00007fb3ac3b7000)
	libopenh264.so.4 => /usr/lib64/libopenh264.so.4 (0x00007fb3ac2b8000)
	libkvazaar.so.4 => /usr/lib64/libkvazaar.so.4 (0x00007fb3ac236000)
	libsoxr.so.0 => /usr/lib64/libsoxr.so.0 (0x00007fb3ac1ca000)
	libva-drm.so.2 => /usr/lib64/libva-drm.so.2 (0x00007fb3ac1c5000)
	libva-x11.so.2 => /usr/lib64/libva-x11.so.2 (0x00007fb3ac1bd000)
	libvdpau.so.1 => /usr/lib64/libvdpau.so.1 (0x00007fb3ac1b7000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fb3b2811000)
	libdb-5.3.so => /usr/lib64/libdb-5.3.so (0x00007fb3abffc000)
	librt.so.1 => /lib64/librt.so.1 (0x00007fb3abff0000)
	libXau.so.6 => /usr/lib64/libXau.so.6 (0x00007fb3abfeb000)
	libXdmcp.so.6 => /usr/lib64/libXdmcp.so.6 (0x00007fb3abfe3000)
	libcdio.so.18 => /usr/lib64/libcdio.so.18 (0x00007fb3abfb9000)
	libusb-1.0.so.0 => /lib64/libusb-1.0.so.0 (0x00007fb3abf9f000)
libncursesw.so.6 => /lib64/libncursesw.so.6 (0x00007fb3abf62000)
	libGLU.so.1 => /usr/lib64/libGLU.so.1 (0x00007fb3abef3000)
	libglut.so.3 => /usr/lib64/libglut.so.3 (0x00007fb3abe36000)
	libglapi.so.0 => /usr/lib64/libglapi.so.0 (0x00007fb3abe02000)
	libxcb-glx.so.0 => /usr/lib64/libxcb-glx.so.0 (0x00007fb3abde3000)
	libX11-xcb.so.1 => /usr/lib64/libX11-xcb.so.1 (0x00007fb3abdde000)
	libxcb-dri2.so.0 => /usr/lib64/libxcb-dri2.so.0 (0x00007fb3abdd5000)
	libXfixes.so.3 => /usr/lib64/libXfixes.so.3 (0x00007fb3abdcd000)
	libXdamage.so.1 => /usr/lib64/libXdamage.so.1 (0x00007fb3abdc8000)
	libXxf86vm.so.1 => /usr/lib64/libXxf86vm.so.1 (0x00007fb3abdc1000)
	libxcb-dri3.so.0 => /usr/lib64/libxcb-dri3.so.0 (0x00007fb3abdbb000)
	libxcb-present.so.0 => /usr/lib64/libxcb-present.so.0 (0x00007fb3abdb6000)
	libxcb-sync.so.1 => /usr/lib64/libxcb-sync.so.1 (0x00007fb3abdaa000)
	libxshmfence.so.1 => /usr/lib64/libxshmfence.so.1 (0x00007fb3abda5000)
	libexpat.so.1 => /usr/lib64/libexpat.so.1 (0x00007fb3abd78000)
	libXcursor.so.1 => /usr/lib64/libXcursor.so.1 (0x00007fb3abd6b000)
	libXi.so.6 => /usr/lib64/libXi.so.6 (0x00007fb3abd59000)
	libXrandr.so.2 => /usr/lib64/libXrandr.so.2 (0x00007fb3abd4c000)
	libv4lconvert.so.0 => /usr/lib64/libv4lconvert.so.0 (0x00007fb3abcd0000)
	libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/libstdc++.so.6 (0x00007fb3aba5b000)
	libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/libgcc_s.so.1 (0x00007fb3aba41000)
	libserd-0.so.0 => /usr/lib64/libserd-0.so.0 (0x00007fb3aba2a000)
	libsord-0.so.0 => /usr/lib64/libsord-0.so.0 (0x00007fb3aba1e000)
	libsratom-0.so.0 => /usr/lib64/libsratom-0.so.0 (0x00007fb3aba13000)
	libsamplerate.so.0 => /usr/lib64/libsamplerate.so.0 (0x00007fb3ab8a4000)
	libfftw3.so.3 => /usr/lib64/libfftw3.so.3 (0x00007fb3ab6de000)
	libharfbuzz.so.0 => /usr/lib64/libharfbuzz.so.0 (0x00007fb3ab5dd000)
	libsodium.so.23 => /usr/lib64/libsodium.so.23 (0x00007fb3ab585000)
	libdrm_intel.so.1 => /usr/lib64/libdrm_intel.so.1 (0x00007fb3ab561000)
	libEGL.so.1 => /usr/lib64/libEGL.so.1 (0x00007fb3ab529000)
	libuuid.so.1 => /lib64/libuuid.so.1 (0x00007fb3ab520000)
	libpng16.so.16 => /usr/lib64/libpng16.so.16 (0x00007fb3ab4e7000)
	libicuuc.so.64 => /usr/lib64/libicuuc.so.64 (0x00007fb3ab314000)
	libgdk_pixbuf-2.0.so.0 => /usr/lib64/libgdk_pixbuf-2.0.so.0 (0x00007fb3ab2ea000)
	libgio-2.0.so.0 => /usr/lib64/libgio-2.0.so.0 (0x00007fb3ab12d000)
	libpangocairo-1.0.so.0 => /usr/lib64/libpangocairo-1.0.so.0 (0x00007fb3ab11e000)
	libpangoft2-1.0.so.0 => /usr/lib64/libpangoft2-1.0.so.0 (0x00007fb3ab107000)
	libpango-1.0.so.0 => /usr/lib64/libpango-1.0.so.0 (0x00007fb3ab0bf000)
	libcroco-0.6.so.3 => /usr/lib64/libcroco-0.6.so.3 (0x00007fb3ab081000)
	libffi.so.7 => /usr/lib64/libffi.so.7 (0x00007fb3ab075000)
	libpcre.so.1 => /lib64/libpcre.so.1 (0x00007fb3ab000000)
	libpixman-1.so.0 => /usr/lib64/libpixman-1.so.0 (0x00007fb3aaf5e000)
	libxcb-render.so.0 => /usr/lib64/libxcb-render.so.0 (0x00007fb3aaf4d000)
	libXrender.so.1 => /usr/lib64/libXrender.so.1 (0x00007fb3aaf41000)
	libogg.so.0 => /usr/lib64/libogg.so.0 (0x00007fb3aaf38000)
	libgomp.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/libgomp.so.1 (0x00007fb3aaefe000)
	libbsd.so.0 => /usr/lib64/libbsd.so.0 (0x00007fb3aaee5000)
	libudev.so.1 => /lib64/libudev.so.1 (0x00007fb3aaebe000)
	libtinfow.so.6 => /lib64/libtinfow.so.6 (0x00007fb3aae83000)
	libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x00007fb3aadfd000)
	libgraphite2.so.3 => /usr/lib64/libgraphite2.so.3 (0x00007fb3aadd9000)
	libpciaccess.so.0 => /usr/lib64/libpciaccess.so.0 (0x00007fb3aadce000)
libgbm.so.1 => /usr/lib64/libgbm.so.1 (0x00007fb3aadbd000)
	libicudata.so.64 => /usr/lib64/libicudata.so.64 (0x00007fb3a9377000)
	libgmodule-2.0.so.0 => /usr/lib64/libgmodule-2.0.so.0 (0x00007fb3a936f000)
	libmount.so.1 => /lib64/libmount.so.1 (0x00007fb3a9310000)
	libresolv.so.2 => /lib64/libresolv.so.2 (0x00007fb3a92f7000)
	libblkid.so.1 => /lib64/libblkid.so.1 (0x00007fb3a92a3000)
Laptop HP Pavilion G6 2310-SD Intel(R) Core(TM) i7-3632QM CPU @ 2.20GHz
Top
spidark
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 147
Joined: Thu Sep 01, 2011 2:29 pm

  • Quote

Post by spidark » Sat Nov 30, 2019 12:07 am

I figured something out.
I forgot, i'm running youtube-dl through firejail.
dlv is an alias in my bashrc.

Code: Select all

alias dlv="/usr/bin/firejail --name=Youtube-DL  /usr/bin/youtube-dl -f best  --add-metadata -ic"
Without youtube-dl firejailed, i get no warning.

commenting out the line below in /etc/firejail/youtube-dl.profile

Code: Select all

private-etc alternatives,ssl,pki,ca-certificates,hostname,hosts,resolv.conf,youtube-dl.conf,crypto-policies,mime.types
No warning.
So its a firejail profile config issue.
But commenting that line out , does not look like a proper fix.
Laptop HP Pavilion G6 2310-SD Intel(R) Core(TM) i7-3632QM CPU @ 2.20GHz
Top
Hu
Administrator
Administrator
Posts: 24384
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Sat Nov 30, 2019 5:22 am

As shown in your ldd output, libstdc++ is under a gcc directory, rather than in the usual lib area. My guess is that you need to have firejail copy in the configuration files to tell the linker to search gcc's library directory. Start with /etc/ld.so.conf and /etc/ld.so.conf.d/. If you omit private-etc entirely, the jail sees the real etc with its configuration files, and works. If you have private-etc as shown, then the limited etc in the jail lacks the configuration files, so the loader doesn't search gcc's directory.
Top
spidark
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 147
Joined: Thu Sep 01, 2011 2:29 pm

  • Quote

Post by spidark » Sat Nov 30, 2019 11:21 am

Hu wrote:As shown in your ldd output, libstdc++ is under a gcc directory, rather than in the usual lib area. My guess is that you need to have firejail copy in the configuration files to tell the linker to search gcc's library directory. Start with /etc/ld.so.conf and /etc/ld.so.conf.d/. If you omit private-etc entirely, the jail sees the real etc with its configuration files, and works. If you have private-etc as shown, then the limited etc in the jail lacks the configuration files, so the loader doesn't search gcc's directory.
Hi Hu,
I have to study firejail a bit more, to find out how and where it copies the system files.
Can't find much documentation on this working command line option,I can only guess what's going on , so i hope it's doing what you suggested.

Code: Select all

--env=LD_LIBRARY_PATH


This firejail commandline option does the job, i'm not sure if the running process have access to live lib path or firejail is duplicating the config files to the sandbox.

the fix in this case ;

Code: Select all

/usr/bin/firejail --env=LD_LIBRARY_PATH=/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/ youtube-dl  <videofile> 
Thanks Hu en Loki,
Laptop HP Pavilion G6 2310-SD Intel(R) Core(TM) i7-3632QM CPU @ 2.20GHz
Top
Hu
Administrator
Administrator
Posts: 24384
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Sat Nov 30, 2019 6:10 pm

The running process likely has read-only access to the libstdc++ directory either way. The problem is that if it does not know to search there, it will not, and then it will not find the libraries that it needs. Yes, $LD_LIBRARY_PATH may work. For me, gcc libstdc++ is not found that way even on the host: $LD_LIBRARY_PATH is blank.
Top
spidark
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 147
Joined: Thu Sep 01, 2011 2:29 pm

  • Quote

Post by spidark » Sat Nov 30, 2019 11:10 pm

Hu wrote:The running process likely has read-only access to the libstdc++ directory either way. The problem is that if it does not know to search there, it will not, and then it will not find the libraries that it needs. Yes, $LD_LIBRARY_PATH may work. For me, gcc libstdc++ is not found that way even on the host: $LD_LIBRARY_PATH is blank.
Hi again Hu,
My LD_LIB_PATH is indeed blank,
I just seach the firejail manpage for a lib related command line option, and decided to try the below.

Code: Select all

--env=name=value
              Set environment variable in the new sandbox.

              Example:
              $ firejail --env=LD_LIBRARY_PATH=/opt/test/lib
This only work if i give the full path to where the lib lives.
So on my box this works

Code: Select all

--env=LD_LIBRARY_PATH=/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/
But this fails

Code: Select all

--env=LD_LIBRARY_PATH=/usr/lib/
I ran the process, and checked what firejail was copying over with firemon, no lib config path whatsoever to /run/firejail dir.
I have no idea why this works, because i have same the blank LD_LIBRARY_PATH
Further investigation pending.
thanks again.
Laptop HP Pavilion G6 2310-SD Intel(R) Core(TM) i7-3632QM CPU @ 2.20GHz
Top
Post Reply

8 posts • Page 1 of 1

Return to “Multimedia”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy