Wayne Conrad
2006-Oct-14 03:30 UTC
[fxruby-users] Build error: Debian testing, libfox1.4, FXRuby-1.4.7
I''m getting compile errors when attempting to build FXRuby 1.4.7. This happens when installing using gems, or when installing from source: g++ -I. -I. -I/usr/lib/ruby/1.8/i486-linux -I/home/wayne/lab/fox/FXRuby-1.4.7/ext/fox14 -DHAVE_SYS_TIME_H -DHAVE_SIGNAL_H -I/usr/local/include/fxscintilla -I/usr/local/include/fox-1.4 -I/usr/include/fox-1.4 -fPIC -Wall -g -fno-strict-aliasing -O2 -fPIC -O0 -Iinclude -c fx3d_wrap.cpp fx3d_wrap.cpp: In function ''FX::FXVec3f FXVec3f_normal(const FX::FXVec3f&, const FX::FXVec3f&, const FX::FXVec3f&)'': fx3d_wrap.cpp:705: error: no matching function for call to ''normal(const FX::FXVec3f&, const FX::FXVec3f&, const FX::FXVec3f&)'' fx3d_wrap.cpp: In function ''FX::FXVec3f FXVec3f_normal(const FX::FXVec3f&, const FX::FXVec3f&, const FX::FXVec3f&, const FX::FXVec3f&)'': fx3d_wrap.cpp:708: error: no matching function for call to ''normal(const FX::FXVec3f&, const FX::FXVec3f&, const FX::FXVec3f&, const FX::FXVec3f&)'' ... My environment: Debian testing Ruby 1.8.2-1 Fox 1.4, from Debian packages libfox1.4 and libfox1.4-dev (package versions 1.4.31-2+b1) Any idea what''s up? No doubt I''ve left off the one thing that would help you figure out what I''m doing wrong. Requests for more information will be gladly acted upon. RTFM''s including a link to the FM would be most welcome. And clues, should you have any, will be gratefully received. Wayne Conrad
Lyle Johnson
2006-Oct-14 12:47 UTC
[fxruby-users] Build error: Debian testing, libfox1.4, FXRuby-1.4.7
On Oct 13, 2006, at 10:30 PM, Wayne Conrad wrote:> I''m getting compile errors when attempting to build FXRuby 1.4.7. > This happens when installing using gems, or when installing from > source: > > g++ -I. -I. -I/usr/lib/ruby/1.8/i486-linux -I/home/wayne/lab/fox/ > FXRuby-1.4.7/ext/fox14 -DHAVE_SYS_TIME_H -DHAVE_SIGNAL_H -I/usr/ > local/include/fxscintilla -I/usr/local/include/fox-1.4 -I/usr/ > include/fox-1.4 -fPIC -Wall -g -fno-strict-aliasing -O2 -fPIC -O0 - > Iinclude -c fx3d_wrap.cpp > fx3d_wrap.cpp: In function ''FX::FXVec3f FXVec3f_normal(const > FX::FXVec3f&, const FX::FXVec3f&, const FX::FXVec3f&)'': > fx3d_wrap.cpp:705: error: no matching function for call to ''normal > (const FX::FXVec3f&, const FX::FXVec3f&, const FX::FXVec3f&)'' > fx3d_wrap.cpp: In function ''FX::FXVec3f FXVec3f_normal(const > FX::FXVec3f&, const FX::FXVec3f&, const FX::FXVec3f&, const > FX::FXVec3f&)'': > fx3d_wrap.cpp:708: error: no matching function for call to ''normal > (const FX::FXVec3f&, const FX::FXVec3f&, const FX::FXVec3f&, const > FX::FXVec3f&)'' > ... > > My environment: > > Debian testing > Ruby 1.8.2-1 > Fox 1.4, from Debian packages libfox1.4 and libfox1.4-dev > (package versions 1.4.31-2+b1) > > Any idea what''s up?Well, I guess for starters, can you confirm that Debian installs the FOX include files into either /usr/local/include/fox-1.4 or /usr/ include/fox-1.4? I think the compiler is in fact seeing the include files, but I just wanted to rule out that possibility up front. I''m also wondering if it has to do with the "friend injection" change made in GCC 4.1, which I know broke some earlier versions of FOX. Jeroen put a patch in FOX 1.4.32 to address this problem. Do you know which version of FOX Debian is using for their libfox1.4 packages?
Wayne Conrad
2006-Oct-14 14:15 UTC
[fxruby-users] Build error: Debian testing, libfox1.4, FXRuby-1.4.7
On Sat, Oct 14, 2006 at 07:47:54AM -0500, Lyle Johnson wrote:> On Oct 13, 2006, at 10:30 PM, Wayne Conrad wrote: > > fx3d_wrap.cpp:705: error: no matching function for call to ''normal > > (const FX::FXVec3f&, const FX::FXVec3f&, const FX::FXVec3f&)''> Well, I guess for starters, can you confirm that Debian installs the > FOX include files into either /usr/local/include/fox-1.4 or /usr/ > include/fox-1.4? I think the compiler is in fact seeing the include > files, but I just wanted to rule out that possibility up front.I find bunches of files in /usr/include/fox-1.4> I''m also wondering if it has to do with the "friend injection" change > made in GCC 4.1, which I know broke some earlier versions of FOX. > Jeroen put a patch in FOX 1.4.32 to address this problem. Do you know > which version of FOX Debian is using for their libfox1.4 packages?My g++ is version 4.1.1. Fox 1.4.31. With Debian version numbers, everything before the dash is the original package''s version. I see that Fox version 1.4.34 is in Debian unstable. I''ll install it, see if it fixes things, and let you know. Wayne Conrad
Wayne Conrad
2006-Oct-14 14:44 UTC
[fxruby-users] Build error: Debian testing, libfox1.4, FXRuby-1.4.7
On Sat, Oct 14, 2006 at 07:15:01AM -0700, Wayne Conrad wrote:> I see that Fox version 1.4.34 is in Debian unstable. I''ll install it, > see if it fixes things, and let you know.That did it. After installing Fox 1.4.34, FXRuby 1.4.7 compiled from source and installed alright. "require ''fox14''" now works. Strangely, I couldn''t get it to install using gem, which complained "make: Nothing to be done for ''install''.". No worries, since it installed from source alright. Thanks for the help! Wayne Conrad
Lyle Johnson
2006-Oct-14 16:52 UTC
[fxruby-users] Build error: Debian testing, libfox1.4, FXRuby-1.4.7
On Oct 14, 2006, at 9:44 AM, Wayne Conrad wrote:> That did it. After installing Fox 1.4.34, FXRuby 1.4.7 compiled from > source and installed alright. "require ''fox14''" now works.Great!> Strangely, I couldn''t get it to install using gem, which complained > "make: Nothing to be done for ''install''.". No worries, since > it installed from source alright.There is a known (and reported) bug with the latest release of RubyGems: http://rubyforge.org/tracker/? func=detail&aid=4948&group_id=126&atid=575 I believe that a fix for this problem has been checked into the RubyGems CVS, so it should be corrected in the next RubyGems release.