If anyone has a distribution that requires C++11 to compile against gtkmm, please test this fix:
https://code.launchpad.net/~tweenk/inkscape/cpp11-configure-fix
Best regards, Krzysztof
On Thu, 2015-11-26 at 17:23 -0800, Krzysztof Kosiński wrote:
If anyone has a distribution that requires C++11 to compile against gtkmm, please test this fix:
https://code.launchpad.net/~tweenk/inkscape/cpp11-configure-fix
Thanks for working on this.
Tested on Fedora 23 (which requires C++11):
./configure fails with error:
checking which C++ version is required for gtkmm... configure: error: Neither C++11 nor C++98 work with gtkmm
If I manually try to compile the code (putting the code in a file and then compiling it with the relevant flags from CXXFLAGS, I get undefined reference errors (see below). If I add all the libraries via -l then it compiles.
Tav
/tmp/ccwN2Riq.o: In function `sigc::internal::slot_rep::slot_rep(void* (*)(void*), void* (*)(void*), void* (*)(void*))': /usr/include/sigc++-2.0/sigc++/functors/slot_base.h:92: undefined reference to `sigc::trackable::trackable()' /tmp/ccwN2Riq.o: In function `sigc::internal::temp_slot_list::temp_slot_list(std::__cxx11::list<sigc ::slot_base, std::allocatorsigc::slot_base >&)': /usr/include/sigc++-2.0/sigc++/signal_base.h:206: undefined reference to `sigc::slot_base::slot_base()' /tmp/ccwN2Riq.o: In function `std::_List_nodesigc::slot_base::_List_nodesigc::slot_base(sigc::sl ot_base&&)': /usr/include/c++/5.1.1/bits/stl_list.h:114: undefined reference to `sigc::slot_base::slot_base(sigc::slot_base&&)' /tmp/ccwN2Riq.o: In function `sigc::internal::temp_slot_list::temp_slot_list(std::__cxx11::list<sigc ::slot_base, std::allocatorsigc::slot_base >&)': /usr/include/sigc++-2.0/sigc++/signal_base.h:206: undefined reference to `sigc::slot_base::~slot_base()' /tmp/ccwN2Riq.o: In function `std::_List_nodesigc::slot_base::~_List_node()': /usr/include/c++/5.1.1/bits/stl_list.h:106: undefined reference to `sigc::slot_base::~slot_base()' /usr/include/c++/5.1.1/bits/stl_list.h:106: undefined reference to `sigc::slot_base::~slot_base()' /tmp/ccwN2Riq.o: In function `sigc::internal::signal_impl::unreference_exec()': /usr/include/sigc++-2.0/sigc++/signal_base.h:87: undefined reference to `sigc::internal::signal_impl::sweep()' /tmp/ccwN2Riq.o: In function `std::_List_nodesigc::slot_base::~_List_node()': /usr/include/c++/5.1.1/bits/stl_list.h:106: undefined reference to `sigc::slot_base::~slot_base()' /usr/include/c++/5.1.1/bits/stl_list.h:106: undefined reference to `sigc::slot_base::~slot_base()' /tmp/ccwN2Riq.o: In function `sigc::internal::temp_slot_list::temp_slot_list(std::__cxx11::list<sigc ::slot_base, std::allocatorsigc::slot_base >&)': /usr/include/sigc++-2.0/sigc++/signal_base.h:206: undefined reference to `sigc::slot_base::~slot_base()' /tmp/ccwN2Riq.o: In function `sigc::internal::signal_impl::unreference_exec()': /usr/include/sigc++-2.0/sigc++/signal_base.h:87: undefined reference to `sigc::internal::signal_impl::sweep()' /tmp/ccwN2Riq.o: In function `sigc::signal1<void, int, sigc::nil>::signal1()': /usr/include/sigc++-2.0/sigc++/signal.h:2844: undefined reference to `sigc::signal_base::signal_base()' /tmp/ccwN2Riq.o: In function `sigc::internal::slot_rep::slot_rep(void* (*)(void*), void* (*)(void*), void* (*)(void*))': /usr/include/sigc++-2.0/sigc++/functors/slot_base.h:92: undefined reference to `sigc::trackable::trackable()' /tmp/ccwN2Riq.o: In function `sigc::slot1<void, int>::slot1<sigc::pointer_functor1<int, void>
(sigc::pointer_functor1<int, void> const&)':
/usr/include/sigc++-2.0/sigc++/functors/slot.h:581: undefined reference to `sigc::slot_base::slot_base(sigc::internal::slot_rep*)' /tmp/ccwN2Riq.o: In function `sigc::signal1<void, int, sigc::nil>::connect(sigc::slot<void, int, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil> const&)': /usr/include/sigc++-2.0/sigc++/signal.h:2797: undefined reference to `sigc::signal_base::connect(sigc::slot_base const&)' /tmp/ccwN2Riq.o: In function `sigc::slot1<void, int>::~slot1()': /usr/include/sigc++-2.0/sigc++/functors/slot.h:548: undefined reference to `sigc::slot_base::~slot_base()' /tmp/ccwN2Riq.o: In function `sigc::signal1<void, int, sigc::nil>::~signal1()': /usr/include/sigc++-2.0/sigc++/signal.h:2762: undefined reference to `sigc::signal_base::~signal_base()' /usr/include/sigc++-2.0/sigc++/signal.h:2762: undefined reference to `sigc::signal_base::~signal_base()' /tmp/ccwN2Riq.o: In function `sigc::slot1<void, int>::~slot1()': /usr/include/sigc++-2.0/sigc++/functors/slot.h:548: undefined reference to `sigc::slot_base::~slot_base()' /tmp/ccwN2Riq.o: In function `__static_initialization_and_destruction_0': /usr/include/gtkmm-2.4/gtkmm/papersize.h:41: undefined reference to `Glib::ustring::ustring(char const*)' /usr/include/gtkmm-2.4/gtkmm/papersize.h:41: undefined reference to `Glib::ustring::~ustring()' /usr/include/gtkmm-2.4/gtkmm/papersize.h:42: undefined reference to `Glib::ustring::ustring(char const*)' /usr/include/gtkmm-2.4/gtkmm/papersize.h:42: undefined reference to `Glib::ustring::~ustring()' /usr/include/gtkmm-2.4/gtkmm/papersize.h:43: undefined reference to `Glib::ustring::ustring(char const*)' /usr/include/gtkmm-2.4/gtkmm/papersize.h:43: undefined reference to `Glib::ustring::~ustring()' /usr/include/gtkmm-2.4/gtkmm/papersize.h:44: undefined reference to `Glib::ustring::ustring(char const*)' /usr/include/gtkmm-2.4/gtkmm/papersize.h:44: undefined reference to `Glib::ustring::~ustring()' /usr/include/gtkmm-2.4/gtkmm/papersize.h:45: undefined reference to `Glib::ustring::ustring(char const*)' /usr/include/gtkmm-2.4/gtkmm/papersize.h:45: undefined reference to `Glib::ustring::~ustring()' /usr/include/gtkmm-2.4/gtkmm/papersize.h:46: undefined reference to `Glib::ustring::ustring(char const*)' /usr/include/gtkmm-2.4/gtkmm/papersize.h:46: undefined reference to `Glib::ustring::~ustring()' /usr/include/gtkmm-2.4/gtkmm/papersize.h:47: undefined reference to `Glib::ustring::ustring(char const*)' /usr/include/gtkmm-2.4/gtkmm/papersize.h:47: undefined reference to `Glib::ustring::~ustring()' collect2: error: ld returned 1 exit status
Hmmmmm, that's weird. Can you send me the config.log? On 27 Nov 2015 01:15, "Tavmjong Bah" <tavmjong@...8...> wrote:
On Thu, 2015-11-26 at 17:23 -0800, Krzysztof Kosiński wrote:
If anyone has a distribution that requires C++11 to compile against gtkmm, please test this fix:
https://code.launchpad.net/~tweenk/inkscape/cpp11-configure-fix
Thanks for working on this.
Tested on Fedora 23 (which requires C++11):
./configure fails with error:
checking which C++ version is required for gtkmm... configure: error: Neither C++11 nor C++98 work with gtkmm
If I manually try to compile the code (putting the code in a file and then compiling it with the relevant flags from CXXFLAGS, I get undefined reference errors (see below). If I add all the libraries via -l then it compiles.
Tav
/tmp/ccwN2Riq.o: In function `sigc::internal::slot_rep::slot_rep(void* (*)(void*), void* (*)(void*), void* (*)(void*))': /usr/include/sigc++-2.0/sigc++/functors/slot_base.h:92: undefined reference to `sigc::trackable::trackable()' /tmp/ccwN2Riq.o: In function `sigc::internal::temp_slot_list::temp_slot_list(std::__cxx11::list<sigc ::slot_base, std::allocatorsigc::slot_base >&)': /usr/include/sigc++-2.0/sigc++/signal_base.h:206: undefined reference to `sigc::slot_base::slot_base()' /tmp/ccwN2Riq.o: In function `std::_List_nodesigc::slot_base::_List_nodesigc::slot_base(sigc::sl ot_base&&)': /usr/include/c++/5.1.1/bits/stl_list.h:114: undefined reference to `sigc::slot_base::slot_base(sigc::slot_base&&)' /tmp/ccwN2Riq.o: In function `sigc::internal::temp_slot_list::temp_slot_list(std::__cxx11::list<sigc ::slot_base, std::allocatorsigc::slot_base >&)': /usr/include/sigc++-2.0/sigc++/signal_base.h:206: undefined reference to `sigc::slot_base::~slot_base()' /tmp/ccwN2Riq.o: In function `std::_List_nodesigc::slot_base::~_List_node()': /usr/include/c++/5.1.1/bits/stl_list.h:106: undefined reference to `sigc::slot_base::~slot_base()' /usr/include/c++/5.1.1/bits/stl_list.h:106: undefined reference to `sigc::slot_base::~slot_base()' /tmp/ccwN2Riq.o: In function `sigc::internal::signal_impl::unreference_exec()': /usr/include/sigc++-2.0/sigc++/signal_base.h:87: undefined reference to `sigc::internal::signal_impl::sweep()' /tmp/ccwN2Riq.o: In function `std::_List_nodesigc::slot_base::~_List_node()': /usr/include/c++/5.1.1/bits/stl_list.h:106: undefined reference to `sigc::slot_base::~slot_base()' /usr/include/c++/5.1.1/bits/stl_list.h:106: undefined reference to `sigc::slot_base::~slot_base()' /tmp/ccwN2Riq.o: In function `sigc::internal::temp_slot_list::temp_slot_list(std::__cxx11::list<sigc ::slot_base, std::allocatorsigc::slot_base >&)': /usr/include/sigc++-2.0/sigc++/signal_base.h:206: undefined reference to `sigc::slot_base::~slot_base()' /tmp/ccwN2Riq.o: In function `sigc::internal::signal_impl::unreference_exec()': /usr/include/sigc++-2.0/sigc++/signal_base.h:87: undefined reference to `sigc::internal::signal_impl::sweep()' /tmp/ccwN2Riq.o: In function `sigc::signal1<void, int, sigc::nil>::signal1()': /usr/include/sigc++-2.0/sigc++/signal.h:2844: undefined reference to `sigc::signal_base::signal_base()' /tmp/ccwN2Riq.o: In function `sigc::internal::slot_rep::slot_rep(void* (*)(void*), void* (*)(void*), void* (*)(void*))': /usr/include/sigc++-2.0/sigc++/functors/slot_base.h:92: undefined reference to `sigc::trackable::trackable()' /tmp/ccwN2Riq.o: In function `sigc::slot1<void, int>::slot1<sigc::pointer_functor1<int, void>
(sigc::pointer_functor1<int, void> const&)':
/usr/include/sigc++-2.0/sigc++/functors/slot.h:581: undefined reference to `sigc::slot_base::slot_base(sigc::internal::slot_rep*)' /tmp/ccwN2Riq.o: In function `sigc::signal1<void, int, sigc::nil>::connect(sigc::slot<void, int, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil> const&)': /usr/include/sigc++-2.0/sigc++/signal.h:2797: undefined reference to `sigc::signal_base::connect(sigc::slot_base const&)' /tmp/ccwN2Riq.o: In function `sigc::slot1<void, int>::~slot1()': /usr/include/sigc++-2.0/sigc++/functors/slot.h:548: undefined reference to `sigc::slot_base::~slot_base()' /tmp/ccwN2Riq.o: In function `sigc::signal1<void, int, sigc::nil>::~signal1()': /usr/include/sigc++-2.0/sigc++/signal.h:2762: undefined reference to `sigc::signal_base::~signal_base()' /usr/include/sigc++-2.0/sigc++/signal.h:2762: undefined reference to `sigc::signal_base::~signal_base()' /tmp/ccwN2Riq.o: In function `sigc::slot1<void, int>::~slot1()': /usr/include/sigc++-2.0/sigc++/functors/slot.h:548: undefined reference to `sigc::slot_base::~slot_base()' /tmp/ccwN2Riq.o: In function `__static_initialization_and_destruction_0': /usr/include/gtkmm-2.4/gtkmm/papersize.h:41: undefined reference to `Glib::ustring::ustring(char const*)' /usr/include/gtkmm-2.4/gtkmm/papersize.h:41: undefined reference to `Glib::ustring::~ustring()' /usr/include/gtkmm-2.4/gtkmm/papersize.h:42: undefined reference to `Glib::ustring::ustring(char const*)' /usr/include/gtkmm-2.4/gtkmm/papersize.h:42: undefined reference to `Glib::ustring::~ustring()' /usr/include/gtkmm-2.4/gtkmm/papersize.h:43: undefined reference to `Glib::ustring::ustring(char const*)' /usr/include/gtkmm-2.4/gtkmm/papersize.h:43: undefined reference to `Glib::ustring::~ustring()' /usr/include/gtkmm-2.4/gtkmm/papersize.h:44: undefined reference to `Glib::ustring::ustring(char const*)' /usr/include/gtkmm-2.4/gtkmm/papersize.h:44: undefined reference to `Glib::ustring::~ustring()' /usr/include/gtkmm-2.4/gtkmm/papersize.h:45: undefined reference to `Glib::ustring::ustring(char const*)' /usr/include/gtkmm-2.4/gtkmm/papersize.h:45: undefined reference to `Glib::ustring::~ustring()' /usr/include/gtkmm-2.4/gtkmm/papersize.h:46: undefined reference to `Glib::ustring::ustring(char const*)' /usr/include/gtkmm-2.4/gtkmm/papersize.h:46: undefined reference to `Glib::ustring::~ustring()' /usr/include/gtkmm-2.4/gtkmm/papersize.h:47: undefined reference to `Glib::ustring::ustring(char const*)' /usr/include/gtkmm-2.4/gtkmm/papersize.h:47: undefined reference to `Glib::ustring::~ustring()' collect2: error: ld returned 1 exit status
Ugh, I was adding two conflicting -std= options in the C++11 case. Try again now, I've updated the branch.
Best regards, Krzysztof
2015-11-30 4:15 GMT-08:00 Tavmjong Bah <tavmjong@...8...>:
On Fri, 2015-11-27 at 13:42 -0800, Krzysztof Kosiński wrote:
Hmmmmm, that's weird. Can you send me the config.log?
Attached
On Mon, 2015-11-30 at 22:08 -0800, Krzysztof Kosiński wrote:
Ugh, I was adding two conflicting -std= options in the C++11 case. Try again now, I've updated the branch.
The updated branch works! Thanks!
While I've got your attention... I am getting the following error message for each file compiled:
In file included from /usr/include/c++/5.1.1/x86_64-redhat- linux/bits/os_defines.h:39:0, from /usr/include/c++/5.1.1/x86_64-redhat- linux/bits/c++config.h:2216, from /usr/include/c++/5.1.1/cstdio:41, from trace/filterset.cpp:13: /usr/include/features.h:328:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^
Tav
Looks like the -O2 flag is somehow disappearing from the command line. Can you run make V=1 and paste an example g++ command? On 1 Dec 2015 00:35, "Tavmjong Bah" <tavmjong@...8...> wrote:
On Mon, 2015-11-30 at 22:08 -0800, Krzysztof Kosiński wrote:
Ugh, I was adding two conflicting -std= options in the C++11 case. Try again now, I've updated the branch.
The updated branch works! Thanks!
While I've got your attention... I am getting the following error message for each file compiled:
In file included from /usr/include/c++/5.1.1/x86_64-redhat- linux/bits/os_defines.h:39:0, from /usr/include/c++/5.1.1/x86_64-redhat- linux/bits/c++config.h:2216, from /usr/include/c++/5.1.1/cstdio:41, from trace/filterset.cpp:13: /usr/include/features.h:328:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^
Tav
On Tue, 2015-12-01 at 09:40 -0800, Krzysztof Kosiński wrote:
Looks like the -O2 flag is somehow disappearing from the command line. Can you run make V=1 and paste an example g++ command?
depbase=`echo inkscape.o | sed 's|[^/]*$|.deps/&|;s|.o$||'`;\ g++ -DHAVE_CONFIG_H -I. -I.. -I../cxxtest -I./extension/dbus - I/usr/include/freetype2 -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/ImageMagick-6 - I/usr/include/libwpg-0.3 -I/usr/include/libwpd-0.10 -I/usr/include/librevenge-0.0 -I/usr/include/libvisio-0.1 -I/usr/include/libxml2 -I/usr/include/librevenge-0.0 - I/usr/include/libcdr-0.1 -I/usr/include/librevenge-0.0 - I/usr/include/poppler -pthread -I/usr/include/poppler/glib -I/usr/include/poppler -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -DPOTRACE="potrace" -pthread -I/usr/include/gtkmm-2.4 -I/usr/lib64/gtkmm-2.4/include -I/usr/include/atkmm-1.6 -I/usr/include/gtk-unix-print-2.0 -I/usr/include/gtk-2.0 -I/usr/include/gdkmm-2.4 -I/usr/lib64/gdkmm- 2.4/include -I/usr/include/giomm-2.4 -I/usr/lib64/giomm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/lib64/pangomm-1.4/include -I/usr/include/glibmm-2.4 -I/usr/lib64/glibmm-2.4/include -I/usr/include/cairomm-1.0 -I/usr/lib64/cairomm-1.0/include -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk- pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib- 2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -pthread -I/usr/include/cairomm-1.0 -I/usr/lib64/cairomm-1.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/giomm-2.4 -I/usr/lib64/giomm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib64/glibmm-2.4/include -I/usr/include/libxml2 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango- 1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/sigc++- 2.0 -I/usr/lib64/sigc++-2.0/include -DG_DISABLE_DEPRECATED -DGLIBMM_DISABLE_DEPRECATED -DGDKMM_DISABLE_DEPRECATED -DGTK_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_DEPRECATED -DGTKMM_DISABLE_DEPRECATED -DWITH_LPETOOL -DLPE_ENABLE_TEST_EFFECTS -DWITH_MESH -DWITH_CSSBLEND -DWITH_CSSCOMPOSITE -DWITH_SVG2 -Werror=format-security -Wswitch -Werror=return-type -DGSEAL_ENABLE -DG_DISABLE_SINGLE_INCLUDES -Wall -Wformat -Wformat-security -W -D_FORTIFY_SOURCE=2 -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch -Wno-unused-parameter -std=c++11 -MT inkscape.o -MD -MP -MF $depbase.Tpo -c -o inkscape.o inkscape.cpp &&\ mv -f $depbase.Tpo $depbase.Po In file included from /usr/include/errno.h:28:0, from inkscape.cpp:21: /usr/include/features.h:328:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O)
Yeah, the -O2 disappeared somewhere, no idea why yet. I'll investigate this later today once I get home. On 1 Dec 2015 10:36, "Tavmjong Bah" <tavmjong@...8...> wrote:
On Tue, 2015-12-01 at 09:40 -0800, Krzysztof Kosiński wrote:
Looks like the -O2 flag is somehow disappearing from the command line. Can you run make V=1 and paste an example g++ command?
depbase=`echo inkscape.o | sed 's|[^/]*$|.deps/&|;s|.o$||'`;\ g++ -DHAVE_CONFIG_H -I. -I.. -I../cxxtest -I./extension/dbus - I/usr/include/freetype2 -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/ImageMagick-6 - I/usr/include/libwpg-0.3 -I/usr/include/libwpd-0.10 -I/usr/include/librevenge-0.0 -I/usr/include/libvisio-0.1 -I/usr/include/libxml2 -I/usr/include/librevenge-0.0 - I/usr/include/libcdr-0.1 -I/usr/include/librevenge-0.0 - I/usr/include/poppler -pthread -I/usr/include/poppler/glib -I/usr/include/poppler -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -DPOTRACE="potrace" -pthread -I/usr/include/gtkmm-2.4 -I/usr/lib64/gtkmm-2.4/include -I/usr/include/atkmm-1.6 -I/usr/include/gtk-unix-print-2.0 -I/usr/include/gtk-2.0 -I/usr/include/gdkmm-2.4 -I/usr/lib64/gdkmm- 2.4/include -I/usr/include/giomm-2.4 -I/usr/lib64/giomm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/lib64/pangomm-1.4/include -I/usr/include/glibmm-2.4 -I/usr/lib64/glibmm-2.4/include -I/usr/include/cairomm-1.0 -I/usr/lib64/cairomm-1.0/include -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk- pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib- 2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -pthread -I/usr/include/cairomm-1.0 -I/usr/lib64/cairomm-1.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/giomm-2.4 -I/usr/lib64/giomm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib64/glibmm-2.4/include -I/usr/include/libxml2 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango- 1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/sigc++- 2.0 -I/usr/lib64/sigc++-2.0/include -DG_DISABLE_DEPRECATED -DGLIBMM_DISABLE_DEPRECATED -DGDKMM_DISABLE_DEPRECATED -DGTK_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_DEPRECATED -DGTKMM_DISABLE_DEPRECATED -DWITH_LPETOOL -DLPE_ENABLE_TEST_EFFECTS -DWITH_MESH -DWITH_CSSBLEND -DWITH_CSSCOMPOSITE -DWITH_SVG2 -Werror=format-security -Wswitch -Werror=return-type -DGSEAL_ENABLE -DG_DISABLE_SINGLE_INCLUDES -Wall -Wformat -Wformat-security -W -D_FORTIFY_SOURCE=2 -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch -Wno-unused-parameter -std=c++11 -MT inkscape.o -MD -MP -MF $depbase.Tpo -c -o inkscape.o inkscape.cpp &&\ mv -f $depbase.Tpo $depbase.Po In file included from /usr/include/errno.h:28:0, from inkscape.cpp:21: /usr/include/features.h:328:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O)
Note that the C++11 issue is filed as bug 1488079:
https://bugs.launchpad.net/inkscape/+bug/1488079
Tav
New patch posted at the Launchpad bug.
2015-12-05 5:46 GMT-08:00 Tavmjong Bah <tavmjong@...8...>:
Note that the C++11 issue is filed as bug 1488079:
https://bugs.launchpad.net/inkscape/+bug/1488079
Tav
Posting patch here for completeness.
2016-02-16 1:49 GMT-08:00 Krzysztof Kosiński <tweenk.pl@...400...>:
New patch posted at the Launchpad bug.
2015-12-05 5:46 GMT-08:00 Tavmjong Bah <tavmjong@...8...>:
Note that the C++11 issue is filed as bug 1488079:
https://bugs.launchpad.net/inkscape/+bug/1488079
Tav
Works for me (Fedora 23 which requires C++11)
On Tue, 2016-02-16 at 01:51 -0800, Krzysztof Kosiński wrote:
Posting patch here for completeness.
2016-02-16 1:49 GMT-08:00 Krzysztof Kosiński <tweenk.pl@...400...>:
New patch posted at the Launchpad bug.
2015-12-05 5:46 GMT-08:00 Tavmjong Bah <tavmjong@...8...>:
Note that the C++11 issue is filed as bug 1488079:
https://bugs.launchpad.net/inkscape/+bug/1488079
Tav
Also seems to be working on OSX (as reported by Travis CI on the test import at Github). Committed as revision 14656.
Best regards, Krzysztof
2016-02-16 1:58 GMT-08:00 Tavmjong Bah <tavmjong@...8...>:
Works for me (Fedora 23 which requires C++11)
On Tue, 2016-02-16 at 01:51 -0800, Krzysztof Kosiński wrote:
Posting patch here for completeness.
2016-02-16 1:49 GMT-08:00 Krzysztof Kosiński <tweenk.pl@...400...>:
New patch posted at the Launchpad bug.
2015-12-05 5:46 GMT-08:00 Tavmjong Bah <tavmjong@...8...>:
Note that the C++11 issue is filed as bug 1488079:
https://bugs.launchpad.net/inkscape/+bug/1488079
Tav
Applied to 0.91.x branch in revision 13857.
2016-02-16 2:12 GMT-08:00 Tavmjong Bah <tavmjong@...8...>:
On Tue, 2016-02-16 at 02:08 -0800, Krzysztof Kosiński wrote:
Also seems to be working on OSX (as reported by Travis CI on the test import at Github). Committed as revision 14656.
Thanks!
participants (2)
-
Krzysztof Kosiński
-
Tavmjong Bah