Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 640794

Summary: media-video/vlc-2.2.8 - error: cannot find -lupnp and -lixml
Product: Gentoo Linux Reporter: Denis Descheneaux <d.descheneaux>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Denis Descheneaux 2017-12-12 07:07:18 UTC
Fails preserved-rebuild on net-libs/libupnp-1.8.3
when net-libs/libupnp-1.6.22 has been depcleaned

!!! existing preserved libs:
>>> package: net-libs/libupnp-1.6.22
 *  - /usr/lib64/libupnp.so.6
 *  - /usr/lib64/libupnp.so.6.3.6
 *      used by /usr/lib64/vlc/plugins/services_discovery/libupnp_plugin.so (media-video/vlc-2.2.8)
 *  - /usr/lib64/libthreadutil.so.6
 *  - /usr/lib64/libthreadutil.so.6.0.4
 *  - /usr/lib64/libixml.so.2
 *  - /usr/lib64/libixml.so.2.0.8
 *      used by /usr/lib64/vlc/plugins/services_discovery/libupnp_plugin.so (media-video/vlc-2.2.8)
Use emerge @preserved-rebuild to rebuild packages using these libraries

...
...
>>> Preparing source in /var/tmp/portage/media-video/vlc-2.2.8/work/vlc-2.2.8 ...
 * Applying vlc-2.1.0-fix-libtremor-libs.patch ...                                                                [ ok ]
 * Applying qt4-select.patch ...                                                                                  [ ok ]
 * Applying vlc-2.2.2-qt5widgets.patch ...                                                                        [ ok ]
 * Applying vlc-2.2.4-relax_ffmpeg.patch ...                                                                      [ ok ]
 * Applying vlc-2.2.4-ffmpeg3.patch ...                                                                           [ ok ]
 * Applying vlc-2.2.4-cxx0x.patch ...                                                                             [ ok ]
 * Applying vlc-2.2.6-decoder-lock-scope.patch ...                                                                [ ok ]
 * Applying vlc-2.2.4-alsa-large-buffers.patch ...                                                                [ ok ]
 * Applying vlc-2.2.4-libav-11.7.patch ...                                                                        [ ok ]
 * Applying vlc-2.2.8-libupnp-compat.patch ...                                                                    [ ok ]
 * Applying vlc-2.2.8-libupnp-slot-1.8.patch ...  
...
...


libtool: link: ( cd ".libs" && rm -f "libmtp_plugin.la" && ln -s "../libmtp_plugin.la" "libmtp_plugin.la" )
../doltlibtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc   -march=sandybridge -O2 -ftree-vectorize -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity -pipe -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -Werror-implicit-function-declaration -pipe -fvisibility=hidden -avoid-version -module -export-symbols-regex ^vlc_entry -shrext .so -no-undefined ../compat/libcompat.la ../src/libvlccore.la  -Wl,-O1 -Wl,--as-needed -fuse-ld=gold -L/usr/lib64/sidplay/builders/ -o libxcb_apps_plugin.la -rpath /usr/lib64/vlc/plugins/services_discovery services_discovery/libxcb_apps_plugin_la-xcb_apps.lo -lxcb 
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld.gold: error: cannot find -lupnp
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld.gold: error: cannot find -lixml
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:6731: libupnp_plugin.la] Error 1



emerge -aK =net-libs/libupnp-1.6.22

These are the packages that would be merged, in order:
Calculating dependencies     ... done!                                
[binary  NS    ] net-libs/libupnp-1.6.22-3:0::gentoo [1.8.3:1.8::gentoo] USE="ipv6 -debug -doc -static-libs" 0 KiB

Total: 1 package (1 in new slot, 1 binary), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] yes


emerging vlc again without issues

>>> media-video/vlc-2.2.8 merged.
>>> Regenerating /etc/ld.so.cache...

 * Messages for package media-video/vlc-2.2.8:

 * Updating icons cache ...
 * Updating shared mime info database ...
 * Updating .desktop files database ...

 * Messages for package media-video/vlc-2.2.8:

 * Package:    media-video/vlc-2.2.8
 * Repository: gentoo
 * Maintainer: media-video@gentoo.org
 * USE:        X a52 abi_x86_64 alsa amd64 avcodec avformat bluray cdda cddb cpu_flags_x86_mmx cpu_flags_x86_sse dbus dc1394 dts dvbpsi dvd elibc_glibc encode faad fdk ffmpeg flac fontconfig gcrypt gme gnome gstreamer httpd ieee1394 jack jpeg kernel_linux libass libcaca libnotify libsamplerate lirc lua matroska modplug mp3 mpeg mtp musepack ncurses ogg opencv opengl opus png postproc pulseaudio qt5 rtsp samba schroedinger sdl speex svg swscale taglib theora truetype twolame udev upnp userland_GNU v4l vaapi vdpau vnc vorbis vpx wma-fixed x264 x265 xcb xml xv zeroconf zvbi
 * FEATURES:   preserve-libs sandbox selinux sesandbox userpriv usersandbox
 * Applying vlc-2.1.0-fix-libtremor-libs.patch ...
 * Applying qt4-select.patch ...
 * Applying vlc-2.2.2-qt5widgets.patch ...
 * Applying vlc-2.2.4-relax_ffmpeg.patch ...
 * Applying vlc-2.2.4-ffmpeg3.patch ...
 * Applying vlc-2.2.4-cxx0x.patch ...
 * Applying vlc-2.2.6-decoder-lock-scope.patch ...
 * Applying vlc-2.2.4-alsa-large-buffers.patch ...
 * Applying vlc-2.2.4-libav-11.7.patch ...
 * Applying vlc-2.2.8-libupnp-compat.patch ...
 * Applying vlc-2.2.8-libupnp-slot-1.8.patch ...
 * Running eautoreconf in '/var/tmp/portage/media-video/vlc-2.2.8/work/vlc-2.2.8' ...
 * Running autopoint --force ...
 * Running libtoolize --install --copy --force --automake ...
 * Running aclocal -I m4 ...
 * Running autoconf --force ...
 * Running autoheader ...
 * Running automake --add-missing --copy --force-missing ...
 * Final size of build directory: 252092 KiB (246.1 MiB)
 * Final size of installed tree:   17088 KiB ( 16.6 MiB)
 * Running /usr/lib64/vlc/vlc-cache-gen on /usr/lib64/vlc/plugins/
 * Updating icons cache ...
 * Updating shared mime info database ...
 * Updating .desktop files database ...
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.



Reproducible: Always
Comment 1 Andreas Sturmlechner gentoo-dev 2017-12-12 11:25:53 UTC
Please use the search function before filing a bug.

*** This bug has been marked as a duplicate of bug 640422 ***