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/