hugs on powerpc with linux

Stefan Heimann mail@stefanheimann.net
Thu, 6 Jun 2002 22:42:31 +0200


Hi!

I have tried to install Hugs on a Apple Powerbook G3, running
debian. It does not work. 

First I get:

gcc -c -g   -O2 input.c
input.c: In function `nextLine':
input.c:516: warning: comparison is always false due to limited range
of data type

Then I changed the type of lineBuffer in input.c from *char to
*int. The compile error disapperead, instead I got 2 warnings: 

gcc -c -g   -O2 input.c
input.c: In function `nextLine':
input.c:546: warning: passing arg 2 of `linecmp' from incompatible
pointer type
input.c:558: warning: passing arg 2 of `linecmp' from incompatible
pointer type

So I added the two necessary casts.

Now compilation went fine, but when I try to start a program, the
following happens:

Reading file "/usr/local/share/hugs/lib/exts/IORef.lhs":
ERROR "/usr/local/share/hugs/lib/exts/IORef.lhs":40 - Empty script -
perhaps you forgot the `>'s?

There seems to be a problem with

  if (linecmp(BEGINCODE, (char*)lineBuffer)) {  input.c, line 545

and

  else if (linecmp(ENDCODE, (char*)lineBuffer)) { input.c, line 557


Bye,
  Stefan

-- 
Stefan Heimann       | http://www.stefanheimann.net
Brandensteinstr. 5   | http://www.cantaloop.org
D-79110 Freiburg     | http://cvsshell.sourceforge.net