Newsgroups: comp.lang.lisp
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!news.mathworks.com!gatech!howland.reston.ans.net!EU.net!Germany.EU.net!nntp.gmd.de!news.rwth-aachen.de!uni-paderborn.de!golden-gate.owl.de!fu-berlin.de!news.belwue.de!news.belwue.de!delos.stgt.sub.org!saruman.lb.bawue.de!shendi
From: shendi@saruman.lb.bawue.de (Alexander Shendi)
Subject: Re: CLX, AKCL, GCL and Linux
Message-ID: <1995May7.022247.151@saruman.lb.bawue.de>
Organization: private Linux site, Asperg, Germany 
Date: Sun, 7 May 1995 02:22:47 GMT
References: <3o2qcd$f9h@solaris.cc.vt.edu> <HOLLY.95May2140052@random.pc-labor.uni-bremen.de>
X-Newsreader: TIN [version 1.2 PL2]
Lines: 46

Holger Duerer (holly@random.pc-labor.uni-bremen.de) wrote:
: >>>>> On 1 May 1995 14:14:37 GMT, Student user cad2 6 <andre@mselrt4.ise.vt.edu> said:
: 	Andre> Hi,

: 	Andre> I'm trying to run CLX (both versions 6 and 5) in the Linux OS (kernel 1.2.5)
: 	Andre> with XFree 3.1.  So far, I had no luck with both AKCL 1-1-625 and GCL 2.0.
: 	Andre> Both packages give the same error message (included at the end of this posting)
: 	Andre> in run time.  Interesting enough, CLISP compiles and runs with no problems
: 	Andre> using the same code.  Unfortunately, I can't use it for my work.  Any help will
: 	Andre> be greatly appreciated. Thanks in advance.

: 	Andre> Andre
: 	Andre> [...]

:         Andre>  >(xlib::hello-world "")
: 	Andre> Error: X-Error: Connection failure to X2816.0 server  display 0: Protocol
: 	Andre> version mismatch
: 	Andre> Fast links are on: do (use-fast-links nil) for debugging
: 	Andre> Error signalled by SETQ.
: 	Andre> [...]

: Hi.
: I believe, this problem is due to wrong endian-ness.  The CLX-code
: fails to correctly identify that your intel-chip is little-endian and
: uses big-endian instead which causes protocol errors.

I have got the R5 CLX up and running, though with GCL version 1.1.
I have heard that GCL 2.0/2.1 somehow cause the socket code to break.
But the above error message looks familiar.

The h/386-linux.defs and h/386-linux.h that come with GCL 1.0/1.1 
are a bit weird. Somehow even "MC68020" gets pushed on the features 
list. Look for the file gcl-1.0-linux.tar.gz in the subdirectory 
devel/lisp on your favorite sunsite mirror. It contains working
copies of 386-linux.h and .defs files and a few patches to the 
source. 

After building gcl "I386" should be on your features list.
If you have compiled and loaded CLX ":CLX-LITTLE-ENDIAN" 
should be on your features list.   

Good luck,

Alex
-- 
Alexander Shendi                              shendi@saruman.lb.bawue.de
