[usocket-devel] Compile failure on CLISP 2.46

Leslie P. Polzer sky at viridian-project.de
Sat Sep 27 22:37:37 UTC 2008


> Does it work if you put this:
>
>   (ffi:default-foreign-language :stdc)
>   (ffi:default-foreign-library "libc.so.6") ;; or whatever your libc is
>
> into your ~/.clisprc ?

If this doesn't help, try adding

  #+unix (:library "libc.so.6") ;; or darwin if you need it

in backend/clisp.lisp, right below:

(FFI:DEF-CALL-OUT get-host-name-internal
         (:name "gethostname")
         (:arguments (name (FFI:C-PTR (FFI:C-ARRAY-MAX ffi:character 256))
                           :OUT :ALLOCA)
                     (len ffi:int))
         #+win32 (:library "WS2_32")


-- 
LinkedIn Profile: http://www.linkedin.com/in/polzer
Xing Profile: https://www.xing.com/profile/LeslieP_Polzer
Blog: http://blog.viridian-project.de/




More information about the usocket-devel mailing list