autoloading messages, was: Maxima 5.12.0 rc1 in cvs & SF download



Volker,

After a 'make clean', your changes fail to compile unless I am using GCL:


GNU CLISP 2.35 (2005-08-29):

;; Loading file /home/vttoth/dev/maxima/src/max_ext.lisp ...
*** - $FILE_SEARCH: symbol $FILE_SEARCH_LISP has no value


SBCL 0.9.12:
;      - Loading source file "/home/vttoth/dev/maxima/src/max_ext.lisp" 
; loading #P"/home/vttoth/dev/maxima/src/max_ext.lisp"

debugger invoked on a SIMPLE-ERROR:
  Error during processing of --eval option "(progn (load
\"../lisp-utils/defsystem.lisp\") (funcall (intern (symbol-name
:operate-on-system) :mk) \"maxima\" :compile :verbose t) (sb-ext:quit))":

  The variable $FILE_SEARCH_LISP is unbound.


CMU Common Lisp 19c (19C):
;      - Loading source file "/home/vttoth/dev/maxima/src/max_ext.lisp" 
; Loading #P"/home/vttoth/dev/maxima/src/max_ext.lisp".

; Compilation unit aborted.
;   25 warnings
;   189 notes

Error in batch processing:
Error in KERNEL::UNBOUND-SYMBOL-ERROR-HANDLER:  the variable
MAXIMA::$FILE_SEARCH_LISP is unbound.
make[1]: *** [binary-cmucl/maxima.core] Error 1



Viktor
 

-----Original Message-----
From: maxima-bounces at math.utexas.edu [mailto:maxima-bounces at math.utexas.edu]
On Behalf Of van Nek
Sent: Sunday, April 15, 2007 10:05 AM
To: Robert Dodier
Cc: Maxima at math.utexas.edu
Subject: Re: [Maxima] autoloading messages,was: Maxima 5.12.0 rc1 in cvs &
SF download

Am 13 Apr 2007 um 10:47 hat Robert Dodier geschrieben:

> > It seems that this is depending on the Lisp that Maxima uses.
> 
> Yes. GCL does not complain about redefined functions,
> Clisp and SBCL do. Dunno about other Lisps.

Hi Robert,

I just committed some changes to max_ext.lisp. 

I checked them in Windows (Maxima 5.11 with gcl) and in Suse Linux  (Maxima
5.11 with 
clisp). With gcl there are no warnings (like before), with clisp I
experienced the following 

(%i1) load("/home/volker/max_ext.fas");
(%o1) 			   /home/volker/max_ext.fas

1.
(%i2) printf(true,"Hello world!");
;; Loading file
/usr/share/maxima/5.11.0/share/contrib/stringproc/stringproc.lisp ...
;; Loaded file
/usr/share/maxima/5.11.0/share/contrib/stringproc/stringproc.lisp
Hello world!
(%o2) 				     false

All functions from stringproc were autoloaded without any messages, except
printf, which is 
a macro. It shows the load path. I didn't find a possibility of a quiet
load.

2.
(%i3) eval_string("diff(x,x);");
(%o3) 				       1

Functions from numericalio and eval_string are autoloaded without messages.

3.
Functions from linearalgebra only showed the following message

(%i4) rowswap(  matrix([1,2],[3,4]),1,2 );
WARNING: DEFUN/DEFMACRO: redefining function $COPY in
         /usr/share/maxima/5.11.0/share/linearalgebra/linalg-utilities.lisp,
         was defined in
 
/var/local/home/users/r/ro/robert_dodier/tmp/BUILD/maxima-5.11.0/src/binary-
clisp/comm2.fas
				   [ 3  4 ]
(%o4) 				   [ 	  ]
				   [ 1  2 ]

Perhaps you know where this warning comes from.

Please check how it looks like with sbcl (other Lisps). If the situation is
similar to clisp then 
please include my commit into the next release candidate. Let me know. 

I regard my commits just as workarounds. In long terms aload.lisp and
max_ext.lisp should 
have a clear design. The helper functions in aload.lisp should work for all
Lisp 
implementations.

Best Volker
_______________________________________________
Maxima mailing list
Maxima at math.utexas.edu
http://www.math.utexas.edu/mailman/listinfo/maxima