Re: Undefined foreign symbol: "crypt"

Russ Tyndall <[email protected]> Tue, 30 Aug 2011 11:01:18 -0400
Newsgroups gmane.lisp.clsql.general
Message-ID <[email protected]>
>> (clsql:connect '("localhost" "menu-system" "postgres" nil) 
>> :database-type :postgresql))
>> ; something that used to be working, but now I get :
>>
>> ; Loading #P"/var/clfree/clsql-6.0.0/clsql-postgresql-socket.asd".
>> ; Loading 
>> #P"/var/clfree/clsql-6.0.0/db-postgresql-socket/postgresql-socket-package.x86f".
>> ; Loading 
>> #P"/var/clfree/clsql-6.0.0/db-postgresql-socket/postgresql-socket-api.x86f".
>
I just realized that you are loading the postgresql (C-API) backend, so 
it is strange that it is also loading the postgresql-socket backend.  I 
tend to use either the postgresql-socket backend or the 
postgresql-socket3 backend.  Perhaps just try switching backend to see 
if one of the others works? (I recognize that is not really the best 
answer).

We apparently have never gotten the C part straightened out  to be able 
to load the :postgresql backend.  So I don't actually have any 
experience there.

I have a hard time wrapping my head around clsql loading.  The only 
plausible way I could find that might load postgresql-socket when trying 
to connect to postgresql is *default-database-type* being set to 
postgresql-socket.  Please check that variable when you get the error 
and see what it is set to.  Perhaps it can simply be set to :postgresql 
and not have you load the socket backend while trying to load the C-API 
backend.

Sorry I can't pinpoint a reason this would be happening,
Russ Tyndall
Acceleration.net