Bug #4998
closedaddr2line.c with SunStudio (Oracle Solaris Studio) cc
Description
addr2line.c にて
#ifdef ELF
(中略)
#else /* defined(ELF) */
#error not supported
#endif
のように ELF の有無をチェックしていますが、Solaris の cc はこのマクロを定義しないようで、"not supported"になってしまいました。(sparc64で動くSolaris 10上のSun Studio 11とOracle Solaris Studio 12.2で確認)
ELF のかわりに、configureでELFを使っているかどうかチェックして定義されるマクロ USE_ELF を使うように変更したら、make test もPASSしました。
(make test-all は途中でSegmentation faultで落ちましたが、それは別件。)
パッチを添付します。
Files
Updated by naruse (Yui NARUSE) over 13 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r32461.
Naohisa, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
-
addr2line.c: use USE_ELF instead of ELF because Solaris
doesn't define it. USE_ELF is already provided by configure.
patched by Naohisa Goto. [ruby-dev:44066] [Bug #4998] -
addr2line.h: ditto.
-
vm_dump.c: ditto.