Lisp HUG Maillist Archive

"Error: definining system package"

While trying to load clsql-postgresql (i.e. the FFI version), the
error "definining system package POSTGRESQL" is raised.

This error is raised even in the following test case:

CL-USER 24 > (find-package "POSTGRESQL")
NIL

CL-USER 25 > (defpackage "POSTGRESQL" (:use "CL"))

Error: Defining system package POSTGRESQL.
  1 (continue) Define it anyway.
  2 (abort) Return to level 0.
  3 Return to top loop level 0.

Type :b for backtrace, :c <option number> to proceed,  or :? for other options

CL-USER 26 : 1 > (defpackage "pSTGRESQL" (:use "CL"))
#<The pSTGRESQL package, 0/16 internal, 0/16 external>

Here I can simply pick the first restart, but ASDF aborts when it hits
this error.  I do not have ODBC loaded, but somehow the package
"POSTGRESQL" is specially marked.

I can't find any information about "system packages" in the LispWorks
documentation.  Any ideas?  I'm fine with the postgresql-socket
backend for now, but I'd like to get this to work.  I am running
LispWorks 5.0.

-- 
Bill Atkins


Re: "Error: definining system package"

Bill Atkins wrote:

> I can't find any information about "system packages" in the LispWorks
> documentation.  Any ideas?

I'm not sure if this still works, but I used to solve this kind of
problem by setting HCL:*PACKAGES-FOR-WARN-ON-REDEFINITION*.

You could probably do something like:

   (setq hcl:*packages-for-warn-on-redefinition*
         (remove-if (lambda (package-name)
                      (member package-name
                             '("POSTGRESQL"
                               ;; Add other system packages here if necessary.
                              )
                              :test #'string-equal))
                    *packages-for-warn-on-redefinition*))

I hope this helps,

Arthur Lemmens




Re: "Error: definining system package"

Thanks!  That fixed it.

On 8/8/06, Arthur Lemmens <alemmens@xs4all.nl> wrote:
> Bill Atkins wrote:
>
> > I can't find any information about "system packages" in the LispWorks
> > documentation.  Any ideas?
>
> I'm not sure if this still works, but I used to solve this kind of
> problem by setting HCL:*PACKAGES-FOR-WARN-ON-REDEFINITION*.
>
> You could probably do something like:
>
>    (setq hcl:*packages-for-warn-on-redefinition*
>          (remove-if (lambda (package-name)
>                       (member package-name
>                              '("POSTGRESQL"
>                                ;; Add other system packages here if necessary.
>                               )
>                               :test #'string-equal))
>                     *packages-for-warn-on-redefinition*))
>
> I hope this helps,
>
> Arthur Lemmens
>
>
>
>


-- 
Bill Atkins


Updated at: 2020-12-10 08:47 UTC