Bug #3281
closedfail to build fiddle on Debian/lenny by default
Description
=begin
Hi Aaron --
fiddle cannot be built on Debian/lenny by default, because extconf.rb
fails to find ffi.h. It can be built by specifying the path:
./configure --with-libffi-include=/usr/include/i486-linux-gnu
But I think it should be built by default on Debian/lenny because it
is the supported platform.
The following patch works for me, but I don't know whether it works
on other platforms.
diff --git a/ext/fiddle/extconf.rb b/ext/fiddle/extconf.rb
index 87c5c9e..9e5536d 100644
--- a/ext/fiddle/extconf.rb
+++ b/ext/fiddle/extconf.rb
@@ -2,7 +2,7 @@ require 'mkmf'
:stopdoc:¶
-dir_config 'libffi'
+dir_config 'libffi', "/usr/include/i486-linux-gnu", "/usr/lib"
unless have_header('ffi.h')
if have_header('ffi/ffi.h')
--
Yusuke Endoh mame@tsg.ne.jp
=end
Updated by mame (Yusuke Endoh) over 14 years ago
- Status changed from Open to Rejected
=begin
Hi,
2010/5/12 Tanaka Akira akr@fsij.org:
I can build fiddle on Debian GNU/Linux (lenny) by default. Strange.
No such configure argument required for me.
Ah, my apologies! I remember that I'm using gcc build from source.
It works well with gcc of Debian package.
Sorry for noise.
--
Yusuke Endoh mame@tsg.ne.jp
=end