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

Bug 664760

Summary: media-libs/lastfmlib-0.4.0 : lastfmlib/.../stringoperations.h:62:22: error: could not convert ss.std::_cxx11::basic_stringstream<wchar_t>
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Sound Team <sound>
Status: RESOLVED FIXED    
Severity: normal CC: sebastian, treecleaner
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
media-libs:lastfmlib-0.4.0:20180828-041914.log
temp.tbz2
Build fix

Description Toralf Förster gentoo-dev 2018-08-28 15:56:19 UTC
In file included from lastfmlib/lastfmclient.cpp:28:
lastfmlib/utils/stringoperations.h: In function ‘std::__cxx11::string StringOperations::toWstring(T&)’:
lastfmlib/utils/stringoperations.h:62:22: error: could not convert ‘ss.std::__cxx11::basic_stringstream<wchar_t>::str()’ from ‘basic_string<wchar_t>’ to ‘basic_string<char>’
         return ss.str();
                ~~~~~~^~
make[1]: *** [Makefile:513: liblastfmlib_la-lastfmclient.lo] Error 1

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-hardened_abi32+64_20180825-153933

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-8.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.6
  [3]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems) *



emerge -qpv media-libs/lastfmlib
[ebuild  N    ] media-libs/lastfmlib-0.4.0  USE="-debug -syslog"
Comment 1 Toralf Förster gentoo-dev 2018-08-28 15:56:22 UTC
Created attachment 545272 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-08-28 15:56:25 UTC
Created attachment 545274 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2018-08-28 15:56:28 UTC
Created attachment 545276 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2018-08-28 15:56:31 UTC
Created attachment 545278 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2018-08-28 15:56:34 UTC
Created attachment 545280 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-08-28 15:56:37 UTC
Created attachment 545282 [details]
media-libs:lastfmlib-0.4.0:20180828-041914.log
Comment 7 Toralf Förster gentoo-dev 2018-08-28 15:56:40 UTC
Created attachment 545284 [details]
temp.tbz2
Comment 8 Steven Newbury 2020-02-27 12:02:25 UTC
Created attachment 616186 [details, diff]
Build fix

The failing template definition is never actually used the code as well as being broken, not to mention an implementation now part of the C++ standard string ops.

Just removing it fixes the build.
Comment 9 Agostino Sarubbo gentoo-dev 2020-10-26 11:19:38 UTC
Dear treecleaner@:

I'm still able to reproduce this issue right now.

Since it has not been fixed for a long time, I'd suggest to evaluate if it is the case to remove this package from the tree. Thanks
Comment 10 Ian Whyman (thev00d00) (RETIRED) gentoo-dev 2020-12-28 11:40:41 UTC
Thanks to Steven for the patch.

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d38fec50a3f30afbf08a433f6778d9a6b69fbcc