Greetings, all.—Rainer
[Scribus] Solaris 10 - getting really close
Tue Mar 8 18:20:48 2005
craig at postnewspapers.com.au (Craig Ringer)

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

[Scribus] Solaris 10 - getting really close
Wed Mar 9 15:15:56 2005
rheilke at dragonhearth.com (Rainer Heilke)

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’ve been following this thread with interest. Often, font issues and app crashes center around RENDER in Solaris - especially with opensource software. Does your installation properely display fonts in other apps without crashing? If not, you have a problem with RENDER.

Best

Marvin Dickens—marvindickens@bellsouth.net

Yes and No. I don’t have any problems with fonts, but Scribus is the only program I’ve got (at least, that I can think of) that uses Qt. I assume this is where the RENDER issue comes in to play?—Rainer

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 found the message you refer to. I think I had read it, but didn’t fully grasp it. I’ll try parsing it again. The references to the companion CD are clear, but I’ll have to hunt down the sciten.h, etc.

I think reinstalling the OS from scratch may be my best bet. I wish I could remember what it was that caused the problems that made me go back to the SunFreeWare.com GCC, etc. There was something that wouldn’t compile... I’m sure it will come back to me.

Thanks again, Rainer—Rainer

I thought it was Qt you were having problems with, and it was a problem with a macro that conflicted with a variable name used in one of the Qt functions, causing a really weird error.

I’ve tracked that one down, and all you need to do is hack the Qt source file in question and #undef the macro. Works fine here - see <1110302571.534.11.camel@bucket.localnet> .

A similar fix was needed in the Scribus sources, in sciten.h, but otherwise things worked ok.

I should note that Qt built without RENDER support. I’d like to look at that some time, since without RENDER it’s pretty ugly, but ... time, time, time.—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