Compile problems with inkscape-svn with libsigc++2.0

Bug #168978 reported by Martinschmidts
6
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
Bryce Harrington

Bug Description

inkscape-svn 15898:

The namespace SigC has changed to sigc in libsigc++2.0.
This leads to compile errors in seltrans.h.
To fix this, a

sed -i 's/SigC\:\:Connection/sigc\:\:connection/g' seltrans.h

is sufficient.

Revision history for this message
vonHalenbach (lustik) wrote :

This seems not includet in SVN16666.

Index: seltrans.h
===================================================================
--- seltrans.h (Revision 16666)
+++ seltrans.h (Arbeitskopie)
@@ -150,8 +150,8 @@
     NR::Point _origin; ///< position of origin for transforms
     NR::Point _point; ///< original position of the knot being used for the current transform
     Inkscape::MessageContext _message_context;
- SigC::Connection _sel_changed_connection;
- SigC::Connection _sel_modified_connection;
+ sigc::connection _sel_changed_connection;
+ sigc::connection _sel_modified_connection;
 };

 }

Changed in inkscape:
assignee: nobody → buliabyak
milestone: none → 0.46
status: New → Triaged
Revision history for this message
Bryce Harrington (bryce) wrote :

It is building fine for me with libsigc++-2.0-dev => 2.0.17-2ubuntu2

Can anyone else confirm this error?

Revision history for this message
Jeff Pilch (jeffpilch) wrote :

I ran into the same problem this morning, and I fixed it in (more-or-less) the same way vonHalenbach did - I used vi instead of sed, but same result.

[jpilch@amd gc6.7]$ uname -a
Linux amd 2.6.23-ARCH #1 SMP PREEMPT Fri Dec 21 19:39:35 UTC 2007 i686 AMD Athlon(tm) 64 Processor 3000+ AuthenticAMD GNU/Linux

Downloaded and installed today:

gc6.7.tar.gz
inkscape-0.45.1.tar.gz
libsigc++-2.0.18.tar.bz2

Revision history for this message
Luca Bruno (lucab) wrote :

Looking at http://svn.gnome.org/viewvc/libsigc%2B%2B2?view=revision&revision=285 it looks like the SigC compatibility was completely removed in 2.0.17.
But like Bryce, I'm actually fine with a 2.0.17 on my debian sid. I really don't know what's happening here.
Bryce, have you already tried to build with vonHalenbach patch?

Revision history for this message
Bryce Harrington (bryce) wrote :

The patch applied and built cleanly for me. I've applied it.

Changed in inkscape:
assignee: buliabyak → bryceharrington
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.