From: Pierpaolo Bernardi
Subject: Patching the free acl5 for Linux.
Date: 
Message-ID: <927036433.476422@fire-int>
Hello all,

is there a way to apply the patches distributed by Franz, to the free
acl5 for linux?

Following the procedure described in the documentation does not work
for me.

For now, I have added (sys:load-patches ...) to my ~/.clinit, but
this, I understand, does not load the fixes in $ACL/code.

Attached below there is a transcript.

P.

================================================================

localhost:/usr/local/acl5$ ./update.sh 
Loading /usr/local/acl5/libacl503.so.
Mapping lisp-orig.dxl: Setting up C heap, Mapping acl503.epll, Setting up Lisp heap.
Allegro CL Trial Edition 5.0 [Linux/X86] (8/29/98 10:57)
Copyright (C) 1985-1998, Franz Inc., Berkeley, CA, USA.  All Rights Reserved.
;; Optimization settings: safety 1, space 1, speed 1, debug 2.
;; For a complete description of all compiler switches given the
;; current optimization settings evaluate (EXPLAIN-COMPILER-SETTINGS).
USER(1): ; Autoloading for BUILD-LISP-IMAGE:
; Fast loading /usr/local/acl5/code/build.fasl
;;; Installing build patch, version 5
Loading /usr/local/acl5/libacl503.so.
Mapping acl503.epll, Initial generation spread = 1
Allocated 10492920 bytes for old space
Allocated 5242880 bytes for new space
;;;;;;;;;;;;;;;;;; fasl /usr/local/acl5/code/hash.fasl
;;; Installing hash patch, version 4
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Autoloading for package "COMP":
; Fast loading from bundle code/compiler-s.fasl.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Autoloading for MATCH-REGEXP:
; Fast loading from bundle code/regexp.fasl.
Loaded patch file /usr/local/acl5/update/p0b002.001.
Loaded patch file /usr/local/acl5/update/p0b003.001.
Loaded patch file /usr/local/acl5/update/p0b005.001.
Loaded patch file /usr/local/acl5/update/p0b006.001.
Loaded patch file /usr/local/acl5/update/p0b007.001.
;;;;;;;;;;;

area  address(bytes)        cons        symbols        other bytes
                        8 bytes each  24 bytes each
                        (free:used)   (free:used)      (free:used)
Top #x20f04000
New #x20c84000(2621440)   996:1042      254:0        2501952:42408
New #x20a04000(2621440)    -----         -----            -----
Old #x20000d48(10498744)  668:38054      47:10801    9324240:595768
Root pages: 5
Lisp heap limit: 67108864

Allegro CL Trial Edition 5.0 [Linux/X86] (5/17/99 20:32)
Copyright (C) 1985-1998, Franz Inc., Berkeley, CA, USA.  All Rights Reserved.
;; Optimization settings: safety 1, space 1, speed 1, debug 2.
;; For a complete description of all compiler switches given the
;; current optimization settings evaluate (EXPLAIN-COMPILER-SETTINGS).
USER(1): USER(1): T
USER(2): EXCL::EXIT-ON-ERROR-HOOK
USER(3): :CASE-INSENSITIVE-UPPER
USER(4): NIL
USER(5): NIL
USER(6): T
USER(7): T
USER(8): NIL
USER(9): NIL
USER(10): T
USER(11): ; Loading /usr/local/acl5/develenv.cl
;   Fast loading from bundle code/list2.fasl.
;   Fast loading from bundle code/seq2.fasl.
;   Fast loading from bundle code/streama.fasl.
;   Fast loading from bundle code/srecord.fasl.
;   Fast loading from bundle code/tpl-debug.fasl.
;   Autoloading for package "DEBUGGER":
;     Fast loading from bundle code/debug.fasl.
;   Fast loading from bundle code/tpl-proc.fasl.
;   Autoloading for package "MULTIPROCESSING":
;     Fast loading from bundle code/process-s.fasl.
;   Fast loading from bundle code/defsys.fasl.
;   Autoloading for package "DEFSYS":
;     Fast loading from bundle code/defsys-s.fasl.
;   Fast loading from bundle code/foreign.fasl.
;   Autoloading for package "FOREIGN-FUNCTIONS":
;     Fast loading from bundle code/foreign-s.fasl.
;   Fast loading from bundle code/defftype.fasl.
;     Fast loading from bundle code/compftype.fasl.
;   Fast loading from bundle code/process.fasl.
;     Fast loading from bundle code/mdproc.fasl.
;   Fast loading from bundle code/sigio.fasl.
;   Fast loading from bundle code/eli.fasl.
;     Fast loading from bundle code/lep.fasl.
;     Autoloading for package "CROSS-REFERENCE":
;       Fast loading from bundle code/xref-s.fasl.
;       Fast loading from bundle code/lze.fasl.
;   Autoloading for package "ACL-SOCKET":
;     Fast loading from bundle code/sock-s.fasl.
;   Fast loading from bundle code/emacs.fasl.
;   Fast loading /usr/local/acl5/code/scm.fasl
;;; Installing scm patch, version 1
;   Fast loading from bundle code/xref.fasl.
;   Fast loading from bundle code/walker.fasl.
;   Fast loading /usr/local/acl5/code/trace.fasl
;;; Installing trace patch, version 2
Error (from DEBUG): Can't locate the module "PROF"
Continuable error: ask for a new filename
; Auto-exit
; Exiting Lisp
done.
Error (from ERROR): image creation failed
Evaluation stack:

   (EXCL::INTERNAL-INVOKE-DEBUGGER "Error"
                                   #<CL:SIMPLE-ERROR @ #x204d3e42> CL:T)
   (CL:ERROR CL:SIMPLE-ERROR :FORMAT-CONTROL #1="image creation failed"
             :FORMAT-ARGUMENTS CL:NIL)
   (EXCL::.ERROR #1#)
 ->(EXCL:BUILD-LISP-IMAGE #2="lisp.dxl")
   [... EXCL::%EVAL ]
   (CL:EVAL (EXCL:BUILD-LISP-IMAGE #2#))
   (TPL::READ-EVAL-PRINT-ONE-COMMAND CL:NIL CL:NIL)
   (EXCL::READ-EVAL-PRINT-LOOP :LEVEL 0)
   (TPL::TOP-LEVEL-READ-EVAL-PRINT-LOOP1)
   (TPL:TOP-LEVEL-READ-EVAL-PRINT-LOOP)
   (SYS::..RUNTIME-OPERATION
      #3=#<Function TOP-LEVEL-READ-EVAL-PRINT-LOOP> CL:NIL)
   (TPL:START-INTERACTIVE-TOP-LEVEL
      #<EXCL:BIDIRECTIONAL-TERMINAL-STREAM [initial terminal io] fd 0/1
        @ #x200062aa>
      #3# CL:NIL)
   (EXCL::START-LISP-EXECUTION)
   (EXCL::SETUP-REQUIRED-STACK-GROUP-BINDINGS
      #<Function START-LISP-EXECUTION-1>)
   (EXCL::START-REBORN-LISP)
; Auto-exit
; Exiting Lisp
From: Lieven Marchand
Subject: Re: Patching the free acl5 for Linux.
Date: 
Message-ID: <m3675q1bnw.fsf@localhost.localdomain>
········@cli.di.unipi.it (Pierpaolo Bernardi) writes:

> Hello all,
> 
> is there a way to apply the patches distributed by Franz, to the free
> acl5 for linux?
> 

This has been discussed a number of times here. The "free" acl5 for
linux is an enterprise version with some fasls missing. One of them
the profiling one. So in your newly dumped image you will not be able
to do profiling.

If that is acceptable, in develenv.cl in the root dir of the
installation, comment out the following line

#+allegro-cl-enterprise (require :prof) ;; not allowed in runtime images

-- 
Lieven Marchand <···@bewoner.dma.be>
If there are aliens, they play Go. -- Lasker