Project

General

Profile

Actions

Bug #6900

closed

execinfo ライブラリ(およびそのヘッダ)の探索に --with-opt-dir の指定が利かない

Added by metanest (Makoto Kishimoto) over 11 years ago. Updated over 11 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.0.0dev (2012-09-27 trunk 37039) [x86_64-freebsd9]
Backport:
[ruby-dev:46064]

Description

手元の 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 で
設定できてほしいと思います。


Files

opt-dir_DLDFLAGS.diff (1.05 KB) opt-dir_DLDFLAGS.diff knu (Akinori MUSHA), 09/27/2012 07:27 PM
Actions #1

Updated by naruse (Yui NARUSE) over 11 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

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.


Updated by knu (Akinori MUSHA) over 11 years ago

  • File opt-dir_DLDFLAGS.diff 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も手当てが必要と思いますがどうでしょう。

Updated by naruse (Yui NARUSE) over 11 years ago

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も手当てが必要と思いますがどうでしょう。

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

Updated by knu (Akinori MUSHA) over 11 years ago

  • Status changed from Open to Closed

Fix committed in r37062.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0