[Top][All Lists]

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

[Axiom-developer] Re: [Gcl-devel] Issue on in-package from gcl-2.4.4 t

From: Camm Maguire
Subject: [Axiom-developer] Re: [Gcl-devel] Issue on in-package from gcl-2.4.4 to gcl-2.5.2, correct fix? where to dig?
Date: 26 Apr 2003 12:30:02 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Greetings!  I'm away from easy access to my email until 6/1, so
correspondence will be somewhat spotty.  When I get back, I'd like to
be able to help with gcl/axiom issues if regular work will allow.  

I've built an axiom cvs with the latest gcl a few months ago, and
basically the only changes required were of the sort you list.  GCL is
in the process of moving from the old lisp standard to the new ANSI
standard.  Right now, in-package is in between -- it does require a
make-package or defpackage before use, but right now it still is not a
macro, and does evaluate quoted arguments.  Don't rely on this in the
future, as it will change.  The right thing to do long term is as Paul
states -- write a bunch of defpackage calls in a separate file, and
load at the appropriate time.  If you would like to see an example,
look at the packages.lisp files in the pcl and clcs directories of the
gcl source.  

If you want something dirtier which might work more quickly, you can

1) fire up gcl, do all your make-package/defpackage calls, and
   (si::save-system "new-gcl-image").  Then build axiom as normal with
   the new gcl image

2) fire up gcl, redefine in-package to call make-package first
   (checking of course that it hasn't already been run), then
   save the image as above, and build as normal with the new image.

I would *not* recommend doing either of these in the long term.  But
to experiment and flush out any other possible issues, this should

Take care,

David MENTRE <address@hidden> writes:

> Hello,
> [ Sorry if I'm out of topic for this list. Please redirect me to correct
>   list if needed. ]
> I'm interested in ported a software (Axiom) from gcl-2.4.4 to latest gcl
> 2.5.2.
> One issue I am fighting is that some (in-package ...) statements are
> working on gcl-2.4.4 and not gcl-2.5.2.
> According to Tim Daily (of Axiom fame), this issue is related to the
> fact that "Common Lisp definition has changed since Axiom was
> written. In particular, use-package used to create the package if it did
> not exist and now it does not." (quoting tim [1]).
> The advice from tim[2] is to change each (in-package ...) in
> "(make-package ...) (in-package ...)".
> Is it the right fix for gcl-2.5.2?
> In an attempt to apply this fix, I observed a strange behaviour (to me
> ;-) that I could not explain[3] :
> "
> If I do:
> -- --
> gcl> (compile-file "/path-to/boothdr.lisp" :output-file "/tmp/boothdr.o")
> -- --
> it fails on (in-package ...) S-expr.
> However, if I do:
> -- --
> gcl> (make-package 'BOOTTRAN)
> gcl> (compile-file "/path-to/boothdr.lisp" :output-file "/tmp/boothdr.o")
> -- --
> it works!
> "
> Moreover, as I'm new to common lisp, is anybody on this list knows a
> good reference/pointer where I could dig and try to understand all those
> package considerations?
> Many thanks in advance for any help,
> Best regards,
> d.
> [1]
> [2]
> [3]
> -- 
>  address@hidden
> _______________________________________________
> Gcl-devel mailing list
> address@hidden

Camm Maguire                                            address@hidden
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]