Re: Install portable allegroserve under clisp (Missing IPADDR-TO-DOTTED )



[to list and direct]

fjalor wrote:
Hi,

Personal Background (skip this if you are interested in the technical
question):
I'm new to Lisp and am very fascinating about the possibilities
the language offers you, but I also must admit, that I'm a bit
irritated whith missing standards (such as documented librarys etc.).
This shouldn't be underestimated when the question arises whether
lisp is being used alot or not. Or when the question arises whether
lisp is popular or not. It _is_ very difficult even for experienced
programmers to get into it, not speaking of beginners.
That's not so because the principles of the language are so
hard to learn (at least for me), but because of the lacking
standards.
That being said ;) here is my concern:

Question:
I run clisp 2.38 on Ubuntu 4.0.3 and want to use portable allegro.
After downloading portable allegro from sourceforge.net and running
clisp as root from the same directory where INSTALL.lisp is, I tried
to load INSTALL.lisp:

(load "INSTALL.lisp")

It seems that all the required files are correctly loaded. But when
it comes to compiling the first error I get is:

Compiling file /usr/share/common-lisp/source/aserve/main.cl ...
*** - READ von #<INPUT BUFFERED FILE-STREAM CHARACTER #P"/usr/share/
common-lisp/source/aserve/main.cl" @1522>: In
#<PACKAGE SOCKET>
there doesn't exist an extern symbol with the name "IPADDR-TO-
DOTTED"

I do not know anything about Portable Aserve (except that I hear more about Hunchentoot these days) but it might just be a package problem. In situations like this, step #1 for me is to see if the symbol is out there at all:

(apropos "IPADDR-TO-DOTTED")

Assuming it is, note in which package it is defined. Perhaps (I am totally just guessing) you then just need to:

(in-package :wherever-it-is)

And then:

(load "install.lisp")

btw, if you at least get past the first error, there may be a read-me out there somewhere with installation instructions you missed.

Sorry for all the guesswork.

kenny


In the cookbook-section about sockets

http://cl-cookbook.sourceforge.net/sockets.html

I tried out
(resolve-host-ipaddr "www.lisp.org") and (resolve-host-ipaddr
"128.18.65.4")
which happened to run well, but again when I tried

(dotted-to-ipaddr "128.18.65.4") or (ipaddr-to-dotted 2148679940) from
the cookbook

I get the same error, telling me that both functions are not defined.

Am I missing something, or does anybody know how to solve this
problem?

1. Do I have to write those functions myself?
2. If so, is there any specification to what the input values and
output values of 'ipadr' are?
3. Still if so: In which file should I write those functions?

I hope not to bother anyone with those questions, but I found it very
frustrating to searched 2 whole days (and a big part of nights) about
how to install portable aserve with cl and not to solve the problem.


Any comment is appreciated.

Thanks for reading this post.

--
http://smuglispweeny.blogspot.com/
http://www.theoryyalgebra.com/

"In the morning, hear the Way;
in the evening, die content!"
-- Confucius
.



Relevant Pages

  • Re: use-package & name conflict: why they are not deferred?
    ... if current package is a home package for one of conflicting ... of some Lisp program. ... I don't think there is that much 'modern' to C++ and Java (the language). ... (append (required-args d-a) ...
    (comp.lang.lisp)
  • modules vs. packages
    ... > module system of the underlying lisp. ... Common Lisp does have a trivial feature called modules. ... is that it has a unique name (with respect to its home package). ... the system version control and release and patching features. ...
    (comp.lang.lisp)
  • Re: why cl packages are hard to use ?
    ... Yeah, if Lisp used dumb strings for naming things, that would stack ... the deck in the favor of related dumb hacks like modules, ... Why is it so important that the reader do the work? ... because *package* is a global resource ...
    (comp.lang.lisp)
  • Re: Predicate for lexical bindings
    ... I assume you mean that you have started up an interactive Lisp ... lower level of parse, sees the word "let" which sees there already ... but there's no symbol by that name (in the current package) so ... so it puts NIL into the CDR of that same CONS cell to ...
    (comp.lang.lisp)
  • Re: Package: symbol reading woes
    ... The Lisp package system is not ... different from the problem with "wanting to load a package definition ...
    (comp.lang.lisp)