[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
RE: Compiling and configuring openldap
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_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -D_LARGEFILE_SOURCE
-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_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -D_LARGEFILE_SOURCE
-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.
Also - I get a warning with back-ldap - is this easy to fix?
*** Warning: Linking the shared library back_ldap.la against the
*** static library ../../../libraries/librewrite/librewrite.a is not
portable!
I guess nobody knows why Berkeley DB thread support is "no"?
--
Simon Oliver
> -----Original Message-----
> From: owner-openldap-software@OpenLDAP.org
> [mailto:owner-openldap-software@OpenLDAP.org] On Behalf Of
> Simon Oliver
> Sent: 05 April 2004 14:07
> To: openldap-software@OpenLDAP.org
> Subject: Compiling and configuring openldap
>
>
> I'm trying to compile openldap 2.2.8 (is this the version I
> should be using) for SuSE 9.0.
>
> First of all I patched and compiled Berkeley DB.4.2
>
> After running ./configure I noticed that threading for bdb
> was not enabled; is this normal?
>
> checking for Berkeley DB link (-ldb-4.2)... yes
> checking for Berkeley DB thread support... no
> checking Berkeley DB version for BDB backend... yes
>
> Here are the configure options I used - most of these were
> snatched from the SuSE9.0 openldap rpm spec file. I sthere
> anything I should be wary of here. I'm going to use openldap
> for nss and samba:
>
> export CPPFLAGS="-I/usr/local/BerkeleyDB.4.2/include"
> export LDFLAGS="-L/usr/local/BerkeleyDB.4.2/lib"
> ./configure --localstatedir=/var/run/slapd \
> --enable-wrappers \
> --enable-crypt \
> --enable-spasswd \
> --enable-spasswd \
> --enable-modules \
> --enable-shared \
> --enable-dynamic \
> --with-tls \
> --with-cyrus-sasl \
> --enable-crypt \
> --enable-ipv6=yes \
> --enable-aci \
> --enable-bdb \
> --enable-rewrite \
> --enable-ldap \
> --with-ldap-module=dynamic \
> --enable-meta \
> --with-meta-module=dynamic \
> --enable-monitor \
> --with-monitor-module=dynamic \
> --enable-perl \
> --with-perl-module=dynamic
>
> Thanks
>
> --
> Simon Oliver
>
>
>
>
>
>