[Prev][Next][Index][Thread]

fix for mac cl-http 1.2 loading bug in MCL 2.0.1



At 9:53 PM 6/13/95, MXE03373 wrote:
>John C. Mallery wrote
>>The Mac Common Lisp Web server is available.
>
>I was interested in this work and I got mac-cl-http-1-1.sea.hqx. from
>ftp://ftp.ai.mit.edu/pub/users/jcma/cl-http/
>
>I have tried to compile mac-start-server.lisp on MCL2.0.1/System7.1, but I got
>the following error message.
>
>---------------------
>Welcome to Macintosh Common Lisp Version 2.0.1!
>?
>;Loading #P"Macintosh HD:MCL 2.0.1:mac-cl-http-1.1:mac-start-server.lisp"...
>;Loading #P"Macintosh HD:MCL 2.0.1:mac-cl-http-1.1:mac-sysdcl.lisp"...
>;Loading #P"Macintosh HD:MCL 2.0.1:mac-cl-http-1.1:mac-translations.lisp"...
>;Loading #4P"http:mac;server;tcp-conditions.fasl"...
>> Error: Class named MODAL-ASCII-OR-BINARY-TCP-STREAM not found.
>> While executing: FIND-CLASS
>> Type Command-. to abort.
>See the Restartsノ menu item for further choices.
>1 >
>

In MCL 2.0.1, the problem is that TCP-stream.lisp needs to load before
tcp-conditions2.lisp.
The solution is to place tcp-conditions2.lisp after TCP-stream.lisp. the
definition below
fixes the bug for MCL 2.0.1.  You can add it to the file http:mac-sysdcl.lisp

The next version of MAC CL-HTTP will contain this fix and will be in the
FTP soon.

Please submit future bug reports to bug-mac-cl-http@ai.mit.edu so that we don't
bother other people with this issues.


(define-system
   (cl-http)
   (:compile-load)
   ;; load MCL libraries
   (:in-order-to-compile :compile-load "ccl:library;LOOP")       ; loop
macro, required for compilation only?
   #+:ccl-3
   (:in-order-to-compile :compile-load "ccl:library;lispequ")   ; needed
for process interface code.
   (:in-order-to-load :compile-load "ccl:library;MacTCP")       ; TCP
interface always required.
   #-:ccl-3
   (:in-order-to-load :compile-load "ccl:examples;mac-file-io" )        ;
fast file access
   "http:mac;server;resources"                  ; portable resource package
   ;; server code.
   "http:server;package"                                ; all package
definitions
   "http:mac;server;tcp-stream"                 ; the tcp-stream functions first
   #-:ccl-3 "http:mac;server;tcp-conditions2"           ; TCP conditional
signalling always required
   "http:server;preliminary"                    ; documentation macros
   "http:server;variables"                      ; variable definitions
   "http:mac;server;mcl"                                ; Platform
dependent code
   "http:server;base64-encoding"                        ; base 64 utility
   "http:server;plist"                          ; property list mixin for CLOS
   "http:server;utils"                          ; utility functions
   "http:server;headers"                                ; HTTP headers
   "http:server;host"                           ; Host objects and operations
   "http:server;url"                            ; Object-Oriented URLs
   "http:server;html2"                          ; HTML generation

   "http:server;http-conditions"                        ; HTTP conditions
   "http:server;log"                            ; Logging HTTP transactions
   "http:server;server"                         ; Main server code
   #-:ccl-3"http:mac;server;tcp-interface2"     ; Server TCP Interface
   #+:ccl-3"http:mac;server;tcp-interface")