cspiegel / terps

4 stars 2 forks source link

Compiling against remglk stop at glulxe #2

Closed cibersheep closed 7 years ago

cibersheep commented 7 years ago

Hi! Thanks for your work. I have found this issue: I downloaded remglk and uncompress it in its folder and the followed the rest of th instructions of the read me. It builds adsys, agility, alan2 and 3, bocfel, frotz, git, jacl, level9, magnetic, nitfol, scare and scott with no errors, then: [...]

Scanning dependencies of target glulxe
[ 58%] Building C object CMakeFiles/glulxe.dir/glulxe/main.c.o
[ 58%] Building C object CMakeFiles/glulxe.dir/glulxe/files.c.o
[ 58%] Building C object CMakeFiles/glulxe.dir/glulxe/vm.c.o
[ 58%] Building C object CMakeFiles/glulxe.dir/glulxe/exec.c.o
[ 59%] Building C object CMakeFiles/glulxe.dir/glulxe/funcs.c.o
[ 59%] Building C object CMakeFiles/glulxe.dir/glulxe/operand.c.o
[ 59%] Building C object CMakeFiles/glulxe.dir/glulxe/string.c.o
[ 59%] Building C object CMakeFiles/glulxe.dir/glulxe/glkop.c.o
[ 59%] Building C object CMakeFiles/glulxe.dir/glulxe/heap.c.o
[ 60%] Building C object CMakeFiles/glulxe.dir/glulxe/serial.c.o
[ 60%] Building C object CMakeFiles/glulxe.dir/glulxe/search.c.o
[ 60%] Building C object CMakeFiles/glulxe.dir/glulxe/gestalt.c.o
[ 60%] Building C object CMakeFiles/glulxe.dir/glulxe/osdepend.c.o
[ 61%] Building C object CMakeFiles/glulxe.dir/glulxe/unixstrt.c.o
[ 61%] Building C object CMakeFiles/glulxe.dir/glulxe/accel.c.o
[ 61%] Building C object CMakeFiles/glulxe.dir/glulxe/profile.c.o
[ 61%] Building C object CMakeFiles/glulxe.dir/glulxe/float.c.o
[ 61%] Linking C executable glulxe
remglk/libglk.a(rgfref.c.o): At function `glk_fileref_create_temp':
rgfref.c:(.text+0x2bf): warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'
CMakeFiles/glulxe.dir/glulxe/glkop.c.o: At function `init_dispatch':
glkop.c:(.text+0x10b): reference to `gidispatch_set_autorestore_registry' not defined
collect2: error: ld returned 1 exit status
CMakeFiles/glulxe.dir/build.make:511: failure in the instructions for target 'glulxe'
make[2]: *** [glulxe] Error 1
CMakeFiles/Makefile2:548: failure in the instructions for target 'CMakeFiles/glulxe.dir/all'
make[1]: *** [CMakeFiles/glulxe.dir/all] Error 2
Makefile:127: failure in the instructions for target 'all'
make: *** [all] Error 2
cspiegel commented 7 years ago

This is a bug in the latest released version of remglk (0.2.6). It's been since fixed in the github repo available at https://github.com/erkyrath/remglk.

cibersheep commented 7 years ago

Great! Thanks, I had downloaded the version from the website, not from the github page. Now it works