Re: CLISP on Haiku

Alexandru Popa <[email protected]> Wed, 8 Jan 2025 16:21:41 +0200
Newsgroups gmane.lisp.clisp.devel
Message-ID <CAL2wRjSVmRHgnwK25Jf85uJvNKo6Qkoj7uw8+BwD_wGBE=rJfw@mail.gmail.com>
--===============0702038506881509630==
Content-Type: multipart/alternative; boundary="0000000000004f3803062b32959f"

--0000000000004f3803062b32959f
Content-Type: text/plain; charset="UTF-8"

Hi Bruno,

Haiku does not consider this a bug. There is nothing to "solve" in Haiku.
Different OSes behave differently. Haiku instead of some error uses a more
general one. The OS specific patches are available in almost all OSes:
*BSD, Solaris / Indiana, Windows (of course) etc.

I would prepare the patch myself, jest let me know where to start. What
file(s) to consider. I found the definition of function
RAWSOCK:MAKE-SOCKADDR in modules/rawsock/rawsock.c in lines 255-279. This
file seems to be C source, which resembles Common Lisp structure (is
&optional somehow handled in C?). I just cannot find any error definitions
and handling, maybe this is up to underlying OS 3rd party libraries.

Can you guide me (probably by pointing to relevant documentation) in the
following:
- What is the architecture of CLISP modules? I see many of them use some
glue C code. What is its purpose? How it is used? I see the tool
clisp-link, which seems to be related to modules loading (or
installation?). How it is used?
- Which existing rawsock tests can I use? I see rawsock/test.tst seems to
be Common Lisp code. Does its loading starts some tests or just defines
some specific functions for testing? I also see
modules/rawsock/demos/sniffer.lisp. Can it be used for debugging / testing?

I think it is better if you report these bugs in the Haiku bug tracker [1],
> ideally with a sample C program for each. Then there is a chance that they
> get fixed, and then programs like SBCL and CLISP, but also many others,
> don't
> have to use special-case code for Haiku.
>
> Bruno
>
> [1] https://dev.haiku-os.org/
>

--0000000000004f3803062b32959f
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi Bruno,</div><div><br></div><div>Haiku does not con=
sider this a bug. There is nothing to &quot;solve&quot; in Haiku. Different=
 OSes behave differently. Haiku instead of some error uses a more general o=
ne. The OS specific patches are available in almost all OSes: *BSD, Solaris=
 / Indiana, Windows (of course) etc.</div><div><br></div><div>I would prepa=
re the patch myself, jest let me know where to start. What file(s) to consi=
der. I found the definition of function RAWSOCK:MAKE-SOCKADDR in modules/ra=
wsock/rawsock.c in lines 255-279. This file seems to be C source, which res=
embles Common Lisp structure (is &amp;optional somehow handled in C?). I ju=
st cannot find any error definitions and handling, maybe this is up to unde=
rlying OS 3rd party libraries.</div><div><br></div><div>Can you guide me (p=
robably by pointing to relevant documentation) in the following:</div><div>=
- What is the architecture of CLISP modules? I see many of them use some gl=
ue C code. What is its purpose? How it is used? I see the tool clisp-link, =
which seems to be related to modules loading (or installation?). How it is =
used?</div><div>- Which existing rawsock tests can I use? I see rawsock/tes=
t.tst seems to be Common Lisp code. Does its loading starts some tests or j=
ust defines some specific functions for testing? I also see modules/rawsock=
/demos/sniffer.lisp. Can it be used for debugging / testing?<br></div><br><=
div class=3D"gmail_quote gmail_quote_container"><blockquote class=3D"gmail_=
quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,=
204);padding-left:1ex">
I think it is better if you report these bugs in the Haiku bug tracker [1],=
<br>
ideally with a sample C program for each. Then there is a chance that they<=
br>
get fixed, and then programs like SBCL and CLISP, but also many others, don=
&#39;t<br>
have to use special-case code for Haiku.<br>
<br>
Bruno<br>
<br>
[1] <a href=3D"https://dev.haiku-os.org/" rel=3D"noreferrer" target=3D"_bla=
nk">https://dev.haiku-os.org/</a><br>
</blockquote></div></div>

--0000000000004f3803062b32959f--


--===============0702038506881509630==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============0702038506881509630==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
clisp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-devel

--===============0702038506881509630==--