# \[Bug #3593\] cont.c$B$G(B"PAGE\_SIZE" redefined

**URL:** <https://www.ruby-forum.com/t/bug-3593-cont-c-b-g-b-page-size-redefined/191955>\
**Category:** Development\
**Created:** [July 21, 2010, 10:20am UTC](https://www.ruby-forum.com/t/bug-3593-cont-c-b-g-b-page-size-redefined/191955 "2010-07-21T10:20:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yui\_NARUSE](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/8edcca/32.png) [@Yui\_NARUSE](https://www.ruby-forum.com/u/Yui_NARUSE)\
**Post date:** [July 21, 2010, 10:20am UTC](https://www.ruby-forum.com/t/bug-3593-cont-c-b-g-b-page-size-redefined/191955/1 "2010-07-21T10:20:53Z")

</div>

Bug #3593: cont.ce$B$Ge(B"PAGE\_SIZE" redefined  
[http://redmine.ruby-lang.org/issues/show/3593](http://redmine.ruby-lang.org/issues/show/3593)

e$B5/I\<\<Te(B: Yui NARUSE  
e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal  
e$BC4Ev\<Te(B: Koichi Sasada, Target version: 1.9.2  
ruby -v: ruby 1.9.3dev (2010-07-21 trunk 28703) [x86\_64-freebsd8.1]

cont.ce$B$G0J2\<$N$h$&$Je(Bwarninge$B$,$G$^$9!#e(B  
ifndefe$B$r;H$&$Y$-$+!"e(BRB\_PAGE\_SIZEe$B$J$I$HJL$NL\>A0$r;H$&$Y$-$+LB$C$?$N$G!"BP=h$\*4j$$$7$^$9!#e(B  
…/…/ruby/cont.c:45:1: warning: “PAGE\_SIZE” redefined  
In file included from /usr/include/sys/param.h:110,  
from /usr/include/pthread\_np.h:34,  
from …/…/ruby/thread\_pthread.h:16,  
from …/…/ruby/vm\_core.h:29,  
from …/…/ruby/cont.c:13:  
/usr/include/machine/param.h:100:1: warning: this is the location of the  
previous definition  
…/…/ruby/cont.c:46:1: warning: “PAGE\_MASK” redefined  
/usr/include/machine/param.h:101:1: warning: this is the location of the  
previous definition  
…/…/ruby/cont.c:45:1: warning: “PAGE\_SIZE” redefined  
In file included from /usr/include/sys/param.h:111,  
from /usr/include/pthread\_np.h:35,  
from …/…/ruby/thread\_pthread.h:17,  
from …/…/ruby/vm\_core.h:30,  
from …/…/ruby/cont.c:14:  
/usr/include/machine/param.h:100:1: warning: this is the location of the  
previous definition  
…/…/ruby/cont.c:46:1: warning: “PAGE\_MASK” redefined  
/usr/include/machine/param.h:101:1: warning: this is the location of the  
previous definition  
…/…/ruby/cont.c: In function ‘fiber\_initialize\_machine\_stack\_context’:  
…/…/ruby/cont.c:567: warning: assignment from incompatible pointer  
type

---

<div class="post-metadata">

**Author:** ![Yui\_NARUSE](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/8edcca/32.png) [@Yui\_NARUSE](https://www.ruby-forum.com/u/Yui_NARUSE)\
**Post date:** [July 28, 2010, 2:27am UTC](https://www.ruby-forum.com/t/bug-3593-cont-c-b-g-b-page-size-redefined/191955/2 "2010-07-28T02:27:41Z")

</div>

e$B%A%1%C%He(B #3593 e$B$,99?7$5$l$^$7$?!#e(B (by Yui NARUSE)

e$B%9%F!\<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B  
e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B

This issue was solved with changeset r28768.  
Yui, thank you for reporting this issue.  
Your contribution to Ruby is greatly appreciated.  
May Ruby be with you.

* * *

[http://redmine.ruby-lang.org/issues/show/3593](http://redmine.ruby-lang.org/issues/show/3593)
