-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Build fail on windows #6341
Comments
HPCE/hpce-2015-cw2#3 diff --git a/shlr/zip/zip/zip_close.c b/shlr/zip/zip/zip_close.c
index 42fa58c..d32f84a 100644
--- a/shlr/zip/zip/zip_close.c
+++ b/shlr/zip/zip/zip_close.c
@@ -642,7 +642,7 @@ _zip_create_temp_output(struct zip *za, FILE **outp)
According to Pierre Joye, Windows in some environments per
default creates text files, so force binary mode.
*/
- _setmode(_fileno(tfp), _O_BINARY );
+ //_setmode(_fileno(tfp), _O_BINARY );
#endif
*outp = tfp; |
@circleous Why are you closed it? |
The program runs fine so far. So, i thought for closing this. |
No, but the bug itself remains. |
commenting this fixes the build but breaks the usage. O_BINARY should be available on windows. mainly because its windows-only flag |
pushed a fix. pls confirm i dont have such env to test |
Ping?
… On 19 Dec 2016, at 12:17, Anton Kochkov ***@***.***> wrote:
No, but the bug itself remains.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
|
Maybe the instructions are wrong? i just do sys/mingw32.sh and it builds fine on osx and linux |
Oddly enough, build runs fine on cygwin x86 windows. So, i'm guessing |
Well, Cygwin 32/64, Mingw32 on Windows and Mingw32 on *nix, Mingw-w64, MSYS2, etc - everything is different and use different architectures. @circleous Can you please provide a full build log? |
I dont see the point on providing support for over9000 reimplementations of the same crappy abstractions of unix on top of windows when native windows builds work fine
… On 20 Dec 2016, at 10:37, Anton Kochkov ***@***.***> wrote:
Well, Cygwin 32/64, Mingw32 on Windows and Mingw32 on *nix, Mingw-w64, MSYS2, etc - everything is different and use different architectures. @circleous Can you please provide a full build log?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
well, Mingw32 is not very 'native' one, unlike Mingw-w64. Cygwin provides unix-like experience of radare2 on windows - true colors, piping with unix utils, etc. Mingw32 can be easily integrated with Visual Studio and so on. It's different target auditory. |
I can't reproduce it on my environment. @circleous are you? |
Sorry for the wait. http://sprunge.us/ihHC |
For reference
… On 23 Dec 2016, at 10:55, Kyra Sierra ***@***.***> wrote:
Sorry for the wait. http://sprunge.us/ihHC
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
_fileno should be defined in stdio.h . see https://msdn.microsoft.com/en-us/library/zs6wbdhx.aspx |
So, as long as the fopen is done with the 'b' bit. this thing is totally unnecessary, i have just commented out. pls confirm its fixed |
Yep, build is fine now. |
Then close |
I'm trying to build radare2 on windows using mingw-w64 (MSYS2).
Following radare gitbooks windows compilation instruction.
Fails when trying to run
make
The text was updated successfully, but these errors were encountered: