Bug 251005 - [PATCH] kdebindings fails to build with Ruby 1.9.2
Summary: [PATCH] kdebindings fails to build with Ruby 1.9.2
Status: RESOLVED FIXED
Alias: None
Product: bindings
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kde-bindings
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-12 21:20 UTC by Bernhard Rosenkraenzer
Modified: 2013-05-19 07:04 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
fix (1.11 KB, patch)
2010-09-12 21:20 UTC, Bernhard Rosenkraenzer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Rosenkraenzer 2010-09-12 21:20:32 UTC
Created attachment 51566 [details]
fix

Version:           unspecified (using KDE 4.5.1) 
OS:                Linux

kdebindings 4.5.1 fails to build with Ruby 1.9.2 because STR2CSTR has been removed (it has been deprecated since ruby 1.8).

The attached patch makes it build (and even work, at least for the examples included with the ruby bindings).

In addition to the patch, I had to hack -I/usr/include/ruby-1.9.1 into the compiler flags

Reproducible: Always

Steps to Reproduce:
1. Install ruby 1.9.2
2. Build kdebindings 4.5.1

Actual Results:  
fails to build because STR2CSTR is undefined

Expected Results:  
builds and works
Comment 1 Bernhard Rosenkraenzer 2010-12-07 16:17:53 UTC
This is fixed in the 4.6.0 betas, but I still have to add include_directories(/usr/include/ruby-1.9.1)