bugWeeChat - Bugs: bug #30967, Weechat doesn't compile with Ruby...

 
 

bug #30967: Weechat doesn't compile with Ruby support

Submitter:  Filip H.F. "FiXato" Slagter <fixato>
Submitted:  Sun 05 Sep 2010 10:33:37 AM UTC
   
 
Category:  compilation Severity:  3 - Normal
Item Group:  compile/install Status:  Fixed
Privacy:  Public Assigned to:  flashcode
Originator Name:  Open/Closed:  Closed
Release:  * 0.3.4 IRC nick:  FiXato
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 05 Sep 2010 10:34:21 AM UTC, comment #1: 

The bug was introduced in git commit 712623547f7e6fffc1bda625399ac54de87b6e2d btw.

Filip H.F. "FiXato" Slagter <fixato>
Sun 05 Sep 2010 10:33:37 AM UTC, original submission:  

When trying to compile on a system with Ruby 1.8.6, it fails with the following error:

[ 70%] Building C object src/plugins/scripts/ruby/CMakeFiles/ruby.dir/weechat-ruby.o
/usr/local/src/weechat/src/plugins/scripts/ruby/weechat-ruby.c: In function ‘weechat_ruby_hash_to_hashtable’:
/usr/local/src/weechat/src/plugins/scripts/ruby/weechat-ruby.c:180: error: implicit declaration of function ‘RHASH_TBL’
/usr/local/src/weechat/src/plugins/scripts/ruby/weechat-ruby.c:180: warning: assignment makes pointer from integer without a cast
make[2]: *** [src/plugins/scripts/ruby/CMakeFiles/ruby.dir/weechat-ruby.o] Error 1
make[1]: *** [src/plugins/scripts/ruby/CMakeFiles/ruby.dir/all] Error 2
make: *** [all] Error 2


It seems that RHASH_TBL isn't available in 1.8.6 and was introduced in 1.8.7 (assumption based on a comment in http://svn.textmate.org/trunk/Tools/plist/plist.c)
The attached patch seems to fix this problem.

Filip H.F. "FiXato" Slagter <fixato>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #21391:  ruby_rhash_tbl.diff added by fixato (718B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by flashcode (Updated the item)
  • -email is unavailable- added by fixato (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-01-16 flashcode Open/ClosedOpen Closed
        Release3.3-dev 0.3.4
    2010-09-08 flashcode StatusNone Fixed
        Assigned toNone flashcode
    2010-09-05 fixato Attached File- Added ruby_rhash_tbl.diff, #21391

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code