From: Neil Nelson
Subject: What is the DISPLAY value in Linux for garnet?
Date: 
Message-ID: <3AFFE8B6.3E375CD9@pacbell.net>
I am compiling garnet in poplog clisp on RH7.1, and it aborts in

(load "garnet-loader")

at the point next indicated in the run sequence text below.

; MISHAP - HOST-ADDRESS not implemented yet.
; FILE     :  /usr/local/garnet/v2.2/garnet-loader.lisp
; LINE     :  832
; DOING    :  (VERIFY-DISPLAY-CAN-BE-OPENED)

I expect the problem is that the DISPLAY value as not been
properly set.  On my Linux RH7.1 installation, DISPLAY
has a default value of :0.  I have also tried 0.0 according to
the instructions with the same error result.

Are there any ideas?

Regards,

Neil Nelson


---- in garnet/v2.2/readme.txt ----
To compile or load Garnet, the Unix environment variable DISPLAY
must be set correctly.  Typically, the variable will be set with
something like unix:0.0.  If you are running on a remote machine
different from the one you want the windows to appear on, you can do
something like:
 setenv DISPLAY mymachine.garnet.cs.cmu.edu:0.0
The setenv call might be put in your .login file.  You can check the
value of the DISPLAY variable (note it must be in all capitals), using
 echo $DISPLAY
There is more information on the DISPLAY variable in the V2.2 full manual on
page 207.

Now, you will need to compile the Garnet source to make your own binaries.
This is achieved by loading the compiler scripts.  There is more information
on compiling in the full V2.2 reference manual on page 12:
 lisp> (load "garnet-prepare-compile")
 lisp> (load "garnet-loader")
 lisp> (load "garnet-compiler")
-------

---- in garnet-loader.lisp ---
     You must already be running X to load or compile Garnet.  Your DISPLAY
environment variable must be set with the name of the machine on which the
Garnet windows will be displayed.  Please exit lisp and execute a command
like the following to the unix shell before loading or compiling Garnet:
  \"setenv DISPLAY windowmachine.cs.cmu.edu:0.0\"
  \"setenv DISPLAY unix:0.0\"
  \"setenv DISPLAY 0.0\"
The last two values may be more efficient when you want the Garnet windows
to appear on the same machine that Garnet is running on.
     Additionally, you must execute the command \"xhost +\" on the machine
that the windows will be displayed on, if it is different from the machine
running Garnet."
        full-display-name))
    (xlib:close-display val)
    T)))

(verify-display-can-be-opened)
-------

----- run sequence ----
[····@localhost v2.2]# clisp

Sussex Poplog (Version 15.53 Mon Aug 21 17:36:46 BST 2000)
Copyright (c) 1982-1999 University of Sussex. All rights reserved.
Common Lisp (Version 2.0)

Setlisp
== (load "garnet-prepare-compile")
;;; LOADING /usr/local/garnet/v2.2/garnet-prepare-compile.lisp
** Now load garnet-loader, and then load garnet-compiler
T
== (load "garnet-loader")
;;; LOADING /usr/local/garnet/v2.2/garnet-loader.lisp
** Loading Garnet Version 2.2 from :EXTERNAL
...Loading Garnet ...

 %%%%%%% Loading CLX %%%%%%%%
;;; LOADING /usr/local/poplog/v15.53/pop/contrib/lisp/clx/clx.lisp
;;; LOADING /usr/local/poplog/v15.53/pop/contrib/lisp/clx/src/socket.p
;;; LOADING /usr/local/poplog/v15.53/pop/contrib/lisp/clx/src/buffer_io.p
;;; LOADING /usr/local/poplog/v15.53/pop/contrib/lisp/clx/src/provide.l
;;; LOADING /usr/local/poplog/v15.53/pop/contrib/lisp/clx/src/defsystem.l
;;; LOADING /usr/local/poplog/v15.53/pop/contrib/lisp/clx/src/package.l
;;; LOADING /usr/local/poplog/v15.53/pop/contrib/lisp/clx/src/depdefs.l

; Warning - Ignoring unimplemented declaration
; ;;; Involving:  (IGNORE NAME TYPE)
; File     :  $usepop/pop/contrib/lisp/clx/src/depdefs.l
; Line     :  105
; Compiling:  (LET*
;                   ((#:TEMP ()) (#:BTEMP ()) (#:NAME #) (#:L2 #) (NAME #)
;                    ...)
;                   (DECLARE (INLINE POP))
;                   (DECLARE (IGNORE NAME TYPE))
;                   (SETQ #:TEMP () #:BTEMP ())
;                   ...)
; Doing    :  (DEFMACRO WITHIN-DEFINITION ((NAME TYPE) &BODY BODY) ...)
; Calling  :  WARN "Let" #:DO-LOAD LOAD USER::LOAD-BINARY "Let"
;             USER::LOAD-CLX "Let" #:DO-LOAD LOAD "Let" #:DO-LOAD LOAD "Let"
;             #:DO-LOAD LOAD

;;; LOADING /usr/local/poplog/v15.53/pop/contrib/lisp/clx/src/clx.l
;;; LOADING /usr/local/poplog/v15.53/pop/contrib/lisp/clx/src/dependent.l
;;; LOADING /usr/local/poplog/v15.53/pop/contrib/lisp/clx/src/macros.l
;;; LOADING /usr/local/poplog/v15.53/pop/contrib/lisp/clx/src/bufmac.l
;;; LOADING /usr/local/poplog/v15.53/pop/contrib/lisp/clx/src/buffer.l
;;; LOADING /usr/local/poplog/v15.53/pop/contrib/lisp/clx/src/display.l
;;; LOADING /usr/local/poplog/v15.53/pop/contrib/lisp/clx/src/gcontext.l
;;; LOADING /usr/local/poplog/v15.53/pop/contrib/lisp/clx/src/input.l
;;; LOADING /usr/local/poplog/v15.53/pop/contrib/lisp/clx/src/requests.l
;;; LOADING /usr/local/poplog/v15.53/pop/contrib/lisp/clx/src/fonts.l
;;; LOADING /usr/local/poplog/v15.53/pop/contrib/lisp/clx/src/graphics.l
;;; LOADING /usr/local/poplog/v15.53/pop/contrib/lisp/clx/src/text.l
;;; LOADING /usr/local/poplog/v15.53/pop/contrib/lisp/clx/src/attributes.l
;;; LOADING /usr/local/poplog/v15.53/pop/contrib/lisp/clx/src/translate.l
;;; LOADING /usr/local/poplog/v15.53/pop/contrib/lisp/clx/src/keysyms.l
;;; LOADING /usr/local/poplog/v15.53/pop/contrib/lisp/clx/src/manager.l
;;; Ignoring DYNAMIC-EXTENT declaration for OPTION-LIST
;;; LOADING /usr/local/poplog/v15.53/pop/contrib/lisp/clx/src/image.l
;;; LOADING /usr/local/poplog/v15.53/pop/contrib/lisp/clx/src/resource.l

; MISHAP - HOST-ADDRESS not implemented yet.
; FILE     :  /usr/local/garnet/v2.2/garnet-loader.lisp
; LINE     :  832
; DOING    :  (VERIFY-DISPLAY-CAN-BE-OPENED)

Break:  (Error)
 :H     Help

<0
---- end run sequence ----


---- in /usr/local/poplog/v15.53/pop/contrib/lisp/clx/src/dependent.l ----
#-(or explorer Genera Minima Allegro CMU)
(defun host-address (host &optional (family :internet))
  ;; Return a list whose car is the family keyword (:internet :DECnet :Chaos)
  ;; and cdr is a list of network address bytes.
  (declare (type stringable host)
    (type (or null (member :internet :decnet :chaos) card8) family))
  (declare (clx-values list))
  host family
  (error "HOST-ADDRESS not implemented yet."))
-------------

From: Raymond Wiker
Subject: Re: What is the DISPLAY value in Linux for garnet?
Date: 
Message-ID: <86n18gq9rv.fsf@raw.grenland.fast.no>
Neil Nelson <········@pacbell.net> writes:

> I am compiling garnet in poplog clisp on RH7.1, and it aborts in
> 
> (load "garnet-loader")
> 
> at the point next indicated in the run sequence text below.
> 
> ; MISHAP - HOST-ADDRESS not implemented yet.
> ; FILE     :  /usr/local/garnet/v2.2/garnet-loader.lisp
> ; LINE     :  832
> ; DOING    :  (VERIFY-DISPLAY-CAN-BE-OPENED)
> 
> I expect the problem is that the DISPLAY value as not been
> properly set.  On my Linux RH7.1 installation, DISPLAY
> has a default value of :0.  I have also tried 0.0 according to
> the instructions with the same error result.
> 
> Are there any ideas?

        The error message and the code fragment shows that CLX does
not know how to lookup the host address when running under poplog. You
can either implement this functionality (by making the necessary
changes to dependent.lisp), or experiment with values for DISPLAY that
should not require a host name lookup - e.g, "127.0.0.1:0" or possibly
"unix:0". The first specifies an IP address directly, and the second
uses a different transport (a named pipe, I think).

-- 
Raymond Wiker
·············@fast.no
From: Neil Nelson
Subject: Re: What is the DISPLAY value in Linux for garnet?
Date: 
Message-ID: <3B000755.6B7D5B6@pacbell.net>
Thank you Raymond.

I have tried those two options with the same
error result. It seems as though the 127.0.0.1:0
option should work. This is what is in my /etc/hosts.

127.0.0.1 localhost.localdomain localhost

Before trying to hack dependent.l, I am going to try a
lisp distribution I know another person is working on
with this same package: SNePS/garnet who seems to be
farther along. I should be able to identify whether
the problem is poplog specific or possibly identify the
correct solution by transfer from the alternate lisp.

But I would be very lost without the generous help of
people such as yourself.

Thank you,

Neil Nelson


Raymond Wiker wrote:

> Neil Nelson <········@pacbell.net> writes:
>
> > I am compiling garnet in poplog clisp on RH7.1, and it aborts in
> >
> > (load "garnet-loader")
> >
> > at the point next indicated in the run sequence text below.
> >
> > ; MISHAP - HOST-ADDRESS not implemented yet.
> > ; FILE     :  /usr/local/garnet/v2.2/garnet-loader.lisp
> > ; LINE     :  832
> > ; DOING    :  (VERIFY-DISPLAY-CAN-BE-OPENED)
> >
> > I expect the problem is that the DISPLAY value as not been
> > properly set.  On my Linux RH7.1 installation, DISPLAY
> > has a default value of :0.  I have also tried 0.0 according to
> > the instructions with the same error result.
> >
> > Are there any ideas?
>
>         The error message and the code fragment shows that CLX does
> not know how to lookup the host address when running under poplog. You
> can either implement this functionality (by making the necessary
> changes to dependent.lisp), or experiment with values for DISPLAY that
> should not require a host name lookup - e.g, "127.0.0.1:0" or possibly
> "unix:0". The first specifies an IP address directly, and the second
> uses a different transport (a named pipe, I think).
>
> --
> Raymond Wiker
> ·············@fast.no
From: Dowe Keller
Subject: Re: What is the DISPLAY value in Linux for garnet?
Date: 
Message-ID: <slrn9h6jsc.3q6.dowe@localhost.localdomain>
On Mon, 14 May 2001 07:16:22 -0700, Neil Nelson <········@pacbell.net> wrote:
>I am compiling garnet in poplog clisp on RH7.1, and it aborts in
>
>(load "garnet-loader")
>
>at the point next indicated in the run sequence text below.
>
>; MISHAP - HOST-ADDRESS not implemented yet.
>; FILE     :  /usr/local/garnet/v2.2/garnet-loader.lisp
>; LINE     :  832
>; DOING    :  (VERIFY-DISPLAY-CAN-BE-OPENED)
>
>I expect the problem is that the DISPLAY value as not been
>properly set.  On my Linux RH7.1 installation, DISPLAY
>has a default value of :0.  I have also tried 0.0 according to
>the instructions with the same error result.
>
>Are there any ideas?

Have you tried hostname:0.0 where hostname is the hostname of your box?
(you can find the hostname by typing "hostname -s" at the shell prompt).

HTH&BOL

-- 
····@sierratel.com              Homepage: http://www.sierratel.com/dowe
				Project : http://freshmeat.net/projects/vsh