...which it does. The examples segfault with 1.8, too. Oh well.

On Tue, Dec 31, 2013 at 4:35 PM, Luigi Ballabio
<luigi.balla...@gmail.com> wrote:
> Update: it seems that the problem is already taken care of; ruby.h in
> version 1.8 contains
>
> #define RARRAY_PTR(s) (RARRAY(s)->ptr)
> #define RARRAY_LEN(s) (RARRAY(s)->len)
>
> and RbConfig and FileUtils already exist in the 1.8 library, so the
> changes for 1.9 are backward compatible.
>
> I guess now I'll try and check if the thing dumps in 1.8 too...
>
> Luigi
>
>
> On Tue, Dec 31, 2013 at 4:17 PM, Luigi Ballabio
> <luigi.balla...@gmail.com> wrote:
>> Hi Dirk and Christian,
>>     the module does compile and install. I'm not sure if it's in any
>> shape to be released, though: 3 scripts out of the four in
>> Ruby/examples dump core on my machine (truth be told, it might have
>> also happened with 1.8. I should go and check that, too). It looks
>> like something going awry in a destructor. Do they run on yours?
>>
>> Supporting both 1.8 and 1.9 might be doable in the wrappers if I can
>> get the Ruby version (I see a macro for it in ruby/version.h, but the
>> comments are discouraging me from using it); it should be just a
>> matter of defining some macro QL_RARRAY_LEN(x) to expand to
>> RARRAY(x)->len for 1.8 and RARRAY_LEN(x) for 1.9.
>>
>> My Ruby-fu is very rusty, though, so I'm not sure how to require
>> 'ftools' or 'fileutils' depending on the version, or how to alias a
>> common name to the correct one. Christian, do you have any
>> suggestions? (Also on the version thing above?)
>>
>> Later,
>>     Luigi
>>
>> (oh, and a happy new year in case I don't hear from you today)
>>
>>
>>
>> On Tue, Dec 31, 2013 at 5:34 AM, Dirk Eddelbuettel <e...@debian.org> wrote:
>>>
>>> Ok, one last one:  I just updated the pull request
>>>
>>>     https://github.com/lballabio/quantlib/pull/65
>>>
>>> and the second patch contains further fixes to setup.rb to do the install
>>> step under Ruby 1.9. (The third patch just corrects the version back to 
>>> '1.4'
>>> for the dev tree.)
>>>
>>> Supporting 1.8 and 1.9 upstream may be a bit of a pain though.
>>>
>>> I also uploaded a repaired new Debian package -- thanks again to Christian.
>>>
>>> Dirk
>>>
>>> --
>>> Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com
>>
>>
>>
>> --
>> <https://implementingquantlib.blogspot.com>
>> <https://twitter.com/lballabio>
>
>
>
> --
> <https://implementingquantlib.blogspot.com>
> <https://twitter.com/lballabio>



-- 
<https://implementingquantlib.blogspot.com>
<https://twitter.com/lballabio>


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to