Hi,
first of all, I have Inkscape running under Solaris 2.8! Yay! :)
MenTaLguY <mental@...3...> writes:
On Wed, 2004-06-09 at 14:42, Colin Marquardt wrote:
/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.
Try the -save-temps option; it should preserve all of the intermediate files (the assembly should be in sp-typeset-kplayout.s).
Did that, the result is at http://buug.de/~colin/sp-typeset-kplayout.s.bz2 (~100k, unpacked 600k)
FWIW, the section in question is
,---- | .LLEHB10: | call %g1, 0 | add %o7, (.LL171-.-4), %o7 `----
(the line with "add" is 5631)
,---- | $ /usr/ccs/bin/as -V | /usr/ccs/bin/as: Sun WorkShop 6 99/08/18 `----
Could you please prepare a patch for the various floating-point things?
Will do. I am pretty busy at work, but I'll try to have that by tomorrow.
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'm not an admin on that machine, and I guess me switching to XFree86 is out of the question. Any other possibilities?
Most likely you will need to include another X11 header before including Xft.h (XFree86's Xutil.h probably includes it automatically, whereas Solaris' does not).
So, that one should simply be a matter of adding the right #includes.
I am guessing X11/X.h and X11/Xdefs.h should be sufficient.
Right. The header of that file said
,---- | #pragma ident "@(#)Xutil.h 1.2 00/07/05 SMI" | | /* You must include <X11/Xlib.h> before including this file */ `----
so I did that, and all was fine. Cool.
I tweaked some more things as documented in the wiki, and in the end, Inkscape was running. Very nice.
I now produced a patch and applied it to the current CVS snapshot. It is still a painful thing to compile - starting with the autogen.sh run. Do you want me to report all things I encounter step by step?
Appended is a first part. I think I have already patched configure.in to use "ggrep" instead of Solaris' own "grep". I also defined AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Unfortunately, I'm totally illiterate when it comes to the autotools...
Cheers, Colin
$ ./autogen.sh --prefix=/home/marquardt/Tools/ --includedir=/home/marquardt/Tools/include CPPFLAGS=-I/home/marquardt/Tools/include ============================================================================= When you report a trouble about building CVS version of inkscape, Please report following information about distro and tools version, too.
--1. distribution------------------------------------------------------------ ./distro: : cannot execute ./distro: syntax error at line 2: `emacs-21.3^V,¼§ unexpected egrep: syntax error Solaris 8
--2. tools------------------------------------------------------------------- which m4: /usr/ccs/bin/m4 m4: bad option: --version which autoconf: /home/marquardt/Tools/bin//autoconf autoconf (GNU Autoconf) 2.59 which autoheader: /home/marquardt/Tools/bin//autoheader autoheader (GNU Autoconf) 2.59 which automake: /home/marquardt/Tools/bin//automake automake (GNU automake) 1.8.3 which automake-1.7: no automake-1.7 in ... ./tools-version.sh: automake-1.7: not found which aclocal: /home/marquardt/Tools/bin//aclocal aclocal (GNU automake) 1.8.3 which aclocal-1.7: no aclocal-1.7 in ... ./tools-version.sh: aclocal-1.7: not found which intltoolize: /home/marquardt/Tools/bin//intltoolize intltoolize (GNU intltool) 0.30 which gettextize: /opt/sfw/bin/gettextize /opt/sfw/bin/gettextize (GNU gettext) 0.10.35 which libtoolize: no libtoolize in ... ./tools-version.sh: libtoolize: not found
--3. environment variables--------------------------------------------------- [...]
=============================================================================
I am testing that you have the required versions of libtool, autoconf, automake, glib-gettextize and intltoolize. This test is not foolproof, so if anything goes wrong, see the file HACKING for more information...
-n checking for autoconf >= 2.52 ... yes (version 2.59) -n checking for automake >= 1.7 ... yes (version 1.8.3) -n checking for glib-gettextize >= 2.0.0 ... yes (version 2.4.2) -n checking for intltool >= 0.17 ... yes (version 0.30) ./autogen.sh: !: not found configure.in: no proper invocation of AM_INIT_AUTOMAKE was found. configure.in: You should verify that configure.in invokes AM_INIT_AUTOMAKE, configure.in: that aclocal.m4 is present in the top-level directory, configure.in: and that aclocal.m4 was recently regenerated (using aclocal). src/Makefile_insert:10: PLATFORM_WIN32 does not appear in AM_CONDITIONAL src/Makefile.am:17: `src/Makefile_insert' included from here src/Makefile_insert:15: INKJAR does not appear in AM_CONDITIONAL src/Makefile.am:17: `src/Makefile_insert' included from here src/extension/internal/Makefile_insert:16: USE_GNOME_PRINT does not appear in AM_CONDITIONAL src/Makefile.am:22: `src/extension/internal/Makefile_insert' included from here src/libnr/Makefile_insert:8: USE_MMX does not appear in AM_CONDITIONAL src/Makefile.am:25: `src/libnr/Makefile_insert' included from here src/libnrtype/Makefile_insert:8: USE_XFT does not appear in AM_CONDITIONAL src/Makefile.am:26: `src/libnrtype/Makefile_insert' included from here src/libnrtype/Makefile_insert:14: PLATFORM_WIN32 does not appear in AM_CONDITIONAL src/Makefile.am:26: `src/libnrtype/Makefile_insert' included from here src/Makefile.am: Assembler source seen but `CCAS' is undefined src/Makefile.am: src/Makefile.am: The usual way to define `CCAS' is to add `AM_PROG_AS' src/Makefile.am: to `configure.in' and run `aclocal' and `autoconf' again. src/Makefile.am: Assembler source seen but `CCASFLAGS' is undefined src/Makefile.am: src/Makefile.am: The usual way to define `CCASFLAGS' is to add `AM_PROG_AS' src/Makefile.am: to `configure.in' and run `aclocal' and `autoconf' again. /home/marquardt/Tools//share/automake-1.8/am/depend2.am: am__fastdepCXX does not appear in AM_CONDITIONAL /home/marquardt/Tools//share/automake-1.8/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL configure.in:7: error: possibly undefined macro: AM_INIT_AUTOMAKE If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.in:17: error: possibly undefined macro: AM_PROG_CC_STDC configure.in:18: error: possibly undefined macro: AM_PROG_AS configure.in:26: error: possibly undefined macro: AC_PROG_LIBTOOL configure.in:59: error: possibly undefined macro: AM_GLIB_GNU_GETTEXT configure.in:94: error: possibly undefined macro: AM_CONDITIONAL ./autogen.sh: libtoolize: not found Copying file po/Makefile.in.in
Please add the files codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4 progtest.m4 from the /home/marquardt/Tools//share/aclocal directory to your autoconf macro directory or directly to your aclocal.m4 file. You will also need config.guess and config.sub, which you can get from ftp://ftp.gnu.org/pub/gnu/config/.
$ ./configure --prefix=/home/marquardt/Tools/ --includedir=/home/marquardt/Tools/include CPPFLAGS=-I/home/marquardt/Tools/include checking build system type... sparc-sun-solaris2.8 checking host system type... sparc-sun-solaris2.8 ./configure: AM_INIT_AUTOMAKE: command not found checking for g++... g++ checking for C++ compiler default output file name... a.out checking whether the C++ compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for library containing strerror... none required checking whether we are using the GNU C++ compiler... (cached) yes checking whether g++ accepts -g... (cached) yes ./configure: AM_PROG_CC_STDC: command not found ./configure: AM_PROG_AS: command not found checking how to run the C++ preprocessor... g++ -E checking for egrep... egrep checking for ANSI C header files... yes checking for ranlib... ranlib ./configure: AC_PROG_LIBTOOL: command not found checking GNU compiler version... 3.3.2 ./configure: AM_GLIB_GNU_GETTEXT: command not found checking for pkg-config... /home/marquardt/Tools/bin//pkg-config checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... no checking for unistd.h... yes checking for png_read_info in -lpng... yes checking png.h usability... yes checking png.h presence... yes checking for png.h... yes checking for freetype-config... /home/marquardt/Tools/bin//freetype-config checking for Win32 platform... no ./configure: line 3381: syntax error near unexpected token `AM_CONDITIONAL(PLATFORM_WIN32,' ./configure: line 3381: `AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = "yes")'