Bug#805932: libsigc++-2.0-dev: Return-statement with a value, in function returning 'void'

2016-05-22 Thread Jason Crain
On Tue, Nov 24, 2015 at 07:22:46PM +1100, Riley Baird wrote:
> I currently maintain granule. In the process of C++11 migration, I have come
> across the following error message:
> 
> /usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:256:21: error: return-
> statement with a value, in function returning 'void' [-fpermissive]
> { return functor_(); }
> 
> I had thought that it was a problem with my package, but then I noticed that 
> it
> was also present in another, unrelated package (#805681), so I think that it
> might be a problem with libsigc++-2.0-dev.

I downloaded granule, applied the patch in https://bugs.debian.org/805203,
and compiled it.  I get an error at this line:

src/EditControls.cpp:
...
194  m_actgroup->add (Gtk::Action::create ((*iter).get_name (),
195
(*iter).get_stock_id (),
196
(*iter).get_name (),
197
(*iter).get_tooltip ()),
198   Gtk::AccelKey ((*iter).get_accel_key ()),
199   bind(mem_fun (*this,
200   
::on_edit_button_clicked),
201(*iter).get_name 
()));
...

gcc seems to be getting confused about whether you want std::bind or
sigc::bind and it picks the wrong one.  Maybe there is a stray using
statement somewhere.  Changing it to sigc::bind fixes that error.



Bug#805932: libsigc++-2.0-dev: Return-statement with a value, in function returning 'void'

2015-11-24 Thread Riley Baird
Package: libsigc++-2.0-dev
Version: 2.6.2-1
Severity: serious
Justification: Causes more than one other package to FTBFS

Hi,

I currently maintain granule. In the process of C++11 migration, I have come
across the following error message:

/usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:256:21: error: return-
statement with a value, in function returning 'void' [-fpermissive]
{ return functor_(); }

I had thought that it was a problem with my package, but then I noticed that it
was also present in another, unrelated package (#805681), so I think that it
might be a problem with libsigc++-2.0-dev.

Thanks,

Riley

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libsigc++-2.0-dev depends on:
ii  libsigc++-2.0-0v5  2.6.2-1
ii  pkg-config 0.29-2

libsigc++-2.0-dev recommends no packages.

Versions of packages libsigc++-2.0-dev suggests:
pn  libsigc++-2.0-doc  

-- no debconf information