object.cpp build failure on Solaris

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

object.cpp build failure on Solaris

Christopher Wiedel
I've been trying to build Inkscape 0.41 on sparc-sun-solaris2.8, and
have run into a bit of a problem. It configures fine, and when I start
'make' it initially goes well, occasionally popping out warnings like:

node-context.cpp: In function `void nodepath_event_attr_changed(SPRepr*,
const
   gchar*, const gchar*, const gchar*, bool, void*)':
node-context.cpp:313: warning: cast from `GTypeInstance*' to `SPItem*'
   increases required alignment of target type
node-context.cpp:322: warning: cast from `GTypeInstance*' to `SPItem*'
   increases required alignment of target type

However, it blows up when it hits src/object-edit.cpp. Or more
accurately, something inside it. It throws out a great many of the same
type of warnings as the ones above. This doesn't appear to be the
problem, since other files had the same warnings, but were able to
compile. It winds up with this:

object-edit.cpp: In function `void sp_offset_offset_set(SPItem*, const
   NR::Point&, const NR::Point&, unsigned int)':
object-edit.cpp:897: warning: cast from `GTypeInstance*' to `SPOffset*'
   increases required alignment of target type
object-edit.cpp: In function `NR::Point sp_offset_offset_get(SPItem*)':
object-edit.cpp:909: warning: cast from `GTypeInstance*' to `SPOffset*'
   increases required alignment of target type
make[2]: *** [object-edit.o] Error 1
make[2]: Leaving directory `/usr/foo/inkscape/0.41/inkscape-0.41/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/foo/inkscape/0.41/inkscape-0.41'
make: *** [all] Error 2

This is using gcc 3.3.2.

It doesn't appear to have any actual error message that I can find. I
would appreciate any pointers.

Thanks.

--
Christopher Wiedel




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Inkscape-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Reply | Threaded
Open this post in threaded view
|

Re: object.cpp build failure on Solaris

Peter Moulder
Christopher: can you try compiling current CVS ?  I don't know that
it'll do any better, but I can't see any easy fix, we might as well
concentrate on the current development version.


Developers:

Both in inkscape 0.41 and current CVS, SPItem is declared

  struct SPItem : public SPObject

and SPObject is declared

  struct SPObject : public GObject

Don't know if that helps anyone.

pjrm.


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Inkscape-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/inkscape-devel