LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Inkscape compile error at current Slack (http://www.linuxquestions.org/questions/slackware-14/inkscape-compile-error-at-current-slack-937956/)

brodo 04-03-2012 04:27 PM

Inkscape compile error at current Slack
 
I got this while compiling latest stable version of Inkscape :

<<<<<<<<
graphlayout.cpp:158:40: error: redeclaration of 'std::map<std::basic_string<char>, unsigned int>::iterator i'
graphlayout.cpp:153:35: error: 'std::list<SPItem*>::iterator i' previously declared here
make[2]: *** [graphlayout.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from ./libnr/nr-point.h:20:0,
from ./libnr/nr-rect.h:24,
from libnr/nr-convex-hull.h:14,
from selection.h:26,
from gradient-drag.cpp:24:
./2geom/point.h: In function 'void gr_knot_moved_handler(SPKnot*, const Geom::Point&, guint, gpointer)':
./2geom/point.h:41:30: warning: '*((void*)(& snap_vector)+4).Geom::Point::_pt[1u]' may be used uninitialized in this function [-Wmaybe-uninitialized]
gradient-drag.cpp:702:42: note: '*((void*)(& snap_vector)+4).Geom::Point::_pt[1u]' was declared here
In file included from ./libnr/nr-point.h:20:0,
from ./libnr/nr-rect.h:24,
from libnr/nr-convex-hull.h:14,
from selection.h:26,
from gradient-drag.cpp:24:
./2geom/point.h:41:30: warning: '*((void*)(& snap_vector)+4).Geom::Point::_pt[0u]' may be used uninitialized in this function [-Wmaybe-uninitialized]
gradient-drag.cpp:702:42: note: '*((void*)(& snap_vector)+4).Geom::Point::_pt[0u]' was declared here
make[2]: Leaving directory `/tmp/buildpkgs/inkscape/inkscape-0.48.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/buildpkgs/inkscape/inkscape-0.48.2'
make: *** [all] Error 2
>>>>>>>>>


It would be nice to solve this problem . . . .

mats_b_tegner 04-03-2012 05:30 PM

Have you tried compiling with this LFS patch?
http://www.at.linuxfromscratch.org/p...cc-4.7-1.patch

Mats

brodo 04-03-2012 08:21 PM

Quote:

Originally Posted by mats_b_tegner (Post 4643979)
Have you tried compiling with this LFS patch?
http://www.at.linuxfromscratch.org/p...cc-4.7-1.patch

Mats

Yes, that works !
Thanks !


All times are GMT -5. The time now is 12:59 PM.