Problem compiling with gcc 4.2.2 and libsigc++2.0 v2.1.1
Hi,
I have a serious problem getting to inkscape-svn to compile with gcc 4.2.2 and libsigc++2.0 v2.1.1. It used to work with gcc 4.2.1 and v2.0.18.
Also, I have been trying to get the beautiful PDF Import to work (and actually got it to work with the above mentioned software). There was a problem with poppler not installing the Cairo headers by default. You might or might not be aware of the fact that this has a reason: the poppler guys do not guarantee a stable API for those functions. I have talked to one of them on IRC and he was disappointed because of the lack of communication between the SOC students and the poppler devs...
I just mean to make you aware of the fact that there might be incompatibilities lying ahead, which I would deeply regret, because I have seen the PDF import work, and am totally blown away by it. In my eyes this is a killer app.
So keep up the great work, Martin
LOG:
depbase=`echo select-context.o | sed 's|[^/]*$|.deps/&|;s|.o$||'`;\ g++ -DHAVE_CONFIG_H -I. -I.. -I../../inkscape/src -I/usr/lib/perl5/5.8.8/i686-linux-thread-multi/CORE -I/usr/include/freetype2 -I/usr/include/libgnomeprint-2.2 -I/usr/include/libart-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/pango-1.0 -I/usr/include/libgnomeprintui-2.2 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/freetype2 -I/usr/include/gail-1.0 -I/usr/include/gtk-2.0 -I/usr/include/atk-1.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/libpng12 -DRELAYTOOL_CRYPTO='static const int libcrypto_is_present = 1; static int __attribute__((unused)) libcrypto_symbol_is_present(char *m) { return 1; }' -DRELAYTOOL_SSL='static const int libssl_is_present = 1; static int __attribute__((unused)) libssl_symbol_is_present(char *m) { return 1; }' -DHAVE_SSL -I/usr/include/freetype2 -I/usr/include/gtk-unix-print-2.0 -I/usr/include/gtk-2.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/poppler -I/usr/include/poppler/glib -I/usr/include/poppler -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng12 -DPOTRACE="potrace" -pthread -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairomm-1.0 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/usr/include/atkmm-1.6 -I/usr/include/atk-1.0 -I/usr/include/libxml2 -I/usr/include/gtkspell-2.0 -I../../inkscape/cxxtest -Wall -Wformat-security -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch -D_FORTIFY_SOURCE=2 -Wno-unused-parameter -march=i686 -mtune=generic -O2 -pipe -MT select-context.o -MD -MP -MF $depbase.Tpo -c -o select-context.o ../../inkscape/src/select-context.cpp &&\ mv -f $depbase.Tpo $depbase.Po
In file included from ../../inkscape/src/select-context.cpp:26: ../../inkscape/src/pixmaps/cursor-select-m.xpm:38: warning: deprecated conversion from string constant to 'char*'
[...]
In file included from ../../inkscape/src/select-context.cpp:28: ../../inkscape/src/pixmaps/handles.xpm:19: warning: deprecated conversion from string constant to 'char*'
[...]
In file included from ../../inkscape/src/select-context.cpp:40: ../../inkscape/src/seltrans.h:153: error: 'SigC' has not been declared ../../inkscape/src/seltrans.h:153: error: ISO C++ forbids declaration of 'Connection' with no type ../../inkscape/src/seltrans.h:153: error: expected ';' before '_sel_changed_connection' ../../inkscape/src/seltrans.h:154: error: 'SigC' has not been declared ../../inkscape/src/seltrans.h:154: error: ISO C++ forbids declaration of 'Connection' with no type ../../inkscape/src/seltrans.h:154: error: expected ';' before '_sel_modified_connection' make[2]: *** [select-context.o] Error 1 make[2]: Leaving directory `/var/abs/local/inkscape-svn/src/inkscape-build/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/abs/local/inkscape-svn/src/inkscape-build' make: *** [all] Error 2
He, solved the problem for now.
The namespace from libsigc++2.0 changed from SigC to sigc.
So the fix is to replace in seltrans.h: "SigC::Connection" to "sigc::connection".
Cheers, Martin
Martin Schmidt wrote:
Hi,
I have a serious problem getting to inkscape-svn to compile with gcc 4.2.2 and libsigc++2.0 v2.1.1. It used to work with gcc 4.2.1 and v2.0.18.
Also, I have been trying to get the beautiful PDF Import to work (and actually got it to work with the above mentioned software). There was a problem with poppler not installing the Cairo headers by default. You might or might not be aware of the fact that this has a reason: the poppler guys do not guarantee a stable API for those functions. I have talked to one of them on IRC and he was disappointed because of the lack of communication between the SOC students and the poppler devs...
I just mean to make you aware of the fact that there might be incompatibilities lying ahead, which I would deeply regret, because I have seen the PDF import work, and am totally blown away by it. In my eyes this is a killer app.
So keep up the great work, Martin
LOG:
depbase=`echo select-context.o | sed 's|[^/]*$|.deps/&|;s|.o$||'`;\ g++ -DHAVE_CONFIG_H -I. -I.. -I../../inkscape/src -I/usr/lib/perl5/5.8.8/i686-linux-thread-multi/CORE -I/usr/include/freetype2 -I/usr/include/libgnomeprint-2.2 -I/usr/include/libart-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/pango-1.0 -I/usr/include/libgnomeprintui-2.2 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/freetype2 -I/usr/include/gail-1.0 -I/usr/include/gtk-2.0 -I/usr/include/atk-1.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/libpng12 -DRELAYTOOL_CRYPTO='static const int libcrypto_is_present = 1; static int __attribute__((unused)) libcrypto_symbol_is_present(char *m) { return 1; }' -DRELAYTOOL_SSL='static const int libssl_is_present = 1; static int __attribute__((unused)) libssl_symbol_is_present(char *m) { return 1; }' -DHAVE_SSL -I/usr/include/freetype2 -I/usr/include/gtk-unix-print-2.0 -I/usr/include/gtk-2.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/poppler -I/usr/include/poppler/glib -I/usr/include/poppler -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng12 -DPOTRACE="potrace" -pthread -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairomm-1.0 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/usr/include/atkmm-1.6 -I/usr/include/atk-1.0 -I/usr/include/libxml2 -I/usr/include/gtkspell-2.0 -I../../inkscape/cxxtest -Wall -Wformat-security -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch -D_FORTIFY_SOURCE=2 -Wno-unused-parameter -march=i686 -mtune=generic -O2 -pipe -MT select-context.o -MD -MP -MF $depbase.Tpo -c -o select-context.o ../../inkscape/src/select-context.cpp &&\ mv -f $depbase.Tpo $depbase.Po
In file included from ../../inkscape/src/select-context.cpp:26: ../../inkscape/src/pixmaps/cursor-select-m.xpm:38: warning: deprecated conversion from string constant to 'char*'
[...]
In file included from ../../inkscape/src/select-context.cpp:28: ../../inkscape/src/pixmaps/handles.xpm:19: warning: deprecated conversion from string constant to 'char*'
[...]
In file included from ../../inkscape/src/select-context.cpp:40: ../../inkscape/src/seltrans.h:153: error: 'SigC' has not been declared ../../inkscape/src/seltrans.h:153: error: ISO C++ forbids declaration of 'Connection' with no type ../../inkscape/src/seltrans.h:153: error: expected ';' before '_sel_changed_connection' ../../inkscape/src/seltrans.h:154: error: 'SigC' has not been declared ../../inkscape/src/seltrans.h:154: error: ISO C++ forbids declaration of 'Connection' with no type ../../inkscape/src/seltrans.h:154: error: expected ';' before '_sel_modified_connection' make[2]: *** [select-context.o] Error 1 make[2]: Leaving directory `/var/abs/local/inkscape-svn/src/inkscape-build/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/abs/local/inkscape-svn/src/inkscape-build' make: *** [all] Error 2
This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
participants (1)
-
Martin Schmidt