Skip to content

Compilation on macOS mojave fails with error in "tok_io.c" #22

@ghost

Description

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions