Dirk, Luigi,

* Dirk Eddelbuettel <e...@debian.org> [131231 02:30]:
> On 30 December 2013 at 19:33, Christian Hofstaedtler wrote:
> | Dirk,
> | 
> | * Dirk Eddelbuettel <e...@debian.org> [131226 02:09]:
> | > Could you possibly help with some Ruby assistance?  
> | 
> | I'm attaching a patch which makes 'make' in quantlib-swig-1.3/Ruby
> | run to completion. I have not tested if the built code works.
> 
> The patch applied cleanly, but the build still fails for me (as a regular
> Debian build) as we do not regenerate Ruby/quantlib_wrap.cpp (which comes
> from the upstream tarball).

quantlib_wrap.cpp is marked as BUILT_SOURCES in Ruby/Makefile.am. It
is my understanding that you really need to rebuild such files
during a Debian build.

> Luigi:  You are somewhat connected to Swig. Did something change recently? I
> get heaps of 
> 
>   quantlib_wrap.cpp: In function 'VALUE 
> _wrap_MultipleIncrementalStatistics_add__SWIG_2(int, VALUE*, VALUE)':
>   quantlib_wrap.cpp:245118:36: error: 'struct RArray' has no member named 
> 'len'
>        Size size = RARRAY(argv[0])->len;
> 
> and Christian's patch rightly did a lot of (at the level of one .i file) 
> 
> | -        Size size = RARRAY($input)->len;
> | +        Size size = RARRAY_LEN($input);

Well, RARRAY(blah)->len changing to RARRAY_LEN is a change
introduced in Ruby 1.9.

> I guess we need this for all files,

(Only linearalgebra.i uses the RARRAY macro.)

> and then regenerate the cpp file for Ruby?

I forgot that I deleted quantlib_wrap.cpp before running make; this
certainly helps with the build.

> Thanks,  Dirk

Cheers,
    Christian
-- 
 ,''`.  Christian Hofstaedtler <z...@debian.org>
: :' :  Debian Developer
`. `'   7D1A CFFA D9E0 806C 9C4C  D392 5C13 D6DB 9305 2E03
  `-

Attachment: signature.asc
Description: Digital signature

Reply via email to