[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: compiling back-perl with perl-5.8.0 (ITS#2946)



--==========CB5F35A1DC35F0AEA1D0==========
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline



--On Dienstag, Februar 03, 2004 16:52:18 +0000 
Philippe.Depouilly@math.u-bordeaux.fr wrote:

> Full_Name: Philippe Depouilly
> Version: 2.2.5
> OS: linux redhat 8.0, 9.0 or AS-3
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (147.210.17.43)
>
>
> Compiling back-perl (openldap 2.2.5) on a redhat (8.0, 9.0 and AS-3) with
> perl-5.8.0 gives this error for each source file in back-perl directory :
>
> init.c: In function `perl_back_db_open':
> init.c:152: `my_perl' undeclared (first use in this function)
> etc.
>
> But, in each source file :
>
> changing this :
>
># include <EXTERN.h>
># include <perl.h>
>
> by
>
># include <EXTERN.h>
># include <perl.h>
># include <XSUB.h>
>
> compiles fine.
>
> or just adding #include <XSUB.h> at the end of perl_back.h (not very nice)
>
> (should be duplicate to unresolved ITS#2554 ?)
>
> Philippe

SuSE uses the attached patch to build OpenLDAP with Perl 5.8.1. It changes 
the defines for PERL_INTERPRETER, PERL_BACK_XS_INIT_PARAMS and 
PERL_BACK_BOOT_DYNALOADER_PARAMS to the same values that are used when 
HAVE_WIN32_ASPERL is defined and also adds all necessary libs to link with 
in  Makefile.in

Norbert
--==========CB5F35A1DC35F0AEA1D0==========
Content-Type: application/octet-stream; name="back_perl.dif"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="back_perl.dif"; size=1001

LS0tIHNlcnZlcnMvc2xhcGQvYmFjay1wZXJsL3BlcmxfYmFjay5oCTIwMDMvMDUvMTYgMTI6MzA6
MjAJMS4xCisrKyBzZXJ2ZXJzL3NsYXBkL2JhY2stcGVybC9wZXJsX2JhY2suaAkyMDAzLzA1LzE2
IDEyOjMwOjMzCkBAIC0yOSw5ICsyOSw5IEBACiAjIGRlZmluZSB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