https://bugs.openldap.org/show_bug.cgi?id=9544
Issue ID: 9544
Summary: Compilation error when enabling SLAPI
Product: OpenLDAP
Version: 2.5.4
Hardware: x86_64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: ---
Component: build
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
OpenLDAP 2.5.4 fails to build when enabling SLAPI support for SLAPD:
/bin/sh ../../../libtool --mode=compile cc -g -O2 -I../../../include -I.. -I.
-I../../../include -I./.. -I. -DSLAPI_LIBRARY -c plugin.c
libtool: compile: cc -g -O2 -I../../../include -I.. -I. -I../../../include
-I./.. -I. -DSLAPI_LIBRARY -c plugin.c -fPIC -DPIC -o .libs/plugin.o
plugin.c:37:16: error: unknown type name 'lt_dlhandle'; did you mean
'sa_handler'?
SLAPI_FUNC *, lt_dlhandle * );
^~~~~~~~~~~
sa_handler
plugin.c: In function 'plugin_pblock_new':
plugin.c:73:2: error: unknown type name 'lt_dlhandle'; did you mean
'sa_handler'?
lt_dlhandle hdLoadHandle;
^~~~~~~~~~~
sa_handler
plugin.c:103:7: warning: implicit declaration of function
'slapi_int_load_plugin'; did you mean 'slapi_int_get_plugins'?
[-Wimplicit-function-declaration]
rc = slapi_int_load_plugin( pPlugin, path, initfunc, 1, NULL, &hdLoadHandle
);
^~~~~~~~~~~~~~~~~~~~~
slapi_int_get_plugins
plugin.c: At top level:
plugin.c:557:2: error: unknown type name 'lt_dlhandle'; did you mean
'sa_handler'?
lt_dlhandle *pLdHandle )
^~~~~~~~~~~
sa_handler
make[3]: *** [Makefile:388: plugin.lo] Error 1
make[3]: Leaving directory '/wig/openldap-2.5.4/servers/slapd/slapi'
make[2]: *** [Makefile:524: slapi/libslapi.la] Error 2
make[2]: Leaving directory '/wig/openldap-2.5.4/servers/slapd'
make[1]: *** [Makefile:300: all-common] Error 1
make[1]: Leaving directory '/wig/openldap-2.5.4/servers'
make: *** [Makefile:321: all-common] Error 1
----
In order to reproduce it, simply download the latest release and use the flag
--enable-slapi when calling configure:
$ wget
https://www.openldap.org/software/download/OpenLDAP/openldap-release/openldap-2.5.4.tgz
$ tar xfz openldap-2.5.4.tgz && cd openldap-2.5.4
$ ./configure --enable-slapi
$ make depend
$ make
The compilation fails and binaries are not generated. This does not seem to
happen on version 2.4.58, whose compilation runs smoothly with this flag
activated.
Additional Information:
$ gcc --version
gcc (Debian 8.3.0-6) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ uname -a
Linux af3c371dbbbf 4.15.0-128-generic #131~16.04.1-Ubuntu SMP Wed Dec 9
17:33:47 UTC 2020 x86_64 GNU/Linux
$ date
Mon May 3 12:36:10 UTC 2021
--
You are receiving this mail because:
You are on the CC list for the issue.