SGI: Development

Maxwell - Page 1

Moving right along here, thought I'd try something way over my head. A Motif word processor might be nice to have, he says ...
Code:
cc-1281 cc: ERROR File = mx_string.C, Line = 167
There is a redefinition of a default argument.

bool mx_str_find(char *haystack, char *needle, int &start, bool match_case = TRUE)
^

This thing is so old, is there a directive "CC=c79" ? :D

_________________
waiting for flight 1203 ...
try:
Code:
bool mx_str_find(char *haystack, char *needle, int &start, bool match_case)


then check for the function calls and make sure you always specify match_case because now we don't have the default to TRUE anymore

_________________
r-a-c.de
You probably already found out that setting the default value again, as in
Code:
bool match_case = TRUE
is the problem. just remove the = TRUE, and you'll be able to continue to the next error, which is the simple fact that memem() doesn't exist on IRIX, you'll have to provide a replacement, e.g. from gnulib, just as we've been doing for getopt_long() for ages.
http://www.gnu.org/software/gnulib/manu ... emmem.html
from http://www.gnu.org/software/gnulib/manu ... emmem.html
Quote:
This function is missing on some platforms: Mac OS X 10.5, FreeBSD 5.2.1, OpenBSD 4.0, Minix 3.1.8, AIX 4.3.2, HP-UX 11, IRIX 6.5, OSF/1 5.1, Solaris 10, mingw, MSVC 9, Interix 3.5, BeOS.


hehe they might rather list where it's not missing :P
why do people use stuff that's not available anywhere? :P

_________________
r-a-c.de
foetz wrote:
why do people use stuff that's not available anywhere? :P

This thing is really old. I think it uses a dinosaur for an icon :D

It's over my head, too, but would be nice to have (maybe) so I'm willing to plug away if y'all are willing to put up with stupid questions ...

_________________
waiting for flight 1203 ...
sure go on, would be a nice addition for sure :D

_________________
r-a-c.de
Where'd you get the source code? Their sourceforge page says "this project has no files" :shock:

_________________
Project:
Movin' on up, toooo the east side
Plan:
World domination! Or something...
vishnu wrote:
Where'd you get the source code? Their sourceforge page says "this project has no files" :shock:

Two cows has it :

http://www.tucows.com/preview/9775

feel free to dig right in !

_________________
waiting for flight 1203 ...
And that's the same project as this? Link: http://maxwellwp.sourceforge.net/

EDIT: Nevermind, asked and answered; it is. This is some serious abandonware, most of the files haven't been touched in 11 years. Anyway, you can dl a more recent version than the one at two cows here: http://maxwellwp.cvs.sourceforge.net/viewvc/maxwellwp/maxwellwp/maxwellwp/?view=tar

At least it's got autoconf and doesn't require setting arcane environment variables prior to running make. But unfortunately the bozos didn't generate the configure script or the makefiles, so you need to run autoreconf at the top of the source tree yourself. So, I just did that and ran make and oy is it broken! :shock:

Code:
/usr/people/vishnu/src/dls/maxwellwp/shared/util/mx_language.C:42:2: fatal error: opening dependency file /usr/people/vishn/src/dls/maxwellwp/tmp/mx_language.d: No such file or directory
compilation terminated.

_________________
Project:
Movin' on up, toooo the east side
Plan:
World domination! Or something...
vishnu wrote:
At least it's got autoconf and doesn't require setting arcane environment variables prior to running make. But unfortunately the bozos didn't generate the configure script or the makefiles, so you need to run autoreconf at the top of the source tree yourself.

Don't snivel, it could have wanted xmkmf :D

Quote:
So, I just did that and ran make and oy is it broken! :shock:

Code:
/usr/people/vishnu/src/dls/maxwellwp/shared/util/mx_language.C:42:2: fatal error: opening dependency file /usr/people/vishn/src/dls/maxwellwp/tmp/mx_language.d: No such file or directory
compilation terminated.

Wait until you get to the fun stuff ! All kinds of weirdass permissions problems and a few ranlib errors and a script or two that isn't executable, really good !

But I got way farther with your version than the thing I had, gracias. It actually went kind of okay more or less until here :
Code:
cc-1294 CC: ERROR File = /usr/people/dev/maxwellwp/include/collection.h, Line = 55
The indicated pure specifier is poorly formed.

virtual node *getHead() = NULL ;
^

cc-1294 CC: ERROR File = /usr/people/dev/maxwellwp/include/collection.h, Line = 56
The indicated pure specifier is poorly formed.

virtual node *getTail() = NULL ;
^


edit : okay, seem to have moved past that by changing the NULL to a 0 ?
bjarney stookstup wrote:
Rather than risking delay and incurring the certain fights over pure, I used the tradition C and C++ convention of using 0 to represent "not there."

?? http://stackoverflow.com/questions/4174 ... nition-why

Now we have
Code:
/usr/people/dev/maxwellwp/build/movedep /usr/people/dev/maxwellwp/collection/node/node.d /usr/people/dev/maxwellwp/lib/libmx_collection.a
ar rv /usr/people/dev/maxwellwp/lib/libmx_collection.a /usr/people/dev/maxwellwp/tmp/node.o
a - /usr/people/dev/maxwellwp/tmp/node.o
rm -f /usr/people/dev/maxwellwp/tmp/node.o
/usr/people/dev/maxwellwp/lib/libmx_collection.a
/usr/people/dev/maxwellwp/lib/libmx_collection.a: syntax error at line 2 : `newline or ;' unexpected
gmake[2]: *** [/usr/people/dev/maxwellwp/lib/libmx_collection.a] Error 2


Now, the oddest thing here is maybe not the error but the fact that this happened twice before with other libraries but just re-running gmake over it beat the process into submission.

Even if this thing compiles, I bet in the end it crashes like a mofo all the time :D


edit 2 : Okay, I'm blind. But I can count to two ... wth ?

Code:
cc-1018 cc: ERROR File = Main/main.c, Line = 885
An unmatched left parentheses "(" appears in an expression.

GlobResources = NEW(c_Resource)(MainInterface->w_Hidden);
^

cc-1018 cc: ERROR File = Main/main.c, Line = 886
An unmatched left parentheses "(" appears in an expression.

GlobColormap = (c_Colormap *)NEW(c_Colormap)(display, (Widget)0,
^

cc-1018 cc: ERROR File = Main/main.c, Line = 888
An unmatched left parentheses "(" appears in an expression.

GlobCursor = (c_GCursor *)NEW(c_GCursor)(display);
^

_________________
waiting for flight 1203 ...
Looking at CREDITS I see that Danny Backx worked on it after it's GPL release, he's one of the huger names in the Motif world. Given how far along this project obviously was I can't imagine why everyone abandoned it.

Let's see, the stuff I've had to do so far, copy the file tmp/mx_language.d to the directory shared/util, create the lib directory, make the script build/movedep executable, then it started to compile, then I had to copy the file tmp/mx_stdio.d to shared/util, then I had to copy the file tmp/mx_string.d to shared/util, so I copied all the files in tmp to shared/util, then it can't create static libs because IRIX doens't have ranlib? I know I should remember this but what does IRIX use to do that instead of ranlib? In my defense my days of full time development on the IRIX platform ended about a decade ago... :?

_________________
Project:
Movin' on up, toooo the east side
Plan:
World domination! Or something...
it is not needed; the symbol index is always updated.

Code:
There is no ranlib program in IRIX.  Option -s creates the archive-symbol-table ld uses.

Options -r, -d, -m, and -q imply option -s.  Since option -s creates an archive-symbol-table, creating an object library by executing ar
once per object file will be very slow.  Creating an object library with a single execution of ar is much faster.

_________________
:PI: :O2: :Indigo2IMP: :Indigo2IMP:
You'd think I'd have been able to remember that! :shock:

Anyway if I'd read the thread a little more carefully I'd have seen hamei already had a fix for the shared lib issue, now I've come as far as the "poorly formed" errors...

_________________
Project:
Movin' on up, toooo the east side
Plan:
World domination! Or something...
robespierre wrote:
it is not needed; the symbol index is always updated.

Code:
There is no ranlib program in IRIX.  Option -s creates the archive-symbol-table ld uses.

Options -r, -d, -m, and -q imply option -s.  Since option -s creates an archive-symbol-table, creating an object library by executing ar
once per object file will be very slow.  Creating an object library with a single execution of ar is much faster.

This command in the Makefile appears to be a problem though ?
Code:
$(LIBRARY): $(LIBRARY_OBJECTS)
ranlib $(LIBRARY)

If I put an empty ranlib statement in the environment (per freeware compiling hints) or the Makefile, then make complains that it can't find ranlib. Removing this directive from the Makefile does not work either. Is there something one could replace it with that would satisfy the make process ?

_________________
waiting for flight 1203 ...
how about a dummy script doing nothing named ranlib?

_________________
r-a-c.de
vishnu wrote:
Did you guys get past the const breakage in mx_dg_level.C?

I don't know if it actually fixes the problem, but yeah. Look toward the bottom of page two of this thread, Shade's suggestion does the job.

This will happen to you several more times. I just used the same idea to repair the broken dykes and it compiled. Eventually it gets to where it stops because there's a missing makefile. I saw this in the original ./configure process but figured "fix that when we get to it." So now I'm to-it but it still isn't fixed ...

Did you have a problem with a missing config.h ? If so, what did you do about it ?

_________________
waiting for flight 1203 ...
No I'm not that far yet I'm still lagging a bit behind your pace. :cry:

Very unusual architecture to this program, are you having the same problem as me with the Makefiles continually removing the dot-d files from the directories where you have to manually distribute them from Maxwell's tmp directory? Pretty annoying. Also, it's compiling everything so far into static libs which I assume will link into an eventual binary, but if it's compiling the individual source files into object files it's doing it very surreptitiously because I have yet to see one! :shock:

_________________
Project:
Movin' on up, toooo the east side
Plan:
World domination! Or something...
Oh this just can not be good:

Code:
### Compiler Error during Scope Setup phase:
### value_field_nd 8916: not implemented
CC INTERNAL ERROR:  /usr/lib32/cmplrs/fecc returned non-zero status 1

_________________
Project:
Movin' on up, toooo the east side
Plan:
World domination! Or something...
vishnu wrote:
but if it's compiling the individual source files into object files it's doing it very surreptitiously because I have yet to see one! :shock:

They're in a hidden directory in each source subdirectory. This is normal for an autotools-generated makefile.

hamei wrote:
Code:
gmake[2]: *** No rule to make target `/usr/include/standa', needed by `/usr/people/dev/maxwellwp/lib/libmx_edit.a(mx_wp_edit.o)'.  Stop.

It looks like a dependency line in the makefile got truncated somehow. Have you set the ncargs systune variable to 262144 before running ./configure and all that? If you haven't, increase it and run "make distclean" then "./configure" etc.

hamei wrote:
So for people who do not have commercial software, Max and Ted are still maybe the best choices ...

Learn LaTeX, you will never want to use anything else :)
ShadeOfBlue wrote:
hamei wrote:
So for people who do not have commercial software, Max and Ted are still maybe the best choices ...

Learn LaTeX, you will never want to use anything else :)


(La)TeX rocks and I produce my user manuals with it, and while you can practically program every dot on the page, create chess diagrams, music scores, write books with indices, TOCs, etc... Even though I use it all the time, I think TeX is a bit of an overkill for a letter to grandma.



R.

_________________
死の神はりんごだけ食べる

開いた括弧は必ず閉じる -- あるプログラマー

:Tezro: :Tezro: :Onyx2R: :Onyx2RE: :Onyx2: :O3x04R: :O3x0: :O200: :Octane: :Octane2: :O2: :O2: :Indigo2IMP: :PI: :PI: :1600SW: :1600SW: :Indy: :Indy: :Indy: :Indy: :Indy:
:hpserv: J5600, 2 x Mac, 3 x SUN, Alpha DS20E, Alpha 800 5/550, 3 x RS/6000, Amiga 4000 VideoToaster, Amiga4000 -030, 733MHz Sam440 AmigaOS 4.1 update 1. Tandem Himalaya S-Series Nonstop S72000 ServerNet.

Sold: :Indy: :Indy: :Indy: :Indigo:

Cortex ---> http://www.facebook.com/pages/Cortex-th ... 11?sk=info
Minnie ---> http://www.facebook.com/pages/Minnie-th ... 02?sk=info
Book ----> http://pymblesoftware.com/book/
Github ---> https://github.com/pymblesoftware
Visit http://www.pymblesoftware.com
Search for "Pymble", "InstaElf", "CryWhy" or "Cricket Score Sheet" in the iPad App store or search for "Pymble" or "CryWhy" in the iPhone App store.