Eval.c compile error

e$B0J2<$N$h$&$K!"%3%s%Q%$%k%(%i!<$K$J$j$^$9!#e(B

% make
gcc -Wall -Wformat=2 -O2 -g -DRUBY_GC_STRESS -DRUBY_EXPORT -I. -I. -c
eval.c
eval.c:238: error: static declaration of ‘rb_cBinding’ follows
non-static declaration
ruby.h:647: error: previous declaration of ‘rb_cBinding’ was here
eval.c:248: error: static declaration of ‘rb_cUnboundMethod’ follows
non-static declaration
ruby.h:675: error: previous declaration of ‘rb_cUnboundMethod’ was here
eval.c: In function ‘search_method’:
eval.c:477: warning: dereferencing type-punned pointer will break
strict-aliasing rules
eval.c:484: warning: dereferencing type-punned pointer will break
strict-aliasing rules
eval.c: In function ‘remove_method’:
eval.c:581: warning: dereferencing type-punned pointer will break
strict-aliasing rules
eval.c: At top level:
eval.c:744: error: static declaration of ‘rb_eLocalJumpError’ follows
non-static declaration
ruby.h:698: error: previous declaration of ‘rb_eLocalJumpError’ was here
eval.c:745: error: static declaration of ‘rb_eSysStackError’ follows
non-static declaration
ruby.h:699: error: previous declaration of ‘rb_eSysStackError’ was here
eval.c: In function ‘error_print’:
eval.c:1281: warning: suggest parentheses around assignment used as
truth value
eval.c: In function ‘rb_alias’:
eval.c:2086: warning: dereferencing type-punned pointer will break
strict-aliasing rules
eval.c: In function ‘rb_eval’:
eval.c:3801: warning: dereferencing type-punned pointer will break
strict-aliasing rules
eval.c: In function ‘rb_interrupt’:
eval.c:4447: warning: zero-length printf format string
eval.c: In function ‘break_jump’:
eval.c:4637: warning: unused variable ‘yield’
eval.c: In function ‘rb_rescue2’:
eval.c:5286: warning: suggest parentheses around assignment used as
truth value
eval.c: In function ‘search_required’:
eval.c:6954: warning: suggest parentheses around assignment used as
truth value
eval.c:6978: warning: suggest parentheses around assignment used as
truth value
eval.c:6989: warning: suggest parentheses around assignment used as
truth value
eval.c: In function ‘rb_require_safe’:
eval.c:7101: warning: dereferencing type-punned pointer will break
strict-aliasing rules
eval.c: In function ‘Init_eval’:
eval.c:7846: warning: dereferencing type-punned pointer will break
strict-aliasing rules
eval.c:7847: warning: dereferencing type-punned pointer will break
strict-aliasing rules
eval.c:7848: warning: dereferencing type-punned pointer will break
strict-aliasing rules
eval.c:7861: warning: dereferencing type-punned pointer will break
strict-aliasing rules
eval.c: In function ‘rb_thread_create’:
eval.c:12020: warning: dereferencing type-punned pointer will break
strict-aliasing rules
eval.c: At top level:
eval.c:12696: error: static declaration of ‘rb_cCont’ follows non-static
declaration
ruby.h:649: error: previous declaration of ‘rb_cCont’ was here
% gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: …/src/configure -v
–enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr
–enable-shared --with-system-zlib --libexecdir=/usr/lib
–without-included-gettext --enable-threads=posix --enable-nls
–program-suffix=-4.0 --enable-__cxa_atexit --enable-clocale=gnu
–enable-libstdcxx-debug --enable-java-awt=gtk-default
–enable-gtk-cairo
–with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre
–enable-mpfr --disable-werror --with-tune=i686
–enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.0.3 (Debian 4.0.3-1)
% cvs status eval.c ruby.h

File: eval.c Status: Up-to-date

Working revision: 1.924
Repository revision: 1.924 /src/ruby/eval.c,v
Sticky Tag: (none)
Sticky Date: (none)
Sticky Options: -ko

===================================================================
File: ruby.h Status: Up-to-date

Working revision: 1.145
Repository revision: 1.145 /src/ruby/ruby.h,v
Sticky Tag: (none)
Sticky Date: (none)
Sticky Options: -ko

boron e$B$G$O5/$-$F$J$$$s$G$9$,!"$I$&$be(B gcc e$B$N%P!<%8%g%s$_$?$$e(B
e$B$G$9$M!#e(B

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs