glulxe
glulxe copied to clipboard
0.6.1 release linux build failed
👋 trying to build the latest release, but run into some build issue. The error log is as below:
error build log
cc -g -Wall -Wmissing-prototypes -Wno-unused -DOS_MAC -o glulxe main.o files.o vm.o exec.o funcs.o operand.o string.o glkop.o heap.o serial.o search.o accel.o float.o gestalt.o osdepend.o profile.o debugger.o unixstrt.o unixautosave.o -L/home/linuxbrew/.linuxbrew/opt/glktermw/lib -lglktermw -lncurses -lm
/usr/bin/ld: /home/linuxbrew/.linuxbrew/opt/glktermw/lib/libglktermw.a(gtfref.o): in function `glk_fileref_create_temp':
gtfref.c:(.text+0x283): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
/usr/bin/ld: osdepend.o: in function `glulx_random':
osdepend.c:(.text+0xb1): undefined reference to `arc4random'
collect2: error: ld returned 1 exit status
make: *** [Makefile:63: glulxe] Error 1
full build log, https://github.com/Homebrew/homebrew-core/actions/runs/6464229920/job/17549786395?pr=150379 relates to Homebrew/homebrew-core#150379
In the Makefile, change -DOS_MAC to -DOS_UNIX -DUNIX_RAND_GETRANDOM.
The tmpname() warning is old; the glkterm library is very unsupported at this point.