(thanks for you answers)
MenTaLguY <mental@...3...> writes:
On Mon, 2004-06-07 at 15:48, Colin Marquardt wrote:
Now, with the following error, I assume it happens because the Makefile is using Solaris' as instead of GNU's "gas":
In file included from style.h:19, from sp-typeset-kplayout.cpp:26: sp-marker.h: In member function `SPMarker* SPMarkerReference::getObject() const ': sp-marker.h:94: warning: cast from `SPObject*' to `SPMarker*' increases required alignment of target type In file included from sp-typeset-kplayout.cpp:30: sp-use.h: In member function `SPItem* SPUseReference::getObject() const': sp-use.h:25: warning: cast from `SPObject*' to `SPItem*' increases required alignment of target type sp-typeset-kplayout.cpp: In function `void sp_typeset_rekplayout(SPTypeset*)': sp-typeset-kplayout.cpp:325: warning: cast from `GTypeInstance*' to `SPTypeset* ' increases required alignment of target type
Egh. Alignment issues on Sparc could be a pain. Hopefully e.g. SPObject and SPItem do not really have such different alignment requirements (for individually allocated structures).
(it might be instructive to see what Glib/Gtk has to do in order to compile cleanly on this platform, since I would naively expect it to generate the same warnings)
I don't remember seeing such warnings when compiling glib, gtk+ or gtkmm etc., indeed.
/usr/ccs/bin/as: "/var/tmp//ccUeTaeq.s", line 5631: error: constant value must be between -4096 and 4095 gmake: *** [sp-typeset-kplayout.o] Error 1
This one likely is, though I've no clue about its specifics. Can you paste some of the generated assembly?
The assembly seems to be generated only temporary, I haven't succeeded in capturing it.
I have stopped here for today since I didn't find the "as" call immediately; I hope the above is helpful for portabilty. Hints about the as/gas problem are appreciated.
Can you force it to use gas and see if things work otherwise?
The assembler executable seems to be a compile time option for gcc, and gcc was provided by the system, so I couldn't easily change that (maybe it's a run time option for gcc as well though, I didn't check).
Well, I got this file to compile, and that was by running the gcc invocation by hand, with the "-O2" option removed - this made the error go away.
My current state of affairs is documented in the Wiki: http://inkscape.org/cgi-bin/wiki.pl?CompilingInkscape at the end.
It lists some more necessary changes in addition to the ones from my first mail (that you fixed in CVS as you wrote). As written there, I'm stuck here:
In file included from /home/foo/Tools/include/X11/extensions/Xrender.h:33, from /home/foo/Tools/include/X11/Xft/Xft.h:47, from libnrtype/nr-type-xft.cpp:16: /usr/openwin/include/X11/Xutil.h:56: warning: ignoring #pragma ident /usr/openwin/include/X11/Xutil.h:117: error: 'Bool' is used as a type, but is not defined as a type. /usr/openwin/include/X11/Xutil.h:120: error: 'Pixmap' is used as a type, but is not defined as a type. /usr/openwin/include/X11/Xutil.h:121: error: 'Window' is used as a type, but is not defined as a type. [...]
I had simply installed libxrender as it was missing, and it compiled cleanly. That was probably a bit simpleminded... :)
I'm not an admin on that machine, and I guess me switching to XFree86 is out of the question. Any other possibilities?
I'll be away until Sunday with little connectivity - I'll try to check the mailing list and the Wiki every once in a while though.
Cheers, Colin