Lisp HUG Maillist Archive

Define-foreign-variable?

I'm trying to get osicat to work in Lispworks on OS X. One problem is 
that it attaches to the unix var "environ" like this (the macro 
expansion):

(PROGN
   (FLI:DEFINE-FOREIGN-VARIABLE (ENVIRON "environ") :ACCESSOR 
:ADDRESS-OF :TYPE CSTRING-ARRAY :MODULE "osicat")
   (DEFINE-SYMBOL-MACRO ENVIRON (FLI:DEREFERENCE (ENVIRON) 
:COPY-FOREIGN-OBJECT NIL)))

However, it appears that the variable isn't actually seen by LW. If I 
try to use this variable, like this:

(osicat::environ)

I get an error:

Error: Foreign function OSICAT::ENVIRON trying to call to unresolved 
external function "environ".

Can someone tell me how to fix this?

Thanks.

  - Stoney

-- 
Stonewall Ballard
stoney@sb.org           http://stoney.sb.org/


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