Maxwell

IRIX/Nekoware development, porting and related topics.
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
hamei
Posts: 9991
Joined: Tue Feb 24, 2004 5:10 pm
Location: over the rainbow

Maxwell

Unread postby hamei » Sat Apr 27, 2013 5:45 am

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: Select all

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
Hurry home early, hurry on home ! Boom-boom Mancini's fighting Bobby Chacon ...

User avatar
foetz
Posts: 5517
Joined: Mon Apr 14, 2003 4:34 am
Contact:

Re: Maxwell

Unread postby foetz » Sat Apr 27, 2013 1:29 pm

try:

Code: Select all

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

User avatar
canavan
Posts: 754
Joined: Mon Jul 21, 2003 6:19 am

Re: Maxwell

Unread postby canavan » Sat Apr 27, 2013 5:06 pm

You probably already found out that setting the default value again, as in

Code: Select all

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

User avatar
foetz
Posts: 5517
Joined: Mon Apr 14, 2003 4:34 am
Contact:

Re: Maxwell

Unread postby foetz » Sat Apr 27, 2013 5:58 pm

from http://www.gnu.org/software/gnulib/manu ... emmem.html
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

hamei
Posts: 9991
Joined: Tue Feb 24, 2004 5:10 pm
Location: over the rainbow

Re: Maxwell

Unread postby hamei » Sat Apr 27, 2013 6:23 pm

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 ...
Hurry home early, hurry on home ! Boom-boom Mancini's fighting Bobby Chacon ...

User avatar
foetz
Posts: 5517
Joined: Mon Apr 14, 2003 4:34 am
Contact:

Re: Maxwell

Unread postby foetz » Sat Apr 27, 2013 6:40 pm

sure go on, would be a nice addition for sure :D
r-a-c.de

User avatar
vishnu
Posts: 2138
Joined: Sun Mar 18, 2007 3:25 pm
Location: Minneapolis, Minnesota USA

Re: Maxwell

Unread postby vishnu » Sat Apr 27, 2013 6:53 pm

Where'd you get the source code? Their sourceforge page says "this project has no files" :shock:
Project:
Temporarily lost at sea...
Plan:
World domination! Or something...

hamei
Posts: 9991
Joined: Tue Feb 24, 2004 5:10 pm
Location: over the rainbow

Re: Maxwell

Unread postby hamei » Sat Apr 27, 2013 8:31 pm

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 !
Hurry home early, hurry on home ! Boom-boom Mancini's fighting Bobby Chacon ...

User avatar
vishnu
Posts: 2138
Joined: Sun Mar 18, 2007 3:25 pm
Location: Minneapolis, Minnesota USA

Re: Maxwell

Unread postby vishnu » Sat Apr 27, 2013 10:51 pm

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: Select all

/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:
Temporarily lost at sea...
Plan:
World domination! Or something...

hamei
Posts: 9991
Joined: Tue Feb 24, 2004 5:10 pm
Location: over the rainbow

Re: Maxwell

Unread postby hamei » Sun Apr 28, 2013 1:41 am

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

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

Code: Select all

/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: Select all

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: Select all

/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: Select all

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);
                              ^
Hurry home early, hurry on home ! Boom-boom Mancini's fighting Bobby Chacon ...

User avatar
vishnu
Posts: 2138
Joined: Sun Mar 18, 2007 3:25 pm
Location: Minneapolis, Minnesota USA

Re: Maxwell

Unread postby vishnu » Sun Apr 28, 2013 1:01 pm

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:
Temporarily lost at sea...
Plan:
World domination! Or something...

robespierre
Posts: 700
Joined: Mon Sep 12, 2011 2:28 pm
Location: Boston

Re: Maxwell

Unread postby robespierre » Sun Apr 28, 2013 3:09 pm

it is not needed; the symbol index is always updated.

Code: Select all

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:

User avatar
vishnu
Posts: 2138
Joined: Sun Mar 18, 2007 3:25 pm
Location: Minneapolis, Minnesota USA

Re: Maxwell

Unread postby vishnu » Sun Apr 28, 2013 3:54 pm

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:
Temporarily lost at sea...
Plan:
World domination! Or something...

hamei
Posts: 9991
Joined: Tue Feb 24, 2004 5:10 pm
Location: over the rainbow

Re: Maxwell

Unread postby hamei » Sun Apr 28, 2013 9:13 pm

robespierre wrote:it is not needed; the symbol index is always updated.

Code: Select all

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: Select all

$(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 ?
Hurry home early, hurry on home ! Boom-boom Mancini's fighting Bobby Chacon ...

User avatar
foetz
Posts: 5517
Joined: Mon Apr 14, 2003 4:34 am
Contact:

Re: Maxwell

Unread postby foetz » Sun Apr 28, 2013 9:38 pm

how about a dummy script doing nothing named ranlib?
r-a-c.de


Return to “SGI: Development”

Who is online

Users browsing this forum: No registered users and 2 guests