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

Re: Compiling and configuring openldap


On Tuesday 06 April 2004 13:36, Simon Oliver wrote:
> Another problem compiling openddap 2.2.8 (again is this the version I
> should be using).  This time I found that although the `configure`, `make
> depend`, `make` and `make test` all work BUT when I `make install` I get an
> error.
>   cd back-perl; make -w install
> make[3]: Entering directory
> `/usr/local/src/openldap-2.2.8/servers/slapd/back-perl'
> /bin/sh /usr/local/src/openldap-2.2.8/libtool  --mode=compile cc -g -O2
> -I../../../include        -I../../../include -I.. -I./.. -D_REENTRANT
> -D_FILE_OFFSET_BITS=64  -I/usr/lib/perl5/5.8.1/i586-linux-thread-multi/CORE
> -I/usr/local/BerkeleyDB.4.2/include   -DSLAPD_IMPORT -c init.c
> rm -f .libs/init.lo
> cc -g -O2 -I../../../include -I../../../include -I.. -I./.. -D_REENTRANT
> -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl5/5.8.1/i586-linux-thread-multi/CORE
> -I/usr/local/BerkeleyDB.4.2/include -DSLAPD_IMPORT -c init.c  -fPIC -DPIC
> -o .libs/init.lo
> init.c: In function `perl_back_initialize':
> init.c:81: warning: passing arg 2 of `perl_parse' from incompatible pointer
> type
> init.c: In function `perl_back_db_open':
> init.c:152: error: `my_perl' undeclared (first use in this function)
> init.c:152: error: (Each undeclared identifier is reported only once
> init.c:152: error: for each function it appears in.)
> init.c: In function `perl_back_xs_init':
> init.c:187: error: `my_perl' undeclared (first use in this function)
> init.c:187: warning: passing arg 3 of `Perl_newXS' from incompatible
> pointer type
> make[3]: *** [init.lo] Error 1
> make[3]: Leaving directory
> `/usr/local/src/openldap-2.2.8/servers/slapd/back-perl'
> make[2]: *** [install-slapd] Error 1
> make[2]: Leaving directory `/usr/local/src/openldap-2.2.8/servers/slapd'
> make[1]: *** [install-common] Error 1
> make[1]: Leaving directory `/usr/local/src/openldap-2.2.8/servers'
> make: *** [install-common] Error 1
> It is something to do with the perl backend - if I compile it without the
> perl back end all goes well.

I guess you have Perl 5.8.x installed.
back-perl does not compile out of the box with Perl 5.8
There is a (nonportable) patch in OpenLDAP ITS #2946 that you might want to 

Peter Marschall
eMail: peter@adpm.de