From der_julian at web.de Sat Sep 1 20:03:56 2007 From: der_julian at web.de (Julian Stecklina) Date: Sat Sep 1 20:04:04 2007 Subject: [araneida-devel] Compilation broken on SBCL 1.0.9 FreeBSD Message-ID: <46D9FDEC.40106@web.de> Hello, araneida-testing does not compile on SBCL 1.0.9 on FreeBSD, because SB-SYS:WITH-ENABLED-INTERRUPTS used in WITH-IGNORED-SIGNALS does not exist. A quick grep through the source tells me that WITH-IGNORED-SIGNALS is not used anywhere, so I propose the attached patch. Regards, Julian -------------- next part -------------- diff -rN -u old-araneida-testing/macros.lisp new-araneida-testing/macros.lisp --- old-araneida-testing/macros.lisp 2007-09-02 02:00:03.000000000 +0200 +++ new-araneida-testing/macros.lisp 2007-09-02 02:00:03.000000000 +0200 @@ -1,17 +1,5 @@ (in-package :araneida) -#+sbcl -(defmacro with-ignored-signals (signals &body body) - (let ((sighandlers - (mapcar (lambda (sig) (list sig :ignore)) signals))) - `(sb-sys:with-enabled-interrupts ,sighandlers ,@body))) - -#+cmu -(defmacro with-ignored-signals (signals &body body) - (let ((sighandlers - (mapcar (lambda (sig) (list sig :ignore)) signals))) - `(system:with-enabled-interrupts ,sighandlers ,@body))) - ; Cribbed from Paul Graham (defmacro with-gensyms (syms &body body) `(let ,(mapcar #'(lambda (s) From der_julian at web.de Sat Sep 1 20:16:32 2007 From: der_julian at web.de (Julian Stecklina) Date: Sat Sep 1 20:16:41 2007 Subject: [araneida-devel] Compilation broken on SBCL 1.0.9 FreeBSD In-Reply-To: <46D9FDEC.40106@web.de> References: <46D9FDEC.40106@web.de> Message-ID: <46DA00E0.5020309@web.de> Julian Stecklina wrote: > Hello, > > araneida-testing does not compile on SBCL 1.0.9 on FreeBSD, because > SB-SYS:WITH-ENABLED-INTERRUPTS used in WITH-IGNORED-SIGNALS does not > exist. A quick grep through the source tells me that > WITH-IGNORED-SIGNALS is not used anywhere, so I propose the attached patch. It seems that even with this patch araneida is unable to serve static pages, because of a bivalent streams issue. The attached patch fixes that. Regards, Julian -------------- next part -------------- --- old-araneida-testing/client.lisp 2007-09-02 02:14:42.000000000 +0200 +++ new-araneida-testing/client.lisp 2007-09-02 02:14:42.000000000 +0200 @@ -35,7 +35,7 @@ ;; open client socket to peer-host, peer-port, and stuff (let ((s (make-instance 'inet-socket :type :stream :protocol :tcp))) (socket-connect s peer-host peer-port) - (socket-make-stream s :input t :output t :buffering buffering)))) + (socket-make-stream s :element-type :default :input t :output t :buffering buffering)))) (defmacro with-url-stream ((stream url &rest args diff -rN -u old-araneida-testing/compat/compat-sbcl.lisp new-araneida-testing/compat/compat-sbcl.lisp --- old-araneida-testing/compat/compat-sbcl.lisp 2007-09-02 02:14:42.000000000 +0200 +++ new-araneida-testing/compat/compat-sbcl.lisp 2007-09-02 02:14:42.000000000 +0200 @@ -40,7 +40,7 @@ (defun listener-accept-stream (listener) (let ((socket (sb-bsd-sockets:socket-accept (http-listener-socket listener)))) - (sb-bsd-sockets:socket-make-stream socket :element-type 'character + (sb-bsd-sockets:socket-make-stream socket :element-type :default :external-format :iso-8859-1 :name "socket" :input t :output t :buffering :full))) From der_julian at web.de Sun Sep 2 00:03:56 2007 From: der_julian at web.de (Julian Stecklina) Date: Sun, 02 Sep 2007 02:03:56 +0200 Subject: [araneida-devel] Compilation broken on SBCL 1.0.9 FreeBSD Message-ID: <46D9FDEC.40106@web.de> Hello, araneida-testing does not compile on SBCL 1.0.9 on FreeBSD, because SB-SYS:WITH-ENABLED-INTERRUPTS used in WITH-IGNORED-SIGNALS does not exist. A quick grep through the source tells me that WITH-IGNORED-SIGNALS is not used anywhere, so I propose the attached patch. Regards, Julian -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: unused-macros.diff Url: http://common-lisp.net/pipermail/araneida-devel/attachments/20070902/0739723d/attachment.diff From der_julian at web.de Sun Sep 2 00:16:32 2007 From: der_julian at web.de (Julian Stecklina) Date: Sun, 02 Sep 2007 02:16:32 +0200 Subject: [araneida-devel] Compilation broken on SBCL 1.0.9 FreeBSD In-Reply-To: <46D9FDEC.40106@web.de> References: <46D9FDEC.40106@web.de> Message-ID: <46DA00E0.5020309@web.de> Julian Stecklina wrote: > Hello, > > araneida-testing does not compile on SBCL 1.0.9 on FreeBSD, because > SB-SYS:WITH-ENABLED-INTERRUPTS used in WITH-IGNORED-SIGNALS does not > exist. A quick grep through the source tells me that > WITH-IGNORED-SIGNALS is not used anywhere, so I propose the attached patch. It seems that even with this patch araneida is unable to serve static pages, because of a bivalent streams issue. The attached patch fixes that. Regards, Julian -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: encoding.diff Url: http://common-lisp.net/pipermail/araneida-devel/attachments/20070902/8c4b0642/attachment.diff