In Mingw, I get the following with trunk
gcc -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses
-Wpointer-arith -Wwrite-strings -Wno-long-long -I.
-I.ext/include/i386-mingw32 -I./include -I. -DRUBY_EXPORT -o win32.o
-c ./win32/win32.c
./win32/win32.c:5277: error: syntax error before "sizeof"
make: *** [win32.o] Error 1
Following seems to help it.
Index: win32.c
===================================================================
--- win32.c (revision 26818)
+++ win32.c (working copy)
@@ -5273,6 +5273,7 @@
}
#endif
+#ifndef signbit
int
signbit(double x)
{
@@ -5283,3 +5284,4 @@
# error not supported
#endif
}
+#endif
\ No newline at end of file
though I'm not sure if that's the best way or not. Appears mingw
already defines signbit for us?
-rp
on 2010-03-04 20:39
on 2010-03-04 21:56
> In Mingw, I get the following with trunk > > gcc -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses > -Wpointer-arith -Wwrite-strings -Wno-long-long -I. > -I.ext/include/i386-mingw32 -I./include -I. -DRUBY_EXPORT -o win32.o > -c ./win32/win32.c > ./win32/win32.c:5277: error: syntax error before "sizeof" > make: *** [win32.o] Error 1 I can confirm when attempting to build both 26818 and 26819 with Msys/Mingw using gcc 4.4.0: gcc -O0 -pipe -g3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite -strings -Wno-missing-field-initializers -Wno-long-long -I. -I.ext/include/i386-mingw32 -I./in clude -I. -DRUBY_EXPORT -Ic:/gnuwin32/zlib/include -o win32.o -c ./win32/win32.c ./win32/win32.c: In function 'rb_w32_map_errno': ./win32/win32.c:184: warning: comparison between signed and unsigned integer expressions ./win32/win32.c: In function 'rb_w32_aspawn': ./win32/win32.c:1139: warning: comparison between signed and unsigned integer expressions ./win32/win32.c: In function 'winnt_stat': ./win32/win32.c:3978: warning: comparison between signed and unsigned integer expressions ./win32/win32.c: In function 'rb_chsize': ./win32/win32.c:4094: warning: comparison between signed and unsigned integer expressions ./win32/win32.c: At top level: ./win32/win32.c:5277: error: expected identifier or '(' before 'sizeof' make: *** [win32.o] Error 1
on 2010-03-05 04:24
Hi, At Fri, 5 Mar 2010 04:38:22 +0900, Roger Pack wrote in [ruby-core:28484]: > though I'm not sure if that's the best way or not. Appears mingw > already defines signbit for us? I've forgotten to commit the fix. Thank you.
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.