Dears,
I try to compile 2.5.7 version with --enable-perl module but I get issue as
following :
First issue I get :
In file included from init.c:18:
perl_back.h:21:10: fatal error: EXTERN.h: No such file or directory
#include <EXTERN.h>
^~~~~~~~~~
compilation terminated.
make[3]: *** [Makefile:334: init.lo] Error 1
To solve above issue, I had to install a missing rehl package
(perl-devel.x86_64) and set CPPFLAGS=-I/usr/lib64/perl5/CORE/ of the "configure
utility".
I did :
Make distclean
Configure
Make depend
make
Then "make" goes further but now I get a lot of entries as below then it
stopped :
libtool: link: cc -g -O2 .libs/slapdS.o -o .libs/slapd main.o globals.o
bconfig.o config.o daemon.o connection.o search.o filter.o add.o cr.o attr.o
entry.o backend.o backends.o result.o operation.o dn.o compare.o modify.o
delete.o modrdn.o ch_malloc.o value.o ava.o bind.o unbind.o abandon.o
filterentry.o phonetic.o acl.o str2filter.o aclparse.o init.o user.o lock.o
controls.o extended.o passwd.o proxyp.o schema.o schema_check.o schema_init.o
schema_prep.o schemaparse.o ad.o at.o mr.o syntax.o oc.o saslauthz.o oidm.o
starttls.o index.o sets.o referral.o root_dse.o sasl.o module.o mra.o mods.o
sl_malloc.o zn_malloc.o limits.o operational.o matchedValues.o cancel.o
syncrepl.o backglue.o backover.o ctxcsn.o ldapsync.o frontend.o slapadd.o
slapcat.o slapcommon.o slapdn.o slapindex.o slappasswd.o slaptest.o slapauth.o
slapacl.o component.o aci.o txn.o slapschema.o slapmodify.o version.o -pthread
-Wl,--export-dynamic libbackends.a liboverlays.a
../../libraries/liblunicode/liblunicode.a
../../libraries/librewrite/librewrite.a ../../libraries/liblutil/liblutil.a
../../libraries/libldap/.libs/libldap.so
/usr/app/LDAP/binaries/openldap-2.5.7/libraries/liblber/.libs/liblber.so
../../libraries/liblber/.libs/liblber.so -lltdl -lresolv -pthread -Wl,-rpath
-Wl,/usr/app/LDAP/binaries/openldap-2.5.7/lib
libbackends.a(perlinit.o): In function `perl_back_xs_init':
/usr/app/LDAP/binaries/openldap-2.5.7/servers/slapd/back-perl/init.c:166:
undefined reference to `boot_DynaLoader'
libbackends.a(perlinit.o): In function `perl_back_db_open':
/usr/app/LDAP/binaries/openldap-2.5.7/servers/slapd/back-perl/init.c:135:
undefined reference to `Perl_push_scope'
/usr/app/LDAP/binaries/openldap-2.5.7/servers/slapd/back-perl/init.c:135:
undefined reference to `Perl_savetmps'
/usr/app/LDAP/binaries/openldap-2.5.7/servers/slapd/back-perl/init.c:142:
undefined reference to `Perl_call_method'
/usr/app/LDAP/binaries/openldap-2.5.7/servers/slapd/back-perl/init.c:152:
undefined reference to `Perl_pop_scope'
/usr/app/LDAP/binaries/openldap-2.5.7/servers/slapd/back-perl/init.c:150:
undefined reference to `Perl_sv_2iv_flags'
/usr/app/LDAP/binaries/openldap-2.5.7/servers/slapd/back-perl/init.c:152:
undefined reference to `Perl_free_tmps'
/usr/app/LDAP/binaries/openldap-2.5.7/servers/slapd/back-perl/init.c:137:
undefined reference to `Perl_markstack_grow'
/usr/app/LDAP/binaries/openldap-2.5.7/servers/slapd/back-perl/init.c:138:
undefined reference to `Perl_stack_grow'
/usr/app/LDAP/binaries/openldap-2.5.7/servers/slapd/back-perl/init.c:147:
undefined reference to `Perl_croak_nocontext'
libbackends.a(perlinit.o): In function `perl_back_initialize':
/usr/app/LDAP/binaries/openldap-2.5.7/servers/slapd/back-perl/init.c:91:
undefined reference to `Perl_sys_init3'
/usr/app/LDAP/binaries/openldap-2.5.7/servers/slapd/back-perl/delete.c:28:
undefined reference to `Perl_croak_nocontext'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:527: slapd] Error 1
make[2]: Leaving directory '/usr/app/LDAP/binaries/openldap-2.5.7/servers/slapd'
make[1]: *** [Makefile:300: all-common] Error 1
make[1]: Leaving directory '/usr/app/LDAP/binaries/openldap-2.5.7/servers'
make: *** [Makefile:321: all-common] Error 1
Here is my configure command which works fine without “—enable-perl” :
./configure --prefix=/usr/app/LDAP/binaries/openldap-2.5.7/
--sysconfdir=/usr/app/LDAP/binaries/openldap-2.5.7
--mandir=/usr/local/share/man --enable-modules --enable-ldap --enable-dynlist
--enable-ppolicy --enable-unique --with-gnu-ld --enable-refint --with-tls
--enable-dynamic --enable-valsort --enable-rwm --enable-perl
Any idea of what's the issue ?
THx,
Jean-Luc.