Re: Does CLX understand xauth protocol?

Rildo Pragana <[email protected]> Fri, 22 Dec 2006 11:21:32 -0300
Newsgroups gmane.lisp.clx.devel
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------070404080208080100020708
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi Christophe,

Christophe Rhodes wrote:
> Rildo Pragana <[email protected]> writes:
>
>   
>> What should I expect to do so CLX can work?
>> I have tried with several lisps (sbcl, clisp, and ecl). In all cases I
>> get a message like "X-Error: Connection failure to X11.0 server
>> display 0: No protocol specified",
>> when doing (xlib:open-display ""). 
>>     
>
> Although Fred Gilham has replied with possible patches, with CLX as
> distributed for SBCL (xlib:open-display "") works for me.  Where did
> you get your CLX from, and what is your X11 setup?
>
> Thanks,
>
> Christophe
>   
I think it is based in Telent CLX, version 0.7.3 (by you and others), 
got from:

http://ftp.linux.org.uk/pub/lisp/sbcl/clx_0.7.3.tar.gz

I know it is tagged as "SBCL-only", but I found that it works also under 
ECL, which interests me most.
The problem I found (as I told before, in other message) is in the 
function below:

    (defun get-host-name ()
      "Return the same hostname as gethostname(3) would"
      ;; machine-instance probably works on a lot of lisps, but clisp is not
      ;; one of them
      #+(or cmu sbcl) (machine-instance)
      ;; resources-pathname was using short-site-name for this purpose
      #+excl (short-site-name)
      #+ecl (si:getenv "HOST")
      #-(or excl cmu sbcl ecl) (error "get-host-name not implemented"))


as the shell variable HOST was not defined (though HOSTNAME was), so a 
simple change in my /etc/profile solved it.
Thanks anyway for your comments.


best regards,
Rildo

-- 
 ------------------------------------------------------------------
 Rildo Pragana                   FPGA/uControllers * Linux * tcl/tk
 R.Joaquim Nabuco,92/1101 Derby  http://www.pragana.net
 Recife, PE - Brazil 52011-000   +55-81-3223-5694  / 9152-6275


--------------070404080208080100020708
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Christophe,<br>
<br>
Christophe Rhodes wrote:
<blockquote cite="[email protected]" type="cite">
  <pre wrap="">Rildo Pragana <a class="moz-txt-link-rfc2396E" href="mailto:[email protected]">&lt;[email protected]&gt;</a> writes:

  </pre>
  <blockquote type="cite">
    <pre wrap="">What should I expect to do so CLX can work?
I have tried with several lisps (sbcl, clisp, and ecl). In all cases I
get a message like "X-Error: Connection failure to X11.0 server
display 0: No protocol specified",
when doing (xlib:open-display ""). 
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Although Fred Gilham has replied with possible patches, with CLX as
distributed for SBCL (xlib:open-display "") works for me.  Where did
you get your CLX from, and what is your X11 setup?

Thanks,

Christophe
  </pre>
</blockquote>
I think it is based in Telent CLX, version 0.7.3 (by you and others),
got from:<br>
<br>
<a class="moz-txt-link-freetext" href="http://ftp.linux.org.uk/pub/lisp/sbcl/clx_0.7.3.tar.gz">http://ftp.linux.org.uk/pub/lisp/sbcl/clx_0.7.3.tar.gz</a><br>
<br>
I know it is tagged as "SBCL-only", but I found that it works also
under ECL, which interests me most.<br>
The problem I found (as I told before, in other message) is in the
function below:<br>
<blockquote><tt><font size="-1">(defun get-host-name ()</font></tt><br>
  <tt><font size="-1">&nbsp; "Return the same hostname as gethostname(3)
would"</font></tt><br>
  <tt><font size="-1">&nbsp; ;; machine-instance probably works on a lot of
lisps, but clisp is not</font></tt><br>
  <tt><font size="-1">&nbsp; ;; one of them</font></tt><br>
  <tt><font size="-1">&nbsp; #+(or cmu sbcl) (machine-instance)</font></tt><br>
  <tt><font size="-1">&nbsp; ;; resources-pathname was using short-site-name
for this purpose</font></tt><br>
  <tt><font size="-1">&nbsp; #+excl (short-site-name)</font></tt><br>
  <tt><font size="-1">&nbsp; #+ecl (si:getenv "HOST")</font></tt><br>
  <tt><font size="-1">&nbsp; #-(or excl cmu sbcl ecl) (error "get-host-name
not implemented"))</font></tt><br>
</blockquote>
<br>
as the shell variable HOST was not defined (though HOSTNAME was), so a
simple change in my /etc/profile solved it.<br>
Thanks anyway for your comments.<br>
<br>
<br>
best regards,<br>
Rildo<br>
<pre class="moz-signature" cols="72">-- 
 ------------------------------------------------------------------
 Rildo Pragana                   FPGA/uControllers * Linux * tcl/tk
 R.Joaquim Nabuco,92/1101 Derby  <a class="moz-txt-link-freetext" href="http://www.pragana.net">http://www.pragana.net</a>
 Recife, PE - Brazil 52011-000   +55-81-3223-5694  / 9152-6275
</pre>
</body>
</html>

--------------070404080208080100020708--

_______________________________________________
Portable-clx mailing list
[email protected]
http://lists.metacircles.com/cgi-bin/mailman/listinfo/portable-clx
See http://www.cliki.net/clx for darcs URL(s)