Eric Marsden wrote:

> Paul Holzer �crivait:
>
>> I am running CMUCL 19a on Fedora 2. I have installed the extra 
>> packages, giving me clm and clx. I have compiled and loaded the 
>> sample motif program motif-example.lisp. This loads clm and clx 
>> libraries successfully. When I try to run the test function, I get 
>> following messages:
>>     Invoking debugger...
>>     Connection failure to X11.0 server  display 0: No protocol specified
>>       [Condition of type XLIB:CONNECTION-FAILURE]
>>     (XLIB::X-ERROR XLIB:CONNECTIION-FAILURE :MAJOR-VERSION 11 
>> :MINOR-VERSION ...]
>
>
> this is probably a problem with CLX rather than with the motifd 
> (CMUCL's Motif support uses CLX as well as the platform's Motif 
> libraries). I expect that you will see the same error if you say
>
>    (require :clx)
>    (ext:open-clx-display)
>
> It is possible that Fedora have switched to a new format for 
> authorization cookies (likely XDM-AUTHORIZATION-1 instead of 
> MIT-MAGIC-COOKIE-1); the output of "xauth list" should tell you. 
> CMUCL's CLX does not know how to handle this new format, so won't be 
> able to connect to your display.
>
> If this is indeed the problem, a temporary workaround would be to 
> authorize all connections to your display from localhost:
>
>    xhost +localhost
>
>
>
Eric,

Thanks for your input. Based on your suggestion to use "xauth list", I 
verified that Fedora 2 is still using the MIT-MAGIC-COOKIE1 for 
authorization, so that is not the problem. Also, using xhost +localhost 
did not help. It is very likely that there is an incompatibility between 
the LessTif version used for the motifd binary and the LessTif shared 
libraries on my Fedora 2 system. I have another computer which is 
running  RedHat 7.2 on which the CLM system works fine. On this RedHat 
machine the library libXm.so points to a LessTif/Motif1.2 library, while 
on the Fedora2 box it points to a library ending in .so.3.0.2, which I 
presume is Motif2.1. The libraries on both machines ending in .so.1.x 
all point to Motif1.2 libraries, and similarly those ending in .so.2.x 
point to Motif2.1 libraries. I don't know which library the binary is 
requesting. On the Fedora2 box, where CLM failed, the LessTif version is 
93.36, while the builder of motifd (Raymond Toy) stated that he used 
93.97. Perhaps a static build will solve the problem.

Paul


Reply via email to