View previous topic :: View next topic |
Author |
Message |
jhaanti n00b
Joined: 16 Sep 2010 Posts: 14 Location: San Jose, CA
|
Posted: Fri Apr 06, 2018 1:26 am Post subject: Can't compile media-video/vlc v 2.2.8-r1 or 3.0.1-r1 |
|
|
Hi,
I recently updated to the amd64/17.0/desktop, and have done a few cycles of world update. This also involved updating GCC to v6.4.0. Through all this, I have never been able to compile/update VLC. I've tried both versions, but get the same error
Code: | ../doltlibtool --tag=CXX --mode=link x86_64-pc-linux-gnu-g++ -pthread -I/usr/include/upnp-1.8 -O2 -march=amdfam10 -pipe -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays -std=c++11 -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wvolatile-register-var -Wformat -Wformat-security -fvisibility=hidden -avoid-version -module -export-symbols-regex ^vlc_entry -shrext .so -no-undefined ../compat/libcompat.la ../src/libvlccore.la -rpath '/usr/lib64/vlc/plugins/services_discovery' -Wl,-O1 -Wl,--as-needed -L/usr/lib64/sidplay/builders/ -Wl,-z,defs -o libupnp_plugin.la services_discovery/libupnp_plugin_la-upnp.lo -pthread -lupnp -lixml
libtool: link: rm -fr .libs/libupnp_plugin.exp
libtool: link: /usr/bin/x86_64-pc-linux-gnu-nm -B services_discovery/.libs/libupnp_plugin_la-upnp.o | sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[
][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' | /bin/sed 's/.* //' | sort | uniq > .libs/libupnp_plugin.exp
libtool: link: /bin/grep -E -e "^vlc_entry" ".libs/libupnp_plugin.exp" > ".libs/libupnp_plugin.expT"
libtool: link: mv -f ".libs/libupnp_plugin.expT" ".libs/libupnp_plugin.exp"
libtool: link: x86_64-pc-linux-gnu-g++ -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../lib64/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/crtbeginS.o services_discovery/.libs/libupnp_plugin_la-upnp.o -Wl,-rpath -Wl,/var/tmp/portage/media-video/vlc-3.0.1-r1/work/vlc-3.0.1/src/.libs ../compat/.libs/libcompat.a -L/usr/lib64/sidplay/builders/ ../src/.libs/libvlccore.so -lidn -lpthread -ldl -ldbus-1 -Wl,--as-needed -lupnp -lixml -L/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0 -L/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../lib64/crtn.o -pthread -O2 -march=amdfam10 -Wl,-O1 -Wl,-z -Wl,defs -pthread -pthread -Wl,-soname -Wl,libupnp_plugin.so -Wl,-retain-symbols-file -Wl,.libs/libupnp_plugin.exp -o .libs/libupnp_plugin.so
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lupnp
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lixml
collect2: error: ld returned 1 exit status
|
My emerge --info:
Code: |
Portage 2.3.24 (python 2.7.14-final-0, default/linux/amd64/17.0/desktop, gcc-6.4.0, glibc-2.25-r10, 4.9.76-gentoo-r1 x86_64)
=================================================================
System uname: Linux-4.9.76-gentoo-r1-x86_64-AMD_Phenom-tm-_II_X4_945_Processor-with-gentoo-2.4.1
KiB Mem: 8132016 total, 697736 free
KiB Swap: 8008364 total, 5277240 free
Timestamp of repository gentoo: Mon, 26 Mar 2018 21:00:01 +0000
Head commit of repository gentoo: e8e4002d9c22262bca86486d2d86a01620b151ce
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.2.4 [disabled]
app-shells/bash: 4.4_p12::gentoo
dev-java/java-config: 2.2.0-r4::gentoo
dev-lang/perl: 5.24.3::gentoo
dev-lang/python: 2.7.14-r1::gentoo, 3.5.4-r1::gentoo, 3.6.3-r1::gentoo
dev-util/ccache: 3.2.4::gentoo
dev-util/cmake: 3.9.6::gentoo
dev-util/pkgconfig: 0.29.2::gentoo
sys-apps/baselayout: 2.4.1-r2::gentoo
sys-apps/openrc: 0.34.11::gentoo
sys-apps/sandbox: 2.13::gentoo
sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake: 1.11.6-r3::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils: 2.29.1-r1::gentoo
sys-devel/gcc: 6.4.0-r1::gentoo
sys-devel/gcc-config: 1.8-r1::gentoo
sys-devel/libtool: 2.4.6-r3::gentoo
sys-devel/make: 4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc: 2.25-r10::gentoo
Repositories:
gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-verify-metamanifest: no
sync-rsync-extra-opts:
palemoon
location: /var/lib/layman/palemoon
masters: gentoo
priority: 50
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=amdfam10 -pipe -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=amdfam10 -pipe -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.leaseweb.com/gentoo/ http://gentoo.netnitco.net ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ rsync://gentoo.gossamerhost.com/gentoo-distfiles/ http://mirror.qubenet.net/mirror/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="3dnow 3dnowext 64bit HOL X a52 aac aacplus aacs aalib accessibility acl acpi addressbook aften aio airplay aisleriot alaw alsa amd64 amr analogtv apache2 apcupsd applet archive artworkextra asf asn aspell asyncns atahpt audio avahi avcodec avformat avresample avx bash-completion bazaar bdf berkdb bidi binfilter bitbang_spi bitmap bittorrent bl blas blender blender-game blink blksha1 bluray bmp bogofilter bolddiag boost boundschecking bpm branding btrfs bugzilla bzip2 cairo caps cdda cddb cdio cdparanoia cdr cdrdao cg chatzilla cheese chroot cjk clamav cleartype cli client cmake consolekit contrib corefonts cpufreq crash-reporter crashreporter crypt cryptsetup crystalhd cscope css cuda cue cups curlwrappers cursors cvs cxx daap dbus dds dia dirac direct2d directfb directx djbfft djvu doc-pdf docbook double-precision dri drm dso dtmf dts dv dvb dvbplayer dvbpsi dvbsetup dvd dvdr dvi dvi2tty dvipdfm dxva2 ebook eigen emacs emboss emerald encode enscript epspdf epydoc equalizer erlang escreen espeak examples exif extras faac faad fading-colors fakevim fallback fam fat fbcon fdk festival fftw finger flac flickr fluidsynth fontconfig foomaticdb fortran ftp fulltest fuse g3dvl g711 g722 g7221 g729 gadu gallium games gcdmaster gcj gconf gcrypt gd gdbm gedit geoip geoloc geolocation geonames geotiff gif gimp git glamor glchess glut gmail gmp gnumeric gnuplot gnutls go google google-gadgets gpg gphoto2 gpl gpm gps grammar graphics graphviz gsl gsm gstreamer gtalk gtk gtkhtml gzip gzip-el h224 h281 h323 handbook hash hddtemp hls hostname hpcups hpijs html humanities hylafax icons iconv icu id3tag idn iec61883 ieee1394 ilbc imagemagick imap imapc imlib input_control introspection ios ios-vout iplayer ipod ipv6 jabber java javascript jbig jfs jingle jit joystick jpeg kate kontact kpathsea lame lapack largeterminal lash lastfm lastfmfingerprint lastfmradio lastgenre latex lcd lcms ldap leim less libburn libcaca libnotify libtiger libv4l2 libwww libxml2 libzfs linsys linux-smp-stats llvm lm_sensors lock logrotate loop-aes lyx lzma lzo m17n-lib m4lib-png mad madde madwifi mail maildir mailtrain map math mathml matroska mbox mbrola md5sum mdadm mem-scramble memlimit mercurial mhash midi mikmod milter mime minisat minizip mmap mms mmx mmxext mng modules monolithic-build mosh-hardening motif mount mouse mousewheel mozdom mozilla mozsha1 mp3 mp4 mpeg mplayer msn mtp mule multilib multitarget music musicbrainz mysql mysqli mytharchive mythbrowser mythgallery mythgame mythmusic mythnetvision mythnews mythtv mythweather na_dd na_dtv na_icons nas ncat ncurses ndiff netboot network network-cron new-login nforce2 nfs nfsdcld nfsidmap nfsv3 nfsv4 nfsv41 nis nlpsolver nls nntp nokia normalize normalizer nowlistening nping nptl nsplugin ntfs nut nuv nvcontrol nvidia nvram obex objc objc++ objc-gc ocaml ocamlopt ocr odf ofa offensive offlinehelp ogg ogg123 ogm okteta omega openct openexr opengl openmp openrc openstreetmap openvg openxml optimized-qmake oscar osdmenu ots outline-magic pam pam_ssh pango parse-clocks passfile patch pax_kernel pcf pch pcmcia pcre pda pdf pdfannotextractor pdfimport perl pgf php picasa pidgin pixbuf pixmaps pkcs11 planner plasma player plotutils plugins pm-utils pmu png pnm policykit pop posix postproc postscript ppds prediction preview-latex previewer prison private-headers projectm psf pstricks pth publishers pvr python qmail-spp qmake qq qt3support qt5 qthelp quad quicktime quotes r600-llvm-compiler radio radius ramfs raop rar raw rc5 rcs rdesktop readline reiser4 reiserfs rle rotor rpc rplay rpm rss rsxs rtc rtf rtmp rtsp s3 samba sasl savedconfig scanner schroedinger science scrobbler sdl sdl-image sdl-sound sdlgfx seamonkey search seccomp semantic semantic-desktop sendto sensord server sftp sha sha1 sharedmem shm shotwell silc sip sipim skey slideshow slp smartcard smbclient smime smp sms sndfile soap sockets socks socks5 sound soundex sourceview spamassassin sparse speech speex spell spice sql sqlite sqlite3 sse sse2 ssh ssl stars startup-notification stats stroke stun subtitles svg swat switcher synctex syntax-check syslog system-sqlite t1lib tcl tcpd templates tesseract test-programs test-suite test-ui tex tex4ht text texteffect themedesigner themes theora thesaurus thin-splines threads thumbnail thumbnails thunar tidy tiff timezone timidity tk tokenizer toolbar toolkit-scroll-bars tools totem tpm tproxy tracker transmitter truetype tslib tty-helpers tweak-mode twitgin twolame type3 udev udisks ulaw unicode unzip upcall upnp upower usb utils uuencode uuid vaapi vba vcd vcdx vdpau vdr vhosts video videos vim vim-pager vim-syntax vlm vmware-tools vnc vorbis vpopmail vpx wacom wallpapers wav weather webcam webdav webdav-neon webdav-serf webmail webp widgets wifi wimax wmf word-perfect wordperfect wps wxwidgets x264 xa xar xattr xcb xetex xext xface xfs xft xim xindy xine xinerama xinetd xml xmlrpc xmp xmpp xnest xorgmodule xosd xplanet xpm xps xrandr xscreensaver xv xvfb xvid xvmc xz yahoo yahoo-geo youtube zephyr zeroconf zip zlib zsh-completion ztv zvbi" ABI_X86="64 32" 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" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_core authn_dbd authn_dbm authn_file authz_core authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir cache_disk env expires ext_filter file_cache filter headers ident imagemap include info log_config logio lbmethod_bytraffic mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm so speling status unique_id socache_shmcb unixd userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LIRC_DEVICES="userspace" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="radeon radeonsi amdgpu vesa nouveau dummy" 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_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
|
I've tried reinstalling net-libs/libupnp (the owner of libixml and libupnp), to no avail.
Any ideas? I do like VLC, so it would be good to have it available on the ready.
Thanks in advance for any help! |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8936
|
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Fri Apr 06, 2018 4:03 pm Post subject: |
|
|
jhaanti,
1) Do you use/need PNP support in VLC? If not, try:
Code: | USE="-upnp" emerge vlc
|
If that works, you could add the line below to '/etc/portage/package.use':
Code: | media-video/vlc -upnp
|
2) By the way: your output of 'emerge --info' shows an unusual high number of global USE flags. Try to reduce the number of global USE flags! |
|
Back to top |
|
|
jhaanti n00b
Joined: 16 Sep 2010 Posts: 14 Location: San Jose, CA
|
Posted: Fri Apr 06, 2018 4:36 pm Post subject: |
|
|
Hi,
I synced it on March 26 last. |
|
Back to top |
|
|
jhaanti n00b
Joined: 16 Sep 2010 Posts: 14 Location: San Jose, CA
|
Posted: Fri Apr 06, 2018 4:37 pm Post subject: |
|
|
audiodef wrote: | What's the output of
?
Incidentally, VLC's latest official version is 3.0.1 - no release candidate. Would be nice to see a bump in Portage for this. I've emerged this in my overlay with no changes to the ebuild. |
Thanks for the help. This shows
These are the packages that would be merged, in order:
Code: | Calculating dependencies... done!
[ebuild N ~] media-video/vlc-3.0.1-r1:0/5-9::gentoo USE="X a52 alsa archive bidi bluray cddb dbus dts dvbpsi dvd encode faad fdk ffmpeg flac fluidsynth fontconfig gcrypt gstreamer ieee1394 jpeg kate libcaca libnotify libsamplerate libtiger linsys matroska mp3 mpeg mtp ncurses nfs ogg png postproc projectm qt5 rtsp samba schroedinger sdl-image sftp speex ssl svg theora truetype twolame udev upnp vaapi vcd vdpau vnc vorbis vpx x264 xml zeroconf zvbi (-altivec) (-aom) -chromaprint -chromecast -dc1394 -debug (-directx) -gme -gnome-keyring -jack -libass -libav -libtar -lirc -live -lua -macosx-notifications (-macosx-qtkit) -microdns -modplug -musepack (-neon) -omxil -opencv -optimisememory -opus -pulseaudio -rdp -run-as-root -shout -sid -skins -soxr -taglib {-test} -tremor -v4l -wayland -wma-fixed -x265" CPU_FLAGS_X86="mmx sse" 0 KiB
Total: 1 package (1 new), Size of downloads: 0 KiB
|
|
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8936
|
Posted: Fri Apr 06, 2018 4:48 pm Post subject: |
|
|
jhaanti wrote: | I synced it on March 26 last. |
My post was directed at the poster above, but with that you could use a sync as well (will not affect vlc). |
|
Back to top |
|
|
jhaanti n00b
Joined: 16 Sep 2010 Posts: 14 Location: San Jose, CA
|
Posted: Fri Apr 06, 2018 5:00 pm Post subject: |
|
|
mike155 wrote: | jhaanti,
1) Do you use/need PNP support in VLC? If not, try:
Code: | USE="-upnp" emerge vlc
|
If that works, you could add the line below to '/etc/portage/package.use':
Code: | media-video/vlc -upnp
|
2) By the way: your output of 'emerge --info' shows an unusual high number of global USE flags. Try to reduce the number of global USE flags! |
Thanks. Removing upnp support from VLC worked, so will use that as a workaround till I figure it out. I occasionally use the upnp functionality for VLC to play stuff from the home UPNP server, but can live without. As for the large # of USE flags, this is something on my gradual to do list, but the slimmed down diet will come slowly. |
|
Back to top |
|
|
benny1967 Apprentice
Joined: 25 Apr 2004 Posts: 224
|
Posted: Mon Jan 28, 2019 6:06 pm Post subject: |
|
|
I stumbled across this thread when I had the same problem today. The solution that worked for me was to manually create the following symlinks in /usr/lib64 (assuming that's where the files are on your box):
Code: | libixml.so -> libixml.so.10.0.1
libupnp.so -> libupnp.so.10.1.1 |
Probably I broke 42 rules by doing so, but VLC compiled without a problem after this. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|