stoonboii10 / garglk

Automatically exported from code.google.com/p/garglk
Other
0 stars 0 forks source link

Error in Level 9 interpreter on linux #61

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Running gargoyle with Gnome Ranger or Knight Orc

What is the expected output? What do you see instead?
The windows version of gargoyle (both december 2008 and the preversion
2009) are working ok with level 9 games (including pictures). The linux
versions (including the current svn version) are displaying garbage:
The beginning of a game session:

[Gnome ranger, pt. 1 (PC)
Southeast gnow" messages. .
>and
What gnow? ": "": a : the : an : some

On knight orc the game is getting a segfault at the first command.

What version of the product are you using? On what operating system?
2008-12-25 and svn version on i686 linux (archlinux).

Please provide any additional information below.

Not related to this bug, but btw the current svn version doesn't compile:

...failed Cc build/linux.release/garglk/config.o ...
Cc build/linux.release/garglk/imgload.o 
In file included from garglk/imgload.c:8:
garglk/glk.h:27:32: error: missing '(' in expression

In fact there is an extra ")" in this line:
#elif (ULONG_MAX) == 4294967295)

(and also in terps/nitfol/glk.h)

Original issue reported on code.google.com by escli...@gmail.com on 11 May 2009 at 7:24

GoogleCodeExporter commented 8 years ago
in addition, an old version of gargoyle (can't tell the exact version I'm 
afraid), is
displaying some correct games on the same Level 9 files (without pictures 
though)

Original comment by escli...@gmail.com on 11 May 2009 at 7:25

GoogleCodeExporter commented 8 years ago
this is a duplicate of issue 52, a temporary workaround patch was provided 
there.
this is due to the incompatibility of level9 interpreter's code with newer gcc
versions. i've put working ubuntu packages in my ppa
(https://launchpad.net/~thir/+archive/ppa), should you need a working binary 
for now.
for the pictures to show, files have to be named properly, e.g. all lower-case, 
see
http://code.google.com/p/garglk/source/browse/trunk/terps/level9/level9.txt for
detailed naming conventions.

Original comment by lordofch...@gmail.com on 17 May 2009 at 1:15

GoogleCodeExporter commented 8 years ago
My distro has only 4.4.0.

For the pictures, I think the windows terp was working because it's not 
sensible to case.

thank you for telling me all this.

Original comment by eforg...@gmail.com on 18 May 2009 at 6:32

GoogleCodeExporter commented 8 years ago
Oops - I'll fix the extra parens in the glk.h files.  Never noticed them before 
and
earlier gcc didn't complain.

Level 9 may be difficult to get working under newer gcc.  I read through the 4.3
changelogs and saw a few compatibility changes noted, but I don't understand 
the L9
code enough to know where the overlap is.

Original comment by bcressey@gmail.com on 2 Jun 2009 at 5:16

GoogleCodeExporter commented 8 years ago
Issue 63 has been merged into this issue.

Original comment by bcressey@gmail.com on 2 Jun 2009 at 5:18

GoogleCodeExporter commented 8 years ago

Original comment by bcressey@gmail.com on 2 Jun 2009 at 9:43