# Eval.c compile error

**URL:** <https://www.ruby-forum.com/t/eval-c-compile-error/99182>\
**Category:** Development\
**Created:** [July 20, 2006, 9:03pm UTC](https://www.ruby-forum.com/t/eval-c-compile-error/99182 "2006-07-20T21:03:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tanaka\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/c67d28/32.png) [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Post date:** [July 20, 2006, 9:03pm UTC](https://www.ruby-forum.com/t/eval-c-compile-error/99182/1 "2006-07-20T21:03:37Z")

</div>

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
