Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ghost opened this issue May 3, 2019 · 3 comments
Open

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

ghost opened this issue May 3, 2019 · 3 comments

Comments

@ghost
Copy link

ghost commented May 3, 2019

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?

@ghost ghost changed the title macOS compilation fails with error in "tok_io.c" Compilation on macOS mojave fails with error in "tok_io.c" May 3, 2019
@triztian
Copy link

triztian commented Jun 18, 2019

I'm experiencing this same issue

@marcin-chwedczuk
Copy link

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 :(

@anchorz
Copy link

anchorz commented Sep 11, 2022

Thanks to look into it. I assume he changed compiler to GCC16.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants