"WITH-COMPILATION-UNIT is being redefined"



Files share/linearalgebra/load-linearalgebra-lisp-files.lisp and 
share/sym/load-sym-lisp-files.lisp both contain

#+gcl (defmacro with-compilation-unit (a &rest b) `(progn , at b))

One possible work around is to replace that with

#+gcl (unless (macro-function 'with-compilation-unit)
            (defmacro with-compilation-unit (a &rest b) `(progn , at b)))

Thoughts?

On 28/09/2013 11:06 AM, Steve Haflich wrote:
> common-lisp:with-compilation-unit is a standard macro in ANSI Common 
> Lisp, and redefining it has "undefined consequences" which in this 
> case seems to be a warning rather than crashing.
>
> Probably what's happening is that w-c-u was missing from some old CL 
> implementations and something somewhere in Maxima provided a 
> definition, conditionalized for those platforms.  Perhaps that 
> implementation has provided w-c-u since then.
>
> Whoever wants to fix this will want to know whether this is a prebuilt 
> Maxima you downloaded from somewhere, or of you buit it yourself, 
> which Lisp implementation (and which version) you used.
>
> If you can set the Lisp variable *break-on-signals* to warn and then 
> repeat generating the warning, a stack backtrace at the break might 
> also be a big help in localizing.
>
>
>
> On Fri, Sep 27, 2013 at 2:58 PM, Jean-Claude ARBAUT 
> <jeanclaudearbaut at orange.fr <mailto:jeanclaudearbaut at orange.fr>> wrote:
>
>     Hello all,
>
>     I have just installed Maxima 5.31.1 on Windows, and I get this
>     warning:
>
>     a:matrix([1,3],[2,5])$
>     invert(a);
>
>     Warning:
>     WITH-COMPILATION-UNIT is being redefined.
>
>     It looks rather benign, but I thought it may be useful to notify
>     it here.
>
>     Jean-Claude Arbaut
>
>
>     _______________________________________________
>     Maxima mailing list
>     Maxima at math.utexas.edu <mailto:Maxima at math.utexas.edu>
>     http://www.math.utexas.edu/mailman/listinfo/maxima
>
>
>
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima