[fxruby-users] fxruby-1.6.17 failure to compile

Len Lawrence lcl at tarazed.demon.co.uk
Tue Dec 23 19:34:05 EST 2008


Downloaded fxruby-1.6.17.gem
Switched to root
gem install --local ./fxruby-1.6.17.gem

Extracts from the error reports:

In file included from include/FXRuby.h:825,
from include/FXRbCommon.h:93,
from FXRuby.cpp:31:
include/inlinestubs.h: In function ‘void FXApp_init(FX::FXApp*, VALUE, 
bool)’:
include/inlinestubs.h:20: warning: deprecated conversion from string 
constant to ‘char*’
FXRuby.cpp: In function ‘void FXRbRegisterRubyObj(VALUE, const void*)’:
FXRuby.cpp:253: error: cast from ‘const void*’ to ‘unsigned int’ loses 
precision
FXRuby.cpp: In function ‘ID FXRbLookupHandler(FX::FXObject*, 
FX::FXSelector)’:
FXRuby.cpp:1194: error: cast from ‘FX::FXObject*’ to ‘unsigned int’ 
loses precision
FXRuby.cpp: In function ‘long int FXRbHandleMessage(FX::FXObject*, ID, 
FX::FXObject*, FX::FXSelector, void*)’:
FXRuby.cpp:1265: error: cast from ‘FX::FXObject*’ to ‘unsigned int’ 
loses precision
FXRuby.cpp: At global scope:
FXRuby.cpp:1852: warning: deprecated conversion from string constant to 
‘char*’

and

FXRuby.cpp:1852: warning: deprecated conversion from string constant to 
‘char*’
FXRuby.cpp: In function ‘void 
FXRbRegisterAppSensitiveObject(FX::FXObject*)’:
FXRuby.cpp:1888: error: cast from ‘FX::FXObject*’ to ‘unsigned int’ 
loses precision
FXRuby.cpp: In function ‘void FXRbRegisterAppSensitiveObject(FX::FXDC*)’:
FXRuby.cpp:1895: error: cast from ‘FX::FXDC*’ to ‘unsigned int’ loses 
precision
FXRuby.cpp: In function ‘void 
FXRbUnregisterAppSensitiveObject(FX::FXObject*)’:
FXRuby.cpp:1902: error: cast from ‘FX::FXObject*’ to ‘unsigned int’ 
loses precision
FXRuby.cpp: In function ‘void FXRbUnregisterAppSensitiveObject(FX::FXDC*)’:
FXRuby.cpp:1909: error: cast from ‘FX::FXDC*’ to ‘unsigned int’ loses 
precision
make: *** [FXRuby.o] Error 1


Gem files will remain installed in 
/usr/lib64/ruby/gems/1.8/gems/fxruby-1.6.17 for inspection.
Results logged to 
/usr/lib64/ruby/gems/1.8/gems/fxruby-1.6.17/ext/fox16/gem_make.out

Does this mean that there is something wrong with my environment or
are these genuine errors?

Len




More information about the fxruby-users mailing list