[Kde-bindings] Compiling qtruby with Ruby 1.9

Arno Rehn mono-devel at arnorehn.de
Sat Sep 19 09:02:47 UTC 2009


Hi,

Now that I upgraded to Ruby 1.9.1 I get a bunch of errors when I try to 
compile qtruby (see attachment). As I deduce from the messages on this mailing 
list, people have already successfully compiled qtruby against Ruby 1.9. Is 
there anything special I have to do to make it work?

-- 
Arno Rehn
arno at arnorehn.de
-------------- next part --------------
[ 75%] Building CXX object ruby/qtruby/src/CMakeFiles/qtruby4shared.dir/Qt.o                                                         
In file included from /usr/include/ruby-1.9.1/ruby.h:32,                                                                             
                 from /home/pumphaus/dev/KDE/kdebindings/ruby/qtruby/src/Qt.cpp:63:                                                  
/usr/include/ruby-1.9.1/ruby/ruby.h:25:25: error: ruby/config.h: No such file or directory                                           
In file included from /usr/include/ruby-1.9.1/ruby/ruby.h:70,                                                                        
                 from /usr/include/ruby-1.9.1/ruby.h:32,                                                                             
                 from /home/pumphaus/dev/KDE/kdebindings/ruby/qtruby/src/Qt.cpp:63:                                                  
/usr/include/ruby-1.9.1/ruby/defines.h:71:5: warning: "SIZEOF_LONG_LONG" is not defined                                              
/usr/include/ruby-1.9.1/ruby/defines.h:73:7: warning: "SIZEOF___INT64" is not defined                                                
/usr/include/ruby-1.9.1/ruby/defines.h:80:5: warning: "SIZEOF_INT" is not defined                                                    
/usr/include/ruby-1.9.1/ruby/defines.h:80:21: warning: "SIZEOF_LONG_LONG" is not defined                                             
/usr/include/ruby-1.9.1/ruby/defines.h:85:7: warning: "SIZEOF_INT" is not defined                                                    
/usr/include/ruby-1.9.1/ruby/defines.h:85:23: warning: "SIZEOF_LONG" is not defined                                                  
/usr/include/ruby-1.9.1/ruby/defines.h:90:7: warning: "SIZEOF_SHORT" is not defined                                                  
/usr/include/ruby-1.9.1/ruby/defines.h:90:25: warning: "SIZEOF_LONG" is not defined                                                  
In file included from /usr/include/ruby-1.9.1/ruby.h:32,                                                                             
                 from /home/pumphaus/dev/KDE/kdebindings/ruby/qtruby/src/Qt.cpp:63:                                                  
/usr/include/ruby-1.9.1/ruby/ruby.h:80:5: warning: "SIZEOF_LONG" is not defined                                                      
/usr/include/ruby-1.9.1/ruby/ruby.h:80:20: warning: "SIZEOF_VOIDP" is not defined                                                    
/usr/include/ruby-1.9.1/ruby/ruby.h:86:7: warning: "SIZEOF_LONG_LONG" is not defined                                                 
/usr/include/ruby-1.9.1/ruby/ruby.h:86:27: warning: "SIZEOF_VOIDP" is not defined                                                    
/usr/include/ruby-1.9.1/ruby/ruby.h:103:5: warning: "SIZEOF_PTRDIFF_T" is not defined                                                
/usr/include/ruby-1.9.1/ruby/ruby.h:103:25: warning: "SIZEOF_INT" is not defined                                                     
/usr/include/ruby-1.9.1/ruby/ruby.h:105:7: warning: "SIZEOF_PTRDIFF_T" is not defined                                                
/usr/include/ruby-1.9.1/ruby/ruby.h:105:27: warning: "SIZEOF_LONG" is not defined                                                    
/usr/include/ruby-1.9.1/ruby/ruby.h:107:7: warning: "SIZEOF_PTRDIFF_T" is not defined                                                
/usr/include/ruby-1.9.1/ruby/ruby.h:107:27: warning: "SIZEOF_LONG_LONG" is not defined                                               
/usr/include/ruby-1.9.1/ruby/ruby.h:117:5: warning: "SIZEOF_SIZE_T" is not defined                                                   
/usr/include/ruby-1.9.1/ruby/ruby.h:117:22: warning: "SIZEOF_INT" is not defined                                                     
/usr/include/ruby-1.9.1/ruby/ruby.h:119:7: warning: "SIZEOF_SIZE_T" is not defined                                                   
/usr/include/ruby-1.9.1/ruby/ruby.h:119:24: warning: "SIZEOF_LONG" is not defined                                                    
/usr/include/ruby-1.9.1/ruby/ruby.h:121:7: warning: "SIZEOF_SIZE_T" is not defined                                                   
/usr/include/ruby-1.9.1/ruby/ruby.h:121:24: warning: "SIZEOF_LONG_LONG" is not defined                                               
/usr/include/ruby-1.9.1/ruby/ruby.h:196:5: warning: "SIZEOF_OFF_T" is not defined                                                    
/usr/include/ruby-1.9.1/ruby/ruby.h:196:20: warning: "SIZEOF_LONG" is not defined                                                    
/usr/include/ruby-1.9.1/ruby/ruby.h:198:7: warning: "SIZEOF_OFF_T" is not defined                                                    
/usr/include/ruby-1.9.1/ruby/ruby.h:198:23: warning: "SIZEOF_LONG" is not defined                                                    
/usr/include/ruby-1.9.1/ruby/ruby.h:204:5: warning: "SIZEOF_SIZE_T" is not defined                                                   
/usr/include/ruby-1.9.1/ruby/ruby.h:204:21: warning: "SIZEOF_LONG" is not defined                                                    
/usr/include/ruby-1.9.1/ruby/ruby.h:207:7: warning: "SIZEOF_SIZE_T" is not defined                                                   
/usr/include/ruby-1.9.1/ruby/ruby.h:207:24: warning: "SIZEOF_LONG" is not defined                                                    
/usr/include/ruby-1.9.1/ruby/ruby.h:406:5: warning: "SIZEOF_INT" is not defined                                                      
/usr/include/ruby-1.9.1/ruby/ruby.h:406:18: warning: "SIZEOF_LONG" is not defined                                                    
/usr/include/ruby-1.9.1/ruby/ruby.h:457:5: warning: "SIZEOF_INT" is not defined                                                      
/usr/include/ruby-1.9.1/ruby/ruby.h:457:18: warning: "SIZEOF_LONG" is not defined                                                    
In file included from /usr/include/ruby-1.9.1/ruby/ruby.h:1125,                                                                      
                 from /usr/include/ruby-1.9.1/ruby.h:32,                                                                             
                 from /home/pumphaus/dev/KDE/kdebindings/ruby/qtruby/src/Qt.cpp:63:                                                  
/usr/include/ruby-1.9.1/ruby/missing.h:154:6: warning: "_MSC_VER" is not defined                                                     
/usr/include/ruby-1.9.1/ruby/missing.h:158:6: warning: "_MSC_VER" is not defined                                                     
In file included from /usr/include/ruby-1.9.1/ruby/intern.h:29,                                                                      
                 from /usr/include/ruby-1.9.1/ruby/ruby.h:1126,                                                                      
                 from /usr/include/ruby-1.9.1/ruby.h:32,                                                                             
                 from /home/pumphaus/dev/KDE/kdebindings/ruby/qtruby/src/Qt.cpp:63:                                                  
/usr/include/ruby-1.9.1/ruby/st.h:29:5: warning: "SIZEOF_LONG" is not defined                                                        
/usr/include/ruby-1.9.1/ruby/st.h:29:20: warning: "SIZEOF_VOIDP" is not defined                                                      
/usr/include/ruby-1.9.1/ruby/st.h:31:7: warning: "SIZEOF_LONG_LONG" is not defined                                                   
/usr/include/ruby-1.9.1/ruby/st.h:31:27: warning: "SIZEOF_VOIDP" is not defined                                                      
In file included from /usr/include/ruby-1.9.1/ruby/ruby.h:1126,                                                                      
                 from /usr/include/ruby-1.9.1/ruby.h:32,                                                                             
                 from /home/pumphaus/dev/KDE/kdebindings/ruby/qtruby/src/Qt.cpp:63:                                                  
/usr/include/ruby-1.9.1/ruby/intern.h:96:5: warning: "HAVE_LONG_LONG" is not defined                                                 
In file included from /usr/include/ruby-1.9.1/ruby.h:32,                                                                             
                 from /home/pumphaus/dev/KDE/kdebindings/ruby/qtruby/src/Qt.cpp:63:                                                  
/usr/include/ruby-1.9.1/ruby/ruby.h: In function ?long int NUM2LONG(VALUE)?:                                                         
/usr/include/ruby-1.9.1/ruby/ruby.h:403: error: ?RSHIFT? was not declared in this scope                                              
/usr/include/ruby-1.9.1/ruby/ruby.h: In function ?VALUE INT2NUM(int)?:                                                               
/usr/include/ruby-1.9.1/ruby/ruby.h:464: warning: comparison is always true due to limited range of data type                        
/usr/include/ruby-1.9.1/ruby/ruby.h:464: error: ?RSHIFT? was not declared in this scope                                              
/usr/include/ruby-1.9.1/ruby/ruby.h: In function ?VALUE UINT2NUM(unsigned int)?:                                                     
/usr/include/ruby-1.9.1/ruby/ruby.h:472: warning: comparison is always true due to limited range of data type                        
/usr/include/ruby-1.9.1/ruby/ruby.h: In function ?VALUE LONG2NUM(long int)?:                                                         
/usr/include/ruby-1.9.1/ruby/ruby.h:481: error: ?RSHIFT? was not declared in this scope                                              
In file included from /usr/include/ruby-1.9.1/ruby/ruby.h:1125,                                                                      
                 from /usr/include/ruby-1.9.1/ruby.h:32,
                 from /home/pumphaus/dev/KDE/kdebindings/ruby/qtruby/src/Qt.cpp:63:
/usr/include/ruby-1.9.1/ruby/missing.h: At global scope:
/usr/include/ruby-1.9.1/ruby/missing.h:25: error: redefinition of ?struct timeval?
/usr/include/bits/time.h:70: error: previous definition of ?struct timeval?
/usr/include/ruby-1.9.1/ruby/missing.h:35: error: redefinition of ?struct timespec?
/usr/include/time.h:121: error: previous definition of ?struct timespec?
/usr/include/ruby-1.9.1/ruby/missing.h:129: error: new declaration ?char* strchr(const char*, int)?
/usr/include/string.h:226: error: ambiguates old declaration ?const char* strchr(const char*, int)?
/usr/include/ruby-1.9.1/ruby/missing.h:130: error: new declaration ?char* strrchr(const char*, int)?
/usr/include/string.h:253: error: ambiguates old declaration ?const char* strrchr(const char*, int)?
/usr/include/ruby-1.9.1/ruby/missing.h:138: error: new declaration ?char* strstr(const char*, const char*)?
/usr/include/string.h:333: error: ambiguates old declaration ?const char* strstr(const char*, const char*)?
In file included from /usr/include/ruby-1.9.1/ruby/ruby.h:1126,
                 from /usr/include/ruby-1.9.1/ruby.h:32,
                 from /home/pumphaus/dev/KDE/kdebindings/ruby/qtruby/src/Qt.cpp:63:
/usr/include/ruby-1.9.1/ruby/intern.h:485: error: ?rb_pid_t? has not been declared
/usr/include/ruby-1.9.1/ruby/intern.h:501: error: ?rb_pid_t? does not name a type
/usr/include/ruby-1.9.1/ruby/intern.h:503: error: ?rb_pid_t? does not name a type
/usr/include/ruby-1.9.1/ruby/intern.h:504: error: variable or field ?rb_syswait? declared void
/usr/include/ruby-1.9.1/ruby/intern.h:504: error: ?rb_pid_t? was not declared in this scope
/usr/include/ruby-1.9.1/ruby/intern.h:505: error: ?rb_pid_t? does not name a type
/usr/include/ruby-1.9.1/ruby/intern.h:507: error: ?rb_pid_t? was not declared in this scope
/home/pumphaus/dev/KDE/kdebindings/ruby/qtruby/src/Qt.cpp: In function ?VALUE method_missing(int, VALUE*, VALUE)?:
/home/pumphaus/dev/KDE/kdebindings/ruby/qtruby/src/Qt.cpp:757: error: ?RSHIFT? was not declared in this scope
/home/pumphaus/dev/KDE/kdebindings/ruby/qtruby/src/Qt.cpp: In function ?VALUE class_method_missing(int, VALUE*, VALUE)?:
/home/pumphaus/dev/KDE/kdebindings/ruby/qtruby/src/Qt.cpp:916: error: ?RSHIFT? was not declared in this scope
make[2]: *** [ruby/qtruby/src/CMakeFiles/qtruby4shared.dir/Qt.o] Error 1
make[1]: *** [ruby/qtruby/src/CMakeFiles/qtruby4shared.dir/all] Error 2
make: *** [all] Error 2


More information about the Kde-bindings mailing list