Hi, sorry for the late reply, I have an odd feeling we are in
different time zones.
I don't see any particular reason why this shouldn't be working, so I
would suggest trying with SBCL to see if you run into a similar problem.
In an attempt to narrow this down, what does running the following
produce in a fresh CLISP image?
(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")
(:language #-win32 :stdc
#+win32 :stdc-stdcall)
(:return-type ffi:int))
(defun get-host-name ()
(multiple-value-bind (retcode name)
(get-host-name-internal 256)
(when (= retcode 0)
name)))
(get-host-name)
- sean
> i have not tried any others yet. going to try ltk this evening.
> thanks for your help,
> david
Great, it working in SBCL is an indication that the CLISP install that
you have is somewhat broken, I would recommend
getting hold of the maintainers, their website is http://
clisp.cons.org/.
If you are looking for other free Common Lisp implementations I can
also highly recommend Clozure Common Lisp (CCL)
which high quality Common Lisp compiler which runs on Linux, OSX and
Windows with native threads on all platforms.
> until i try
> (defparameter *server* (hunchentoot:start-server :port 8080))
> and get
> SB-INT:SIMPLE-READER-PACKAGE-ERROR at 48 (line 1, column 48) on #<SB-
> IMPL::STRING-INPUT-STREAM {C622779}>:
> Symbol "START-SERVER" not found in the HUNCHENTOOT package.
> which looks to me like hunchentoot problem not mudballs problem.
The Hunchentoot install is working unfortunately it has been upgraded
to version 1.0, since I released
mudballs and wrote this introduction, and has had an API change. The
correct way to start the server is
with the following code.
> (defparamater *server* (make-instance 'hunchentoot:acceptor :port
8080))
*SERVER*
> (hunchentoot:start *server*)
You can find more information by going to http://weitz.de/hunchentoot/
and I will make sure that I update the online documentation.
>
> also, congratulations on getting married :)
>
Thank you :)
- sean