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

OpenLdap with perl5.8 back-end (ITS#2356)



Full_Name: Yair Lenga
Version: 2.1.12
OS: SunOS 5.8 (sparc)
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (199.67.140.20)


I'm trying to compile openldap with the perl-backend - ActiveState 5.8 (build
805).

The code failed during compilation with the following error message - which
usually indicate that the code need some adjustment for the new perl 5.8
version. I hope that someone can look at my suggestions for changes, and fix the
problem.

Thanks
Yair Lenga


Directory: servers/slapd/back-perl

In perl_back.h:

Replace line 14:

#ifdef HAVE_WIN32_ASPERL
With
#if defined(HAVE_WIN32_ASPERL) || PERL_REVISION > 5 || (PERL_REVISION &&
PERL_VERSION >= 6)

In init.c, fix protoype for perl_back_xs_init: (line 183)

static void
perl_back_xs_init(PERL_BACK_XS_INIT_PARAMS)

make[3]: Entering directory
`/home4/yair/projects/site2/openldap-2.1.12/servers/slapd/back-perl'
/bin/sh /home4/yair/projects/site2/openldap-2.1.12/libtool  --mode=compile gcc
-I/usr/local/BerkeleyDB.4.1/include -L/usr/local/BerkeleyDB.4.1/lib -g -O2
-I../../../include        -I../../../include -I.. -I./..
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -fno-strict-aliasing -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 
-I/usr/local/ActivePerl-5.8/lib/5.8.0/sun4-solaris-thread-multi/CORE      -c
init.c
rm -f .libs/init.lo
gcc -I/usr/local/BerkeleyDB.4.1/include -L/usr/local/BerkeleyDB.4.1/lib -g -O2
-I../../../include -I../../../include -I.. -I./.. -D_POSIX_PTHREAD_SEMANTICS
-D_REENTRANT -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/local/ActivePerl-5.8/lib/5.8.0/sun4-solaris-thread-multi/CORE -c init.c 
-fPIC -DPIC -o .libs/init.lo
init.c: In function `perl_back_initialize':
init.c:74: warning: passing arg 2 of `perl_parse' from incompatible pointer
type
init.c: In function `perl_back_db_open':
init.c:147: `my_perl' undeclared (first use in this function)
init.c:147: (Each undeclared identifier is reported only once
init.c:147: for each function it appears in.)
init.c: In function `perl_back_xs_init':
init.c:182: `my_perl' undeclared (first use in this function)
init.c:182: warning: passing arg 3 of `Perl_newXS' from incompatible pointer
type
make[3]: *** [init.lo] Error 1
make[3]: Leaving directory
`/home4/yair/projects/site2/openldap-2.1.12/servers/slapd/back-perl'