Re: How to handle these warnings?

Jean Louis <[email protected]> Fri, 20 Oct 2017 22:55:16 +0300
Newsgroups gmane.lisp.clisp.general
Message-ID <[email protected]>
On Fri, Oct 20, 2017 at 03:45:37PM -0400, Sam Steingold wrote:

> >> 2. I posted code:
> >> 
> >> >> --8<---------------cut here---------------start------------->8---
> >> >> (ext:set-global-handler
> >> >>  'clos:clos-warning
> >> >>  (lambda (c)
> >> >>    (invoke-restart (find-restart 'abort c))))
> >> >> --8<---------------cut here---------------end--------------->8---
> >> 
> >
> > I just think that problem is somewhere in loading
> > the ASDF or something like that.
> >
> > I am using following in a file, to load the
> > rcd-dev.asd which is located in the directory:
> > "/home/data1/protected/Programming/git/RCDBusiness/lib/lisp/"
> >
> > (load #P"~/lib/lisp/asdf/build/asdf.lisp")
> > (load #P"/home/data1/protected/lib/lisp/quicklisp/setup.lisp")
> 
> Is there a reason not to compile those files?
> 
> > (push "/home/data1/protected/Programming/git/RCDBusiness/lib/lisp/"
> > asdf:*central-registry*)
> 
> before this:
> 
> > (asdf:load-system "rcd-dev" :verbose nil)
> 
> you need to evaluate the set-global-handler code.
> 
> alternatively, if you are using CLISP built from HG tip, you can edit
> your asdf.lisp file and add (declare (clos:dynamically-modifiable)) to
> the defgeneric forms for perform, operation-done-p &c.
> see https://clisp.sourceforge.io/beta/impnotes/mop-clisp.html

I have tried with the set-global-handler-code,
nothing is breaking, I just see 435 warnings and
program starts.

Other examples are seen here:

WARNING: DEFUN/DEFMACRO: redefining function SYSTEM-CONFIGURATION-DIRECTORIES in
         /home/data1/protected/.cache/common-lisp/clisp-2.49.60+-unix-x64/home/data1/protected/lib/lisp/quicklisp/dists/quicklisp/software/uiop-3.2.1/backward-driver.fas,
         was defined in /home/data1/protected/lib/lisp/asdf/build/asdf.fas
WARNING: DEFUN/DEFMACRO: redefining function IN-FIRST-DIRECTORY in
         /home/data1/protected/.cache/common-lisp/clisp-2.49.60+-unix-x64/home/data1/protected/lib/lisp/quicklisp/dists/quicklisp/software/uiop-3.2.1/backward-driver.fas,
         was defined in /home/data1/protected/lib/lisp/asdf/build/asdf.fas
WARNING: DEFUN/DEFMACRO: redefining function IN-USER-CONFIGURATION-DIRECTORY in
         /home/data1/protected/.cache/common-lisp/clisp-2.49.60+-unix-x64/home/data1/protected/lib/lisp/quicklisp/dists/quicklisp/software/uiop-3.2.1/backward-driver.fas,
         was defined in /home/data1/protected/lib/lisp/asdf/build/asdf.fas
WARNING: DEFUN/DEFMACRO: redefining function IN-SYSTEM-CONFIGURATION-DIRECTORY in
         /home/data1/protected/.cache/common-lisp/clisp-2.49.60+-unix-x64/home/data1/protected/lib/lisp/quicklisp/dists/quicklisp/software/uiop-3.2.1/backward-driver.fas,
         was defined in /home/data1/protected/lib/lisp/asdf/build/asdf.fas
WARNING: DEFUN/DEFMACRO: redefining function VERSION-COMPATIBLE-P in
         /home/data1/protected/.cache/common-lisp/clisp-2.49.60+-unix-x64/home/data1/protected/lib/lisp/quicklisp/dists/quicklisp/software/uiop-3.2.1/backward-driver.fas,
         was defined in /home/data1/protected/lib/lisp/asdf/build/asdf.fas

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
clisp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-list