[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: make samlmod fails with perl 5.20.2, Centos 6



Thank you Magnus.

I can confirm  compilation of SAML_wrap.c works with this patch,
with quite a lot of warnings though (incompatible pointer type, etc)

Best
Michael


Michael Dondrup
Postdoctoral fellow
Sea Lice Research Centre/Department of Informatics
University of Bergen
Thormxhlensgate 55, N-5008 Bergen,
Norway

On Apr 10, 2015, at 11:18 AM, Magnus Holmgren wrote:

> fredagen den 10 april 2015 09.45.12 skrev  Michael Dondrup:
>> Hi,
>> I am trying to build Net::SAML via make samlmod, it builds with perl
5.18.2,
>> but with 5.20.2 I get compile errors. perl is installed vi perbrew:
>
> As I wrote in my post a few weeks ago, SAML_wrap.c #undefs bool (among other
> symbols, in order to "Workaround perl5 global namespace pollution"). Not
sure
> exactly what concrete problems that pollution might cause, but I don't think
> there's much else to do than to try the following patch:
>
> --- a/Net/SAML_wrap.c
> +++ b/Net/SAML_wrap.c
> @@ -1441,9 +1441,6 @@ SWIG_Perl_SetModule(swig_module_info *mo
> #ifdef eof
>   #undef eof
> #endif
> -#ifdef bool
> -  #undef bool
> -#endif
> #ifdef close
>   #undef close
> #endif
>
> --
> Magnus Holmgren
> Debian Developer

[demime 1.01d removed an attachment of type application/pgp-signature which had a name of signature.asc]