Bug 1372293 - Error compiling inkscape-0.91 from Source
Summary: Error compiling inkscape-0.91 from Source
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: inkscape
Version: 24
Hardware: i686
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-01 10:58 UTC by MakLaN
Modified: 2017-03-15 15:07 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-15 15:07:55 UTC
Type: Bug


Attachments (Terms of Use)

Description MakLaN 2016-09-01 10:58:39 UTC
Description of problem:
While running 'make', got this error:

ui/dialog/layer-properties.cpp: In member function ‘void Inkscape::UI::Dialogs::LayerPropertiesDialog::_close()’:
ui/dialog/layer-properties.cpp:149:56: error: call of overloaded ‘ptr_fun(<unresolved overloaded function type>)’ is ambiguous
             sigc::bind(sigc::ptr_fun(&::operator delete), this),
                                                        ^
In file included from /usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:8:0,
                 from /usr/include/sigc++-2.0/sigc++/functors/slot.h:7,
                 from /usr/include/sigc++-2.0/sigc++/signal_base.h:27,
                 from /usr/include/sigc++-2.0/sigc++/signal.h:8,
                 from /usr/include/sigc++-2.0/sigc++/sigc++.h:104,
                 from /usr/include/glibmm-2.4/glibmm/signalproxy.h:28,
                 from /usr/include/glibmm-2.4/glibmm/objectbase.h:23,
                 from /usr/include/glibmm-2.4/glibmm/wrap.h:23,
                 from /usr/include/glibmm-2.4/glibmm/containerhandle_shared.h:25,
                 from /usr/include/glibmm-2.4/glibmm/arrayhandle.h:23,
                 from /usr/include/glibmm-2.4/glibmm.h:93,
                 from /usr/include/gtkmm-2.4/gtkmm/dialog.h:7,
                 from ui/dialog/layer-properties.h:23,
                 from ui/dialog/layer-properties.cpp:16:
/usr/include/sigc++-2.0/sigc++/functors/ptr_fun.h:471:1: note: candidate: sigc::pointer_functor1<T_arg1, T_return> sigc::ptr_fun(T_return (*)(T_arg1)) [with T_arg1 = void*; T_return = void]
 ptr_fun(T_return (*_A_func)(T_arg1))
 ^~~~~~~
/usr/include/sigc++-2.0/sigc++/functors/ptr_fun.h:493:1: note: candidate: sigc::pointer_functor3<T_arg1, T_arg2, T_arg3, T_return> sigc::ptr_fun(T_return (*)(T_arg1, T_arg2, T_arg3)) [with T_arg1 = void*; T_arg2 = unsigned int; T_arg3 = const std::nothrow_t&; T_return = void]
 ptr_fun(T_return (*_A_func)(T_arg1, T_arg2, T_arg3))
 ^~~~~~~
Makefile:8040: recipe for target 'ui/dialog/layer-properties.o' failed
make[3]: *** [ui/dialog/layer-properties.o] Error 1
make[3]: Leaving directory '/home/MakLaN/inkscape-0.91/src'
Makefile:5048: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/MakLaN/inkscape-0.91/src'
Makefile:1401: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/MakLaN/inkscape-0.91'
Makefile:1096: recipe for target 'all' failed
make: *** [all] Error 2

My system:
$ uname -a
Linux maklan.my 4.6.7-300.fc24.i686 #1 SMP Wed Aug 17 19:31:01 UTC 2016 i686 i686 i386 GNU/Linux

The reason why I'm compiling from source is want to change URL for Creative Commons metadata from 3.0 to 4.0. (guess can't edit a binary file from pre-package).

Thanks.

Comment 1 Gwyn Ciesla 2016-09-01 13:14:27 UTC
Yeah, there was a FTBFS error I fixed for f25, and it hadn't yet needed a rebuild for f24.

Where does this need to be changed? If you have a patch against 0.92pre1 I can apply it and upgrade to that.

Comment 2 MakLaN 2016-09-01 17:44:20 UTC
(In reply to Jon Ciesla from comment #1)
> Yeah, there was a FTBFS error I fixed for f25, and it hadn't yet needed a
> rebuild for f24.
> 
> Where does this need to be changed? If you have a patch against 0.92pre1 I
> can apply it and upgrade to that.

Grabbed 0.92pre1 and same issue occur.

Comment 3 Gwyn Ciesla 2016-09-01 17:46:02 UTC
Odd. It builds for me.  Can you detail the changes you need made?

Comment 4 MakLaN 2016-09-01 22:00:49 UTC
For 0.91, I only change the number at CC's URL eg. "http://creativecommons.org/licenses/by/3.0/" to "http://creativecommons.org/licenses/by/4.0/" at /src/rdf.cpp. As 0.92pre1 I didn't touch anything since it's already point to 4.0. 

So I start over -- remove and reinstall the dependencies from previous build error (gc-devel cairomm-devel libxslt-devel gsl-devel glibmm24-devel gtkmm24-devel boost-devel popt-devel popt-static) and tries to compile 0.92pre1 again (using 'cmake'):

[ 54%] Building CXX object src/CMakeFiles/inkscape_base.dir/ui/dialog/icon-preview.cpp.o
[ 54%] Building CXX object src/CMakeFiles/inkscape_base.dir/ui/dialog/inkscape-preferences.cpp.o
[ 54%] Building CXX object src/CMakeFiles/inkscape_base.dir/ui/dialog/input.cpp.o
[ 55%] Building CXX object src/CMakeFiles/inkscape_base.dir/ui/dialog/knot-properties.cpp.o
/home/MakLaN/inkscape-0.92pre1/src/ui/dialog/knot-properties.cpp: In member function ‘void Inkscape::UI::Dialogs::KnotPropertiesDialog::_close()’:
/home/MakLaN/inkscape-0.92pre1/src/ui/dialog/knot-properties.cpp:148:56: error: call of overloaded ‘ptr_fun(<unresolved overloaded function type>)’ is ambiguous
             sigc::bind(sigc::ptr_fun(&::operator delete), this),
                                                        ^
In file included from /usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:8:0,
                 from /usr/include/sigc++-2.0/sigc++/functors/slot.h:7,
                 from /usr/include/sigc++-2.0/sigc++/signal_base.h:27,
                 from /usr/include/sigc++-2.0/sigc++/signal.h:8,
                 from /usr/include/sigc++-2.0/sigc++/sigc++.h:104,
                 from /usr/include/glibmm-2.4/glibmm/thread.h:50,
                 from /usr/include/glibmm-2.4/glibmm.h:89,
                 from /usr/include/gtkmm-2.4/gtkmm.h:87,
                 from /home/MakLaN/inkscape-0.92pre1/src/ui/dialog/knot-properties.h:19,
                 from /home/MakLaN/inkscape-0.92pre1/src/ui/dialog/knot-properties.cpp:19:
/usr/include/sigc++-2.0/sigc++/functors/ptr_fun.h:471:1: note: candidate: sigc::pointer_functor1<T_arg1, T_return> sigc::ptr_fun(T_return (*)(T_arg1)) [with T_arg1 = void*; T_return = void]
 ptr_fun(T_return (*_A_func)(T_arg1))
 ^~~~~~~
/usr/include/sigc++-2.0/sigc++/functors/ptr_fun.h:493:1: note: candidate: sigc::pointer_functor3<T_arg1, T_arg2, T_arg3, T_return> sigc::ptr_fun(T_return (*)(T_arg1, T_arg2, T_arg3)) [with T_arg1 = void*; T_arg2 = unsigned int; T_arg3 = const std::nothrow_t&; T_return = void]
 ptr_fun(T_return (*_A_func)(T_arg1, T_arg2, T_arg3))
 ^~~~~~~
src/CMakeFiles/inkscape_base.dir/build.make:7718: recipe for target 'src/CMakeFiles/inkscape_base.dir/ui/dialog/knot-properties.cpp.o' failed
make[2]: *** [src/CMakeFiles/inkscape_base.dir/ui/dialog/knot-properties.cpp.o] Error 1
CMakeFiles/Makefile2:629: recipe for target 'src/CMakeFiles/inkscape_base.dir/all' failed
make[1]: *** [src/CMakeFiles/inkscape_base.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

It's about compiler version or something?

Comment 5 Gwyn Ciesla 2016-09-01 22:13:43 UTC
Ah, I see.

If this has already been done upstream in 0.92pre1, I don't really see the need to change 0.91 in Fedora.  Additionally, the changes refer to changed licensing; do the changes apply to 0.91 or just 0.92pre1?


Note You need to log in before you can comment on or make changes to this bug.