<div dir="ltr">The error was:<br><br>Invalid program: Can't bind or assign to constant SECOND.<br><br>It happened inside usocket:hbo-to-vector-quad:<br><br>(defun hbo-to-vector-quad (integer)<br> "Host-byte-order integer to dotted-quad string conversion utility."<br> (let ((first (ldb (byte 8 24) integer))<br> (second (ldb (byte 8 16) integer))<br> (third (ldb (byte 8 8) integer))<br> (fourth (ldb (byte 8 0) integer)))<br> (vector first second third fourth)))<br><div><br></div><div><div class="gmail_default" style="font-size:small">SECOND is a symbol in the COMMON-LISP package, so binding to it is unkosher, but that works in CCL. Unless somebody globally declares SECOND to be a constant. You'll need to find where that is done, likely by incrementally loading your app sources until the following form returns T:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"> (constantp 'cl:second)</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The only way that HBO-TO-VECTOR-QUAD could have been compiled as it was, signalling that error, would be for SECOND to be declared as constant before HBO-TO-VECTOR-QUAD was compiled, and then to proceed through the compile-time error (:go in teh debugger). Do you remember doing that?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">-Bill</div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 17, 2015 at 12:13 PM, Renzo Orsini <span dir="ltr"><<a href="mailto:orsini@unive.it" target="_blank">orsini@unive.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Update: I found a way of obtaining a trace by excluding the printing of the log from hunchentoot. From this trace it seems to me that the problem is in hunchentoot itself. Here is a gist of such backtrace:<br>
<br>
<a href="https://gist.github.com/renzo-orsini/2ce407b383c25566466f" rel="noreferrer" target="_blank">https://gist.github.com/renzo-orsini/2ce407b383c25566466f</a><br>
<span class="HOEnZb"><font color="#888888"><br>
Renzo<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
> On 17 Jun 2015, at 16:23 , Renzo Orsini <<a href="mailto:orsini@unive.it">orsini@unive.it</a>> wrote:<br>
><br>
> I have a relatively small hunchentoot web application that worked on mac os x yosemite and linux, and that now does not work on linux any more, maybe due to recent update to all quicklisp packages. The problem is that I cannot even start to debug, because only a criptic message is written on the terminal and then nothing more. Note that the application still works without any problem in mac os x (even after the update of the quicklisp packages: #:hunchentoot #:ht-simple-ajax #:cl-postgres #:simple-date #:html-template #:cl-who #:do-urlencode).<br>
><br>
> Could somebody please help me in at least finding more information?<br>
><br>
> Thank you very much<br>
><br>
> This is the terminal session:<br>
><br>
> hunchentoot@dblab:~$ ccl -n<br>
> Welcome to Clozure Common Lisp Version 1.10-r16196 (LinuxX8632)!<br>
><br>
> CCL is developed and maintained by Clozure Associates. For more information<br>
> about CCL visit <a href="http://ccl.clozure.com" rel="noreferrer" target="_blank">http://ccl.clozure.com</a>. To enquire about Clozure's Common Lisp<br>
> consulting services e-mail <a href="mailto:info@clozure.com">info@clozure.com</a> or visit <a href="http://www.clozure.com" rel="noreferrer" target="_blank">http://www.clozure.com</a>.<br>
><br>
> ? (load "quicklisp/setup.lisp")<br>
> #P"/var/lib/hunchentoot/quicklisp/setup.lisp"<br>
> ? (ql:quickload "agid1")<br>
> To load "agid1":<br>
> Load 1 ASDF system:<br>
> agid1<br>
> ; Loading "agid1"<br>
> .<br>
> ("agid1")<br>
> ? (in-package :agid1)<br>
> #<Package "AGID1"><br>
> ? (start-web-server)<br>
> #<EASY-ACCEPTOR (host *, port 9090)><br>
><br>
> ;;;; at this point I request any page of the application from the browser and this is the message that appear on the terminal:<br>
><br>
> ? error Invalid program: Can't bind or assign to constant SECOND. while writing to error log, error not logged<br>
> error Invalid program: Can't bind or assign to constant SECOND. while writing to error log, error not logged<br>
> error Invalid program: Can't bind or assign to constant SECOND. while writing to error log, error not logged<br>
><br>
> ;;; nothing more is written, so I tried to write :?<br>
><br>
> :?<br>
> The following toplevel commands are available:<br>
> :? help<br>
> :PWD Print the pathame of the current directory<br>
> (:CD DIR) Change to directory DIR (e.g., #p"ccl:" or "/some/dir")<br>
> (:PROC &OPTIONAL P) Show information about specified process <p>/all processes<br>
> (:KILL P) Kill process whose name or ID matches <p><br>
> (:Y &OPTIONAL P) Yield control of terminal-input to process<br>
> whose name or ID matches <p>, or to any process if <p> is null<br>
> Any other form is evaluated and its results are printed out.<br>
> ? (:proc)<br>
> 2 : hunchentoot-listener-*:9090 [Active]<br>
> 1 : -> listener [Active]<br>
> 0 : Initial [Sleep]<br>
> ?<br>
><br>
<br>
<br>
--<br>
"Nota automatica aggiunta dal sistema di posta.<br>
Destina il 5 per mille per sostenere con borse di studio gli studenti<br>
meritevoli di Ca' Foscari.<br>
E' un atto volontario, non costa nulla e non sostituisce l'8 per mille.<br>
Scegli Ca' Foscari: codice fiscale 80007720271<br>
Please note that the above message is addressed only to individuals filing<br>
Italian income tax returns."<br>
_______________________________________________<br>
Openmcl-devel mailing list<br>
<a href="mailto:Openmcl-devel@clozure.com">Openmcl-devel@clozure.com</a><br>
<a href="https://lists.clozure.com/mailman/listinfo/openmcl-devel" rel="noreferrer" target="_blank">https://lists.clozure.com/mailman/listinfo/openmcl-devel</a><br>
</div></div></blockquote></div><br></div>