Re: [classad-users] swig broken in classad 0.9.8


Date: Thu, 15 Jun 2006 12:28:31 -0500
From: Erik Paulson <epaulson@xxxxxxxxxxx>
Subject: Re: [classad-users] swig broken in classad 0.9.8
On Thu, Jun 15, 2006 at 12:12:30PM -0500, Erik Paulson wrote:
> The SWIG interface doesn't build in the new version of classads:
> 
> g++ -fno-implicit-templates -g -DCLASSAD_DISTRIBUTION -I/s/perl-5.8.6/i386_tao1
> /lib/5.8.6/i686-linux-64int/CORE -c classad_wrap.C
> classad_wrap.C: In function `int SWIG_Perl_ConvertPtr(SV*, void**, swig_type_in
> o*, int)':
> classad_wrap.C:532: warning: cast to pointer from integer of different size
> In file included from classad.h:32,
>                  from classad_wrap.C:833:
> exprTree.h:117:27: macro "Copy" requires 4 arguments, but only 1 given
> In file included from classad.h:32,
>                  from classad_wrap.C:833:
> exprTree.h: At global scope:

Ugh. The perl headers define:

#define Move(s,d,n,t)   (MEM_WRAP_CHECK(n,t), (void)memmove((char*)(d),(char*)(s), (n) * sizeof(t)))
#define Copy(s,d,n,t)   (MEM_WRAP_CHECK(n,t), (void)memcpy((char*)(d),(char*)(s), (n) * sizeof(t)))
#define Zero(d,n,t) (MEM_WRAP_CHECK(n,t), (void)memzero((char*)(d), (n) * sizeof(t)))

Classads use Copy() in about 40 different places.

-Erik
[← Prev in Thread] Current Thread [Next in Thread→]