https://bugs.openldap.org/show_bug.cgi?id=9663
Issue ID: 9663 Summary: Compilation problems: Perl backend Product: OpenLDAP Version: 2.5.6 Hardware: x86_64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: --- Component: backends Assignee: bugs@openldap.org Reporter: jb00356987@techmahindra.com Target Milestone: ---
Dears,
I try to compile 2.5.6 version with --enable-perl module but I get issue as following :
first 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
I had to install a missing rehl package (perl-devel.x86_64) and set the CPPFLAGS of the "configure utility" to the path of these header files. I did run "make clean" and restart the full comilation process then "make" goes futher but now I get a lot of entries as below then it stopped :
/usr/app/LDAP/binaries/openldap-2.5.6/servers/slapd/back-perl/delete.c:50: undefined reference to `Perl_pop_scope' /usr/app/LDAP/binaries/openldap-2.5.6/servers/slapd/back-perl/delete.c:48: undefined reference to `Perl_sv_2iv_flags' /usr/app/LDAP/binaries/openldap-2.5.6/servers/slapd/back-perl/delete.c:50: undefined reference to `Perl_free_tmps' /usr/app/LDAP/binaries/openldap-2.5.6/servers/slapd/back-perl/delete.c:36: undefined reference to `Perl_stack_grow' /usr/app/LDAP/binaries/openldap-2.5.6/servers/slapd/back-perl/delete.c:34: undefined reference to `Perl_markstack_grow' /usr/app/LDAP/binaries/openldap-2.5.6/servers/slapd/back-perl/delete.c:35: undefined reference to `Perl_stack_grow' /usr/app/LDAP/binaries/openldap-2.5.6/servers/slapd/back-perl/delete.c:45: undefined reference to `Perl_croak_nocontext' /usr/app/LDAP/binaries/openldap-2.5.6/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
Any idea of what's the issue ?
Configure used : ./configure --enable-modules --enable-ldap --enable-dynlist --enable-ppolicy --enable-unique --with-gnu-ld --enable-refint --with-tls --enable-dynamic --enable-valsort --enable-perl --enable-rwm
Thx, Jean-Luc.