sucle icon indicating copy to clipboard operation
sucle copied to clipboard

Error "Symbol "DEFCALLBACK" not found in the CLAW package"

Open svetlyak40wt opened this issue 4 years ago • 5 comments

Unable to load Sucle with the latest quicklisp dists:

…
[package claw-utils]..............................
[package glfw]....................................
[package window]..
;
; caught ERROR:
;   READ error during COMPILE-FILE:
;
;     Symbol "DEFCALLBACK" not found in the CLAW package.
;
;       Line: 377, Column: 20, File-Position: 9755
;
;       Stream: #<SB-INT:FORM-TRACKING-STREAM for "file /Users/art/projects/lisp/sucle/src/window/glfw3.lisp" {100548B903}>
; Debugger entered on #<UIOP/LISP-BUILD:COMPILE-FILE-ERROR {1002AC3463}>
;
; compilation unit aborted
;   caught 2 fatal ERROR conditions
;   caught 1 ERROR condition
[1] CL-USER>
; Evaluation aborted on #<UIOP/LISP-BUILD:COMPILE-FILE-ERROR {1002AC3463}>
CL-USER> (ql:where-is-system :claw)
#P"/Users/art/.roswell/lisp/quicklisp/dists/org.borodust.bodge/software/claw-20191116131925/"
CL-USER> (ql-dist:all-dists)
(#<QL-DIST:DIST org.borodust.bodge 20191116132028>
 #<QL-DIST:DIST quicklisp 2019-12-27> #<QL-DIST:DIST ultralisp 20200129120504>)

svetlyak40wt avatar Jan 29 '20 17:01 svetlyak40wt

Yeah, same happens to me.

commander-trashdin avatar Feb 07 '20 23:02 commander-trashdin

same here

parjanya avatar Mar 24 '20 00:03 parjanya

Whoops, I was using a different version of quicklisp, org.borodust.bodge, and ultralisp.

CL-USER> (ql:where-is-system :claw)
#P"/home/imac/quicklisp/dists/ultralisp/software/borodust-claw-20190319094617/"
CL-USER> (ql-dist:all-dists)
(#<QL-DIST:DIST org.borodust.bodge 20180808145520>
 #<QL-DIST:DIST quicklisp 2019-12-27> #<QL-DIST:DIST ultralisp 20190417075502>)
CL-USER> 

Upon loading the new libraries there was a conflict between the new cl-json and an old version of cl-json found here: https://github.com/kennytilton/qooxlisp/tree/master/cl-json_0.4.0 , so I had to remove ultralisp.

Now I can reproduce the error:

; caught ERROR:
;   READ error during COMPILE-FILE:
;   
;     Symbol "DEFCALLBACK" not found in the CLAW package.
;   
;       Line: 393, Column: 20, File-Position: 10436
;   
;       Stream: #<SB-INT:FORM-TRACKING-STREAM for "file /home/imac/quicklisp/local-projects/symmetrical-umbrella/src/window/glfw3.lisp" {1005A307C3}>

; compilation aborted after 0:00:00.143

gregcman avatar Mar 25 '20 18:03 gregcman

Now there is a collision between base64 from claw/wrapper and cl-base64

gregcman avatar Mar 25 '20 18:03 gregcman

After switching libraries from cl-base64 -> base64, changing claw:defcallback to cffi:defcallback, updating all dists with (ql:update-all-dists), and removing ultralisp in order to use cl-json, it seems to run.

gregcman avatar Mar 25 '20 18:03 gregcman