Bug #6900

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

Added by Makoto Kishimoto over 1 year ago. Updated over 1 year ago.

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

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

opt-dir_DLDFLAGS.diff Magnifier (1.05 KB) Akinori MUSHA, 09/27/2012 07:27 PM

Associated revisions

Revision 36788
Added by Yui NARUSE over 1 year ago

  • configure.in: use the value of --with-opt-dir on building ruby itself. [Bug #6900]

History

#1 Updated by Yui NARUSE over 1 year 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.


  • configure.in: use the value of --with-opt-dir on building ruby itself. [Bug #6900]

#2 Updated by Akinori MUSHA over 1 year ago

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

#3 Updated by Yui NARUSE over 1 year 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も手当てが必要と思いますがどうでしょう。

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

#4 Updated by Akinori MUSHA over 1 year ago

  • Status changed from Open to Closed

Fix committed in r37062.

Also available in: Atom PDF