-
Notifications
You must be signed in to change notification settings - Fork 118
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
Core doesn't build correctly on GNU/Linux #557
Comments
can u check why unistd isnt included for your case? |
@m4xw I don't quite get the question. It was not included because it was not there. I had to add Still I don't get it, because as you can see the needed header file isn't present in those. The cause would be that.. it's not there :) I am using gcc version 14.2.0 (Debian 14.2.0-6) on Debian Trixie. Maybe on older GCC or lib versions, unistd was indirectly included on another header or something. |
its in zconf.h and gzguts.h so why its not being included for you? |
It's not in gzguts.h at all, and in zconf.h it's only included if certain conditions are met. But even so, only gzguts.h is included in |
What's more: in Makefile, |
gzguts includes zlib which includes zconf gzguts hides it behind emscripten so i guess we encountered it before, in your case it seems that largefile isnt defined and I think the have unistd define should be set via configure which we dont run. solution is either define Z_HAVE_UNISTD_H via -DZ_HAVE_UNISTD_H or enable largefile support |
(or just HAVE_UNISTD_H but that just defines Z_HAVE_UNISTD_H) |
I am fine with including -DHAVE_UNISTD_H
Yea i think so far it has been implicitly declared and thats not happy on gcc14 |
Hello, any news about the fix? Im unable to use the emulator in Raspberry Pi 5 64Bits + Retropie, the build fail because of this.. Thanks. |
Hello there,
I have tried to build latest GIT code today and I get this:
Was building working fine time ago.
The text was updated successfully, but these errors were encountered: