Nekochan Net

Official Chat Channel: #nekochan // irc.nekochan.net
It is currently Fri Nov 28, 2014 4:02 am

All times are UTC - 8 hours [ DST ]


Forum rules


Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.



Post new topic Reply to topic  [ 80 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject: Maxwell
Unread postPosted: Sat Apr 27, 2013 5:45 am 
Offline

Joined: Tue Feb 24, 2004 5:10 pm
Posts: 9797
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

_________________
there are ten million stories in the naked city ...


Top
 Profile  
 
 Post subject: Re: Maxwell
Unread postPosted: Sat Apr 27, 2013 1:29 pm 
Offline
User avatar

Joined: Mon Apr 14, 2003 4:34 am
Posts: 5295
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


Top
 Profile  
 
 Post subject: Re: Maxwell
Unread postPosted: Sat Apr 27, 2013 5:06 pm 
Offline
User avatar

Joined: Mon Jul 21, 2003 6:19 am
Posts: 754
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


Top
 Profile  
 
 Post subject: Re: Maxwell
Unread postPosted: Sat Apr 27, 2013 5:58 pm 
Offline
User avatar

Joined: Mon Apr 14, 2003 4:34 am
Posts: 5295
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


Top
 Profile  
 
 Post subject: Re: Maxwell
Unread postPosted: Sat Apr 27, 2013 6:23 pm 
Offline

Joined: Tue Feb 24, 2004 5:10 pm
Posts: 9797
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 ...

_________________
there are ten million stories in the naked city ...


Top
 Profile  
 
 Post subject: Re: Maxwell
Unread postPosted: Sat Apr 27, 2013 6:40 pm 
Offline
User avatar

Joined: Mon Apr 14, 2003 4:34 am
Posts: 5295
sure go on, would be a nice addition for sure :D

_________________
r-a-c.de


Top
 Profile  
 
 Post subject: Re: Maxwell
Unread postPosted: Sat Apr 27, 2013 6:53 pm 
Offline
User avatar

Joined: Sun Mar 18, 2007 3:25 pm
Posts: 1963
Location: Minneapolis, Minnesota USA
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...


Top
 Profile  
 
 Post subject: Re: Maxwell
Unread postPosted: Sat Apr 27, 2013 8:31 pm 
Offline

Joined: Tue Feb 24, 2004 5:10 pm
Posts: 9797
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 !

_________________
there are ten million stories in the naked city ...


Top
 Profile  
 
 Post subject: Re: Maxwell
Unread postPosted: Sat Apr 27, 2013 10:51 pm 
Offline
User avatar

Joined: Sun Mar 18, 2007 3:25 pm
Posts: 1963
Location: Minneapolis, Minnesota USA
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:
Temporarily lost at sea...
Plan:
World domination! Or something...


Top
 Profile  
 
 Post subject: Re: Maxwell
Unread postPosted: Sun Apr 28, 2013 1:41 am 
Offline

Joined: Tue Feb 24, 2004 5:10 pm
Posts: 9797
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);
                              ^

_________________
there are ten million stories in the naked city ...


Top
 Profile  
 
 Post subject: Re: Maxwell
Unread postPosted: Sun Apr 28, 2013 1:01 pm 
Offline
User avatar

Joined: Sun Mar 18, 2007 3:25 pm
Posts: 1963
Location: Minneapolis, Minnesota USA
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...


Top
 Profile  
 
 Post subject: Re: Maxwell
Unread postPosted: Sun Apr 28, 2013 3:09 pm 
Offline

Joined: Mon Sep 12, 2011 2:28 pm
Posts: 657
Location: Boston
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:


Top
 Profile  
 
 Post subject: Re: Maxwell
Unread postPosted: Sun Apr 28, 2013 3:54 pm 
Offline
User avatar

Joined: Sun Mar 18, 2007 3:25 pm
Posts: 1963
Location: Minneapolis, Minnesota USA
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...


Top
 Profile  
 
 Post subject: Re: Maxwell
Unread postPosted: Sun Apr 28, 2013 9:13 pm 
Offline

Joined: Tue Feb 24, 2004 5:10 pm
Posts: 9797
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 ?

_________________
there are ten million stories in the naked city ...


Top
 Profile  
 
 Post subject: Re: Maxwell
Unread postPosted: Sun Apr 28, 2013 9:38 pm 
Offline
User avatar

Joined: Mon Apr 14, 2003 4:34 am
Posts: 5295
how about a dummy script doing nothing named ranlib?

_________________
r-a-c.de


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 80 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group