# \[ruby-trunk - Bug #6900\]\[Open\] execinfo ライブラリ（およびそのヘッダ）の探索に --with-opt-dir の指定が利かない

**URL:** <https://www.ruby-forum.com/t/ruby-trunk-bug-6900-open-execinfo-with-opt-dir/222275>\
**Category:** Development\
**Created:** [August 21, 2012, 5:11am UTC](https://www.ruby-forum.com/t/ruby-trunk-bug-6900-open-execinfo-with-opt-dir/222275 "2012-08-21T05:11:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [August 21, 2012, 5:11am UTC](https://www.ruby-forum.com/t/ruby-trunk-bug-6900-open-execinfo-with-opt-dir/222275/1 "2012-08-21T05:11:08Z")

</div>

Issue #6900 has been reported by metanest (Makoto K.).

* * *

Bug #6900: execinfo ライブラリ（およびそのヘッダ）の探索に --with-opt-dir の指定が利かない

> **[Bug #6900: execinfo ライブラリ（およびそのヘッダ）の探索に --with-opt-dir の指定が利かない - Ruby master...](https://bugs.ruby-lang.org/issues/6900)**
>
> Redmine

Author: metanest (Makoto K.)  
Status: Open  
Priority: Normal  
Assignee:  
Category: build  
Target version:  
ruby -v: ruby 2.0.0dev (2012-08-18 trunk 36726) [x86\_64-freebsd8.3]

手元の FreeBSD の環境で execinfo ライブラリは ports で入っていて、  
たとえば execinfo.h は /usr/local/include にあるのですが、  
–with-opt-dir=/usr/local と指定していても、

checking execinfo.h usability… no  
checking execinfo.h presence… no  
checking for execinfo.h… no

のようになります。

configure 実行時の環境変数で CPPFLAGS=-I/usr/local/include などのように  
明示的に指定してやれば yes にすることはできますが、–with-opt-dir で  
設定できてほしいと思います。

---

<div class="post-metadata">

**Author:** ![metanest\_SMakoto\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/3bc359/32.png) [@metanest\_SMakoto\_K](https://www.ruby-forum.com/u/metanest_SMakoto_K)\
**Post date:** [September 27, 2012, 12:27pm UTC](https://www.ruby-forum.com/t/ruby-trunk-bug-6900-open-execinfo-with-opt-dir/222275/2 "2012-09-27T12:27:31Z")

</div>

Issue #6900 has been updated by knu (Akinori MUSHA).

File opt-dir\_DLDFLAGS.diff added  
Status changed from Closed to Open  
ruby -v changed from ruby 2.0.0dev (2012-08-18 trunk 36726)  
[x86\_64-freebsd8.3] to ruby 2.0.0dev (2012-09-27 trunk 37039)  
[x86\_64-freebsd9]

手元のFreeBSD 9.1-PRERELEASE/amd64環境では、 --with-opt-dir=/usr/local  
を付けてもLIBRUBY\_SOのビルドでこけます。

(…)  
linking shared-library libruby.so.20  
/usr/bin/ld: cannot find -lexecinfo

## DLDFLAGSも手当てが必要と思いますがどうでしょう。

Bug #6900: execinfo ライブラリ（およびそのヘッダ）の探索に --with-opt-dir の指定が利かない

> **[Updated by knu (Akinori MUSHA) about 14 years ago ActionsCopy link 2... - Bug...](https://bugs.ruby-lang.org/issues/6900#change-29760)**
>
> This issue was solved with changeset r36788. Makoto, thank you for reporting this issue. Your contribution to Ruby is greatly appreciated. May Ruby be with you. | Redmine

Author: metanest (Makoto K.)  
Status: Open  
Priority: Normal  
Assignee:  
Category: build  
Target version:  
ruby -v: ruby 2.0.0dev (2012-09-27 trunk 37039) [x86\_64-freebsd9]

手元の FreeBSD の環境で execinfo ライブラリは ports で入っていて、  
たとえば execinfo.h は /usr/local/include にあるのですが、  
–with-opt-dir=/usr/local と指定していても、

checking execinfo.h usability… no  
checking execinfo.h presence… no  
checking for execinfo.h… no

のようになります。

configure 実行時の環境変数で CPPFLAGS=-I/usr/local/include などのように  
明示的に指定してやれば yes にすることはできますが、–with-opt-dir で  
設定できてほしいと思います。

---

<div class="post-metadata">

**Author:** ![metanest\_SMakoto\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/3bc359/32.png) [@metanest\_SMakoto\_K](https://www.ruby-forum.com/u/metanest_SMakoto_K)\
**Post date:** [September 30, 2012, 2:39pm UTC](https://www.ruby-forum.com/t/ruby-trunk-bug-6900-open-execinfo-with-opt-dir/222275/3 "2012-09-30T14:39:23Z")

</div>

Issue #6900 has been updated by naruse (Yui NARUSE).

knu (Akinori MUSHA) wrote:

> 手元のFreeBSD 9.1-PRERELEASE/amd64環境では、 --with-opt-dir=/usr/local  
> を付けてもLIBRUBY\_SOのビルドでこけます。
> 
> (…)  
> linking shared-library libruby.so.20  
> /usr/bin/ld: cannot find -lexecinfo
> 
> DLDFLAGSも手当てが必要と思いますがどうでしょう。

## なるほど、コミットしてください

Bug #6900: execinfo ライブラリ（およびそのヘッダ）の探索に --with-opt-dir の指定が利かない

> **[Updated by naruse (Yui NARUSE) about 14 years ago ActionsCopy link 3... - Bug...](https://bugs.ruby-lang.org/issues/6900#change-29810)**
>
> This issue was solved with changeset r36788. Makoto, thank you for reporting this issue. Your contribution to Ruby is greatly appreciated. May Ruby be with you. | Redmine

Author: metanest (Makoto K.)  
Status: Open  
Priority: Normal  
Assignee:  
Category: build  
Target version:  
ruby -v: ruby 2.0.0dev (2012-09-27 trunk 37039) [x86\_64-freebsd9]

手元の FreeBSD の環境で execinfo ライブラリは ports で入っていて、  
たとえば execinfo.h は /usr/local/include にあるのですが、  
–with-opt-dir=/usr/local と指定していても、

checking execinfo.h usability… no  
checking execinfo.h presence… no  
checking for execinfo.h… no

のようになります。

configure 実行時の環境変数で CPPFLAGS=-I/usr/local/include などのように  
明示的に指定してやれば yes にすることはできますが、–with-opt-dir で  
設定できてほしいと思います。

---

<div class="post-metadata">

**Author:** ![metanest\_SMakoto\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/3bc359/32.png) [@metanest\_SMakoto\_K](https://www.ruby-forum.com/u/metanest_SMakoto_K)\
**Post date:** [October 2, 2012, 6:17am UTC](https://www.ruby-forum.com/t/ruby-trunk-bug-6900-open-execinfo-with-opt-dir/222275/4 "2012-10-02T06:17:54Z")

</div>

Issue #6900 has been updated by knu (Akinori MUSHA).

Status changed from Open to Closed

## Fix committed in r37062.

Bug #6900: execinfo ライブラリ（およびそのヘッダ）の探索に --with-opt-dir の指定が利かない

> **[Updated by knu (Akinori MUSHA) about 14 years ago ActionsCopy link 4... - Bug...](https://bugs.ruby-lang.org/issues/6900#change-29932)**
>
> This issue was solved with changeset r36788. Makoto, thank you for reporting this issue. Your contribution to Ruby is greatly appreciated. May Ruby be with you. | Redmine

Author: metanest (Makoto K.)  
Status: Closed  
Priority: Normal  
Assignee:  
Category: build  
Target version:  
ruby -v: ruby 2.0.0dev (2012-09-27 trunk 37039) [x86\_64-freebsd9]

手元の FreeBSD の環境で execinfo ライブラリは ports で入っていて、  
たとえば execinfo.h は /usr/local/include にあるのですが、  
–with-opt-dir=/usr/local と指定していても、

checking execinfo.h usability… no  
checking execinfo.h presence… no  
checking for execinfo.h… no

のようになります。

configure 実行時の環境変数で CPPFLAGS=-I/usr/local/include などのように  
明示的に指定してやれば yes にすることはできますが、–with-opt-dir で  
設定できてほしいと思います。
