DIFF doesn't work



on 11/17/03 2:46 PM, James Amundson at amundson@users.sourceforge.net wrote:

> If you go through the archives, you will find a list of files that can
> be patched to avoid the problem.
> 
> I hope I have a simpler workaround. Unfortunately, I haven't had a
> chance to test it. I would appreciate hearing if it works for you:
> 
> ----------------------------------------------------------
> Add the following function to the file
> /usr/local/share/maxima/5.9.0/share/maxima-init.lisp:
> 
> (defun maclisp-typep (x &optional type)
> (format t "doh!~A")
> (cond (type
>        (lisp:let ((pred (get type 'ml-typep)))
>          (cond (pred
>                 (funcall pred x))
>                (t (typep x type)))))
>       (t
>        (typecase x
>          (cl:cons 'list)
>          (cl:fixnum 'fixnum)
>          (cl:integer 'bignum)
>          (cl:float 'flonum)
>          (cl:number 'number)
>          (cl:array 'array)
>          (cl:hash-table 'hash-table)
>          (t
>           (type-of x))))))
> 
> ----------------------------------------------------------
> 
> Try your test above. If that works, try running the test suite again. If
> either of those step fails, you can either check out the current cvs
> version of Maxima, or look through the mailing list archives for the
> list of files to patch. (I would suggest the former.)
> 

Well, I tried Jim's quick fix (above) with no success. Then I searched the
maxima mail list archives and found the thread "maxima breaks with CVS
clisp" that contains the necessary lisp patch to commac.mac. This corrected
the problem. Reading the whole thread paid off because there is a patch to
the patch later. After rerunning "make" and "make install," running "make
check" seemed to go correctly, saying that it expected and got 4 errors,
although I couldn't find them in the log file. Thanks for all the help. Now
on to get xmaxima working.

Joe Koski

> Either way, I would appreciate the results of the simple fix above.
> 
> --Jim
> 
>