[Scribus] Error compiling sxwim on Solaris 10
Rainer Heilke
rheilke
Fri Jan 28 07:24:25 CET 2005
Greetings, all.
I've been using Scribus (quite enjoying it, well done!) on a Java
Desktop System (essentially SUSE 9) for half a year now. I slurp down
the CVS repository on a somewhat regular basis, and it compiles
perfectly. I don't even have to do the Python 2.4 work-around anymore. :-)
I've been wanting to get it working on my main desktop for some time,
though. This desktop runs Solaris 10 (SPARC) build 72. Over time, I've
gotten various pieces together (it hasn't been too high a priority), and
the last success was finally getting GCC to properly build Qt with
thread support (easy once I saw the mkheaders note for GCC). configure
was (finally) happy. The last two times I slurped down the CVS changes
to the JDS system, it built fine there. I tried tar'ing up the tree,
copying it to the Solaris system, and building there, but it keeps
failing. The make -f Makefile.cvs runs fine, as does ./configure.
Running the main make, though, is failing on the sxwim tree with:
Making all in sxwim
make[5]: Entering directory
`/export/home/rheilke/Scribus/scribus/plugins/gettext/sxwim'
make[6]: Entering directory
`/export/home/rheilke/Scribus/scribus/plugins/gettext/sxwim'
if /bin/bash ../../../../libtool --silent --mode=compile --tag=CXX g++
-DHAVE_CONFIG_H -I. -I. -I../../../.. -I/usr/sfw/include/freetype2
-I/usr/sfw/include -I/usr/include/libxml2 -I/usr/local/qt/include
-I../../../../scribus -DDOCDIR=\"/usr/local/share/scribus/doc/\"
-DICONDIR=\"/usr/local/share/scribus/icons/\"
-DTEMPLATEDIR=\"/usr/local/share/scribus/templates/\"
-DLIBDIR=\"/usr/local/lib/scribus/\"
-DPLUGINDIR=\"/usr/local/lib/scribus/plugins/\" -DQT_THREAD_SUPPORT
-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4
-Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith
-Wwrite-strings -O2 -fno-exceptions -fno-check-new -fno-common -MT
sxwim.lo -MD -MP -MF ".deps/sxwim.Tpo" -c -o sxwim.lo sxwim.cpp; \
then mv -f ".deps/sxwim.Tpo" ".deps/sxwim.Plo"; else rm -f
".deps/sxwim.Tpo"; exit 1; fi
In file included from /usr/sfw/include/freetype2/freetype/freetype.h:51,
from ../../../../scribus/scribusdoc.h:45,
from ../../../../scribus/scribusview.h:34,
from ../../../../scribus/scribus.h:51,
from sxwim.h:25,
from sxwim.cpp:21:
/usr/sfw/include/freetype2/freetype/config/ftconfig.h:65:1: warning:
"SIZEOF_LONG" redefined
In file included from ../../../../scribus/scfonts.h:11,
from ../../../../scribus/scribusdoc.h:36,
from ../../../../scribus/scribusview.h:34,
from ../../../../scribus/scribus.h:51,
from sxwim.h:25,
from sxwim.cpp:21:
../../../../config.h:140:1: warning: this is the location of the
previous definition
In file included from sxwim.h:27,
from sxwim.cpp:21:
../../../../config.h:140:1: warning: "SIZEOF_LONG" redefined
In file included from /usr/sfw/include/freetype2/freetype/freetype.h:51,
from ../../../../scribus/scribusdoc.h:45,
from ../../../../scribus/scribusview.h:34,
from ../../../../scribus/scribus.h:51,
from sxwim.h:25,
from sxwim.cpp:21:
/usr/sfw/include/freetype2/freetype/config/ftconfig.h:65:1: warning:
this is the location of the previous definition
sxwim.cpp: In constructor `SxwIm::SxwIm(QString, gtWriter*, bool)':
sxwim.cpp:80: error: parse error before numeric constant
sxwim.cpp:81: error: base operand of `->' is not a pointer
sxwim.cpp:82: error: base operand of `->' is not a pointer
sxwim.cpp:83: error: type `int' argument given to `delete', expected pointer
make[6]: *** [sxwim.lo] Error 1
make[6]: Leaving directory
`/export/home/rheilke/Scribus/scribus/plugins/gettext/sxwim'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory
`/export/home/rheilke/Scribus/scribus/plugins/gettext/sxwim'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
`/export/home/rheilke/Scribus/scribus/plugins/gettext'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/export/home/rheilke/Scribus/scribus/plugins'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/export/home/rheilke/Scribus/scribus'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export/home/rheilke/Scribus'
make: *** [all] Error 2
Is this an error in the FreeType I have installed, or is the error
actually in the sxwim.cpp file? The previous pieces seem to get past the
freetype error just fine, so I'm thinking it may be something the SPARC
GCC doesn't like about sxwim.cpp. This is using GNU make.
Any pointers would be greatly appreciated. It's late at night here, and
I won't be able to do much until tomorrow evening at the earliest, so no
rush. Again, it isn't a high priority, but I would like to get it
working at some point, so I can make the JDS system just an emergency
backup.
Thanks, folks. :-)
Rainer
More information about the scribus
mailing list