dev86
dev86 copied to clipboard
Compilation on macOS mojave fails with error in "tok_io.c"
I am trying to compile dev86 for use on macOS. However, when following the README instructions, I get the following error:
/Library/Developer/CommandLineTools/usr/bin/make -C unproto CC='cc' CFLAGS=' -O2 -fno-strict-aliasing -no-cpp-precomp' LDFLAGS='' PREFIX=/usr LIBDIR='/usr/lib/bcc' BINDIR='/usr/bin' ANSI='' unproto
cc -O2 -fno-strict-aliasing -no-cpp-precomp -w -DREOPEN -c tok_io.c -o tok_io.o
tok_io.c:231:6: error: non-void function 'do_control' should return a value
[-Wreturn-type]
return;
^
tok_io.c:262:6: error: non-void function 'do_control' should return a value
[-Wreturn-type]
return;
^
tok_io.c:267:6: error: non-void function 'do_control' should return a value
[-Wreturn-type]
return;
^
3 errors generated.
make[3]: *** [tok_io.o] Error 1
make[2]: *** [unproto] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2
I cannot find this file and correct the error myself nor does recompiling seem to fix the issue. What is happening?
I'm experiencing this same issue
Throw -Wno-return-type
until it compiles (go to the directory with the file, edit Makefile in that directory by adding this flag to CCFLAGS variable).
Yeah, would be good to fix this, but looks like the project is no longer maintained :(
Thanks to look into it. I assume he changed compiler to GCC16.