Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 567216 - media-sound/pavucontrol fails to build due to libsigc++ C++11 breakage
Summary: media-sound/pavucontrol fails to build due to libsigc++ C++11 breakage
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: Normal major with 2 votes (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 568134 568496 569022 (view as bug list)
Depends on:
Blocks: libsigc++-2.6
  Show dependency tree
 
Reported: 2015-12-01 06:37 UTC by Radoslaw Szkodzinski
Modified: 2015-12-23 10:56 UTC (History)
9 users (show)

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


Attachments
Patch to build pavucontrol with c++11 flags (pavucontrol-3.0-c11.patch,504 bytes, patch)
2015-12-03 04:46 UTC, Philip Creighton
Details | Diff
Updated ebuild file for pavucontrol-3.0 (pavucontrol-3.0.ebuild,907 bytes, text/plain)
2015-12-03 04:47 UTC, Philip Creighton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Radoslaw Szkodzinski 2015-12-01 06:37:29 UTC
Another package that is broken by libsigc++ requiring -std=c++11.
Attempted build with GCC 4.9.3.

Snippet:
OPERATOR_PARENTHESES template operator()
                                                         ^
/usr/include/sigc++-2.0/sigc++/adaptors/bind.h:264:29: note: in expansion of macro ‘SIGC_WORKAROUND_OPERATOR_PARENTHESES’
     { return this->functor_.SIGC_WORKAROUND_OPERATOR_PARENTHESES<type_trait_pass_t<typename unwrap_reference<T_bound>::type>, type_trait_p
                             ^
/usr/include/sigc++-2.0/sigc++/adaptors/adaptor_tra^C

Exiting on signal 2

                 from /usr/include/sigc++-2.0/sigc++/sigc++.h:89,
                 from /usr/include/glibmm-2.4/glibmm/thread.h:51,
                 from /usr/include/glibmm-2.4/glibmm.h:87,
                 from /usr/include/gtkmm-3.0/gtkmm.h:87,
                 from pavucontrol.h:29,
                 from streamwidget.h:24,
                 from streamwidget.cc:25:
/usr/include/sigc++-2.0/sigc++/adaptors/bind.h:290:151: error: expected primary-expression before ‘>’ token
 tor_.SIGC_WORKAROUND_OPERATOR_PARENTHESES<type_trait_pass_t<typename unwrap_reference<T_bound>::type>, type_trait_pass_t<T_arg1>, type_tra
                                                                                
and more spam.
Comment 1 Philip Creighton 2015-12-03 03:50:52 UTC
Can confirm the same errors on ~amd64 with the same gcc version. 
I was able to get pavucontrol-3.0 to compile on the same setup by adding "-std=c++11" to the CXXFLAGS. I've only done it from the command line at this point. I have no experience with patches or ebuilds at this point, but I'll see if I can come up with something, time permitting.
Comment 2 Philip Creighton 2015-12-03 04:46:46 UTC
Created attachment 418436 [details, diff]
Patch to build pavucontrol with c++11 flags

Create files directory under pavucontrol and place patch there. Also will need updated ebuild.
Comment 3 Philip Creighton 2015-12-03 04:47:59 UTC
Created attachment 418438 [details]
Updated ebuild file for pavucontrol-3.0
Comment 4 Philip Creighton 2015-12-03 04:53:20 UTC
Was able to get pavucontrol to build successfully using above patch and ebuild.
Comment 5 James Le Cuirot gentoo-dev 2015-12-13 11:52:33 UTC
*** Bug 568134 has been marked as a duplicate of this bug. ***
Comment 6 Gary E. Miller 2015-12-16 01:55:22 UTC
(In reply to Philip Creighton from comment #1)
> Can confirm the same errors on ~amd64 with the same gcc version. 

I am on ~amd64 with gcc 5.3.0

> I was able to get pavucontrol-3.0 to compile on the same setup by adding
> "-std=c++11" to the CXXFLAGS.

Ditto here, this works for me.

# export CXXFLAGS="-std=c++11"
# emerge -1a /usr/bin/pavucontrol
Comment 7 Pacho Ramos gentoo-dev 2015-12-19 10:58:49 UTC
[master f6d2997] media-sound/pavucontrol: Fix building with latest glibmm/libsigc++ (#567216)
 1 file changed, 2 insertions(+)
Comment 8 SpanKY gentoo-dev 2015-12-19 21:19:03 UTC
*** Bug 568496 has been marked as a duplicate of this bug. ***
Comment 9 Gary E. Miller 2015-12-20 01:12:59 UTC
(In reply to Pacho Ramos from comment #7)
> [master f6d2997] media-sound/pavucontrol: Fix building with latest
> glibmm/libsigc++ (#567216)
>  1 file changed, 2 insertions(+)

Any idea what ebuild this will show up in, and when?
Comment 10 Pacho Ramos gentoo-dev 2015-12-23 10:55:48 UTC
*** Bug 569022 has been marked as a duplicate of this bug. ***