Issue #7287 has been updated by ngoto (Naohisa Goto).

Status changed from Closed to Open
Priority changed from Normal to Low

?????¿ç????¯ã?³ã?????????????¾ã?????????????¹æ?¬ç??解決??§ã?¯ã?ªã????®ã?§å??open?????¾ã?????
----------------------------------------
Bug #7287: please rename atomic.h which conflicts with /usr/include/atomic.h in Solaris10
https://bugs.ruby-lang.org/issues/7287#change-32475

Author: ngoto (Naohisa Goto)
Status: Open
Priority: Low
Assignee: 
Category: 
Target version: 
ruby -v: ruby 2.0.0dev (2012-11-05) [sparc64-solaris2.10]


Solaris10??«ã?¦ã??cc???fcc??ªã??gcc以å?????使ç?¨ã????¦ã?³ã?³ã????¤ã?«ã??????????¯ã??Ruby??½ã?¼ã?¹å????? atomic.h ??«ã?¦ã??以ä????®ã???????«ã?·ã?¹ã???????? atomic.h (/usr/include/atomic.h)???#include?????¦ã????¾ã?????

 #elif defined(__sun)
 #include <atomic.h>

#include "atomic.h" ??¨ã?¯é????£ã?? #include <atomic.h> ??®ã????????<>??§å?²ã????§ã???????®ã?§ã????·ã?¹ã???????®ã?????????????¡ã?¤ã?«ã????ªå?????????????¯ã???????¨æ????£ã?¦ã???????????å®???¯ã???????§ã?¯ã?ªã????configure?????³ã?³ã????¤ã?«æ????®ã?ªã????·ã?§ã?³ã?¨ã????? "-I." ???追å???????¦ã??????????????Ruby??½ã?¼ã?¹å?´ã?? atomic.h ??????読ã?¿è¾¼????????¨ã????§ã??????????©ã?????å¼µã?£ã?¦ã????·ã?¹ã???????? /usr/include/atomic.h ??¯èª­??¿è¾¼??¾ã????ªã???????¨ã????¤æ?????¾ã????????
?????®ã????????以ä????®ã????????"implicit function declaration"??®è­¦????????ºã?¾ã?????(è¡???ªå??r36984??®å?´å??)

 "gc.c", line 1421: warning: implicit function declaration: atomic_swap_uint
 "gc.c", line 1902: warning: implicit function declaration: atomic_or_uint
 "gc.c", line 1952: warning: implicit function declaration: atomic_swap_ulong

幸ã?????Solaris10?????????Illumos(???OpenSolaris)??®ç????¹ã?? /usr/include/atomic.h ??¯ã??å®?質ç????? ?????¨ã?? #include <sys/atomic.h> ?????¦ã?????????????§ã???????®ã?§ã??#include <sys/atomic.h> ???Ruby??? atomic.h ??«è¿½??????????????¨ã?§å??????????¿ã?§ã????¾ã????????????????????Solaris10???man?????¼ã??(man atomic_ops)??§ã?? atomic.h ???使ã??????????«æ??示ã??????????¦ã????????sys/atomic.h ??¯ã?«ã?¼ã????«å???????©ã?¤ã??å°???¨ã??????????®ã?§ã??OS??®å????¥ã?®ã????¼ã?¸ã?§ã?³ã?»ã?ªã????¸ã?§ã?³ã?§ã?¯æ????ªã?³ã?³ã????¤ã?«ã?§ã????ªã???ªã????½æ?§ã?¯æ????£ã?¦ã????¾ã???????¹æ?¬ç??解決ç­???¨ã????¦ã?¯ã??Ruby??´ã??atomic.h??®ã????¡ã?¤ã?«å???????????????????«å????´ã?????????????ªã????¨æ???????¾ã?????

?????¡ã?¤ã?«å??å¤???´ã???????¨ã????¯ã??ä»????OS?????©ã?¤ã????©ã?ªã?¨ã??被ã????ªã???????¨ã???????¾ã???????®ã?§è?¥å¹²èª¿ã?¹ã????¨ã????????
AIX 6.1 ??§ã?¯ã??#include <sys/atomic_op.h> ???????????§ã?????
http://pic.dhe.ibm.com/infocenter/aix/v6r1/index.jsp?topic=%2Fcom.ibm.aix.kerneltechref%2Fdoc%2Fktechrf1%2Ffetch_and_add.htm

BoehmGC ???è¦?æ±??????? libatomic_ops ??«ã?? atomic_ops.h ?????«ã?¾ã????¦ã?????????????§ã?????
https://github.com/ivmai/libatomic_ops/



-- 
http://bugs.ruby-lang.org/