Greetings, all.—Rainer
[Scribus] Solaris 10 - getting really close
Tue Mar 8 06:34:40 2005
rheilke at dragonhearth.com (Rainer Heilke)

Cool.

I have Solaris 10 installed now, and have managed to cobble together enough of my "required" apps that I can work on it while I try to get this stuff working. I’m actually unable to get the `gcc’ from sunfreeware.com to work - I can’t find critical headers like ’new’ in the package. However, I just got Qt built with the compiler in /usr/sfw/bin.

I was able to fix that problem you were having by changing ’CS’ to ’CSx’ wherever it’s used in src/xml/qxml.cpp . It turns out that somewhere, somebody has done a:

#define CS 15

resulting in preprocessed output like this:

bool QXmlSimpleReader::parseChoiceSeq() {    const signed char Init = 0;    const signed char Ws1 = 1;    const signed char 15 = 2; <-- oops!    const signed char Ws2 = 3;    const signed char More = 4;

instead of:

bool QXmlSimpleReader::parseChoiceSeq() {    const signed char Init = 0;    const signed char Ws1 = 1;    const signed char CS = 2;    const signed char Ws2 = 3;    const signed char More = 4;

and causing that bizarre error message. I expect a ’#undef CS’ for that file might be safe too, but figured changing the variable name would be safer since it’s just a local variable.

Anyway, now that that’s working, on to trying to make Scribus build.—Craig

Cool. Sorry about not responding last night--ran later than planned.

The headers issue sounds like the mkheaders thing. Do:

find /usr/local -name mkhead\* -print

and, as root, run the command whereever it finds it.

I’ll try to follow up more tonight. Running late for work...—Rainer

Greetings.

Just curious--any word on the Scribus compile?

I haven’t had a great deal of time to poke at it, but since it doesn’t seem to be the fonts, not sure what I can do anyway.

Let me know if I was supposed to do something, or pass on any info.—Rainer

It worked fine here; I posted a while ago about what went on and how I got it working.

I had no crash problems ... I maybe a library conflict or g++ ABI conflict or something on your system?—Craig

I misunderstood--I thought you were talking about getting Qt to compile without problems (that was an issue for me for a while) because of the mkheaders discussion.

Hmm. I hope it isn’t a SPARC-x86 issue. I’ll have to look closer into my library setup. Maybe I’ll install the newest Express, rebuild from scratch, and see if I can isolate where it goes wrong.

Thanks again; I guess I’ll just keep plugging away at it.—Rainer

Yep, I then posted later to say I had Scribus going fine. That message had message-ID <1110306362.534.30.camel@bucket.localnet> if you need to look it up.—Craig

 
 
 

I’m working on Solaris 10/x86 . I assumed you were too, but perhaps that was incorrect.

As I noted in the message I posted earlier, I did _not_ use the updated gcc from sunfreeware.com as I had issues with it missing critical headers (and mkheaders didn’t appear to fix that). It works fine with the builtin compiler once you fix those two conflicts between variable names and C preprocessor defines that I mentioned.—Craig

 
 
 
 
 
 

I tried mkheaders as per the sunfreeware.com instructions, to no avail. The missing headers are things like `new’ (not to be confused with `new.h’, which is present).

It doesn’t matter much, as I have it building happily with the gcc that came preinstalled.—Craig

Don’t worry ... there doesn’t appear to be anything wrong with the fonts after all. At least, nothing that’s causing my build (1.3cvs btw) to crash. It’s hard to say what the problem might be - extra fonts I don’t have, library / compiler incompatibilities between the gzillion different versions of compilers and libs that you seem to end up with on Solaris 10, or something else entirely.

In terms of what I needed to install, I do have the sunfreeware.com gcc installed, I’m just using the /usr/sfw/bin/g++ one since it seems less problematic here. I have a lot of other sunfreeware.com packages installed too, including libjpeg, libtiff, libpng, libxml, fontconfig, freetype, perl, autoconf, automake, m4, and others.

I’ve already detailed how to get Qt to build without needing gcc from sunfreeware.com . It looks like Scribus builds fine with the same compiler, too (and needs a similar workaround for weird macros).

I did have to make a few tweaks, including a workaround in sciten.h where there was a macro defined for `DS’ that was causing issues ; I #indef’d it in that file and that took care of that. I need to track down where those defines are coming from.

For some reason, admin/install-sh was lacking execute permissions, so I had to `chmod a+x’ that.

The only other Scribus compile issue I ran into is that, at least on my system, /usr/sfw/lib/libstdc++.la is an empty *file*, resulting in an error like this from libtool:

libtool: link: `/usr/sfw/lib/libstdc++.la’ is not a valid libtool archive

I just copied /usr/local/lib/libstdc++.la from the sunfreeware.com compiler to /usr/sfw/lib/libstdc++.la. Yes, this is horrible and scary ... but appears to have worked. I’d like to find out what was going on properly later.

With that done it all built and installed fine. I did have to set a sane UI font using qtconfig to solve a font issue (unrelated to yours I suspect) when creating new documents, but once that was done it all worked fine.

It’s still horribly ugly - I don’t have RENDER support in Qt yet - and there are other issues, but it seems to work ok. I’ll document the install process a bit better on the wiki later.—Craig