Build fails for 32 bit msys/mingw (and config --prefix=/mingw
--enable-accesslog --with-tls --enable-syncprov)
slapadd.o: In function `getrec0':
C:/msys/1.0/openldap-2.4.41Git/servers/slapd/slapadd.c:116: undefined
reference
to `ftello'
slapadd.o: In function `slapadd':
C:/msys/1.0/openldap-2.4.41Git/servers/slapd/slapadd.c:486: undefined
reference
to `ftello'
libbackends.a(mdbmdb.o): In function `mdb_cursor_push':
C:/msys/1.0/openldap-2.4.41Git/servers/slapd/back-mdb/./../../../libraries/liblm
db/mdb.c:5001: undefined reference to `GetFileSizeEx'
collect2: ld returned 1 exit status
make[2]: *** [slapd.exp] Error 1
make[2]: Leaving directory `/openldap-2.4.41Git/servers/slapd'
make[1]: *** [all-common] Error 1
make[1]: Leaving directory `/openldap-2.4.41Git/servers'
make: *** [all-common] Error 1
Regards,
Frank
If you know how to build OpenLDAP manually, and would like to
participate in testing the next set of code for the 2.4.41 release, please
do so.
Generally, get the code for RE24:
<
http://www.openldap.org/devel/gitweb.cgi?p=openldap.git;a=snapshot;h=refs...
Configure & build.
Execute the test suite (via make test) after it is built.
It builds find on EL7 x86_64 and tests succeed.
Build does not work on EL6 x86_64. Exits during make for sasl. I could not
figure out what is wrong. Last lines are below.
If I run the configure script with --with-cyrus-sasl=no, make runs through
without errors.
sasl.c: In function ‘slap_auxprop_lookup’:
sasl.c:320: warning: ‘return’ with a value, in function returning void
sasl.c: In function ‘slap_sasl_init’:
sasl.c:1115: error: ‘sasl_callback_ft’ undeclared (first use in this
function)
sasl.c:1115: error: (Each undeclared identifier is reported only once
sasl.c:1115: error: for each function it appears in.)
sasl.c: In function ‘slap_sasl_open’:
sasl.c:1260: error: ‘sasl_callback_ft’ undeclared (first use in this
function)
sasl.c:1260: error: invalid operands to binary & (have ‘struct
sasl_callback_t *’ and ‘int (*)(void *, int, const char *)’)
sasl.c:1260: warning: assignment from incompatible pointer type
sasl.c:1264: error: invalid operands to binary & (have ‘struct
sasl_callback_t *’ and ‘int (*)(struct sasl_conn_t *, void *, char *,
unsigned int, char *, unsigned int, const char *, unsigned int, struct
propctx *)’)
sasl.c:1264: warning: assignment from incompatible pointer type
sasl.c:1268: error: invalid operands to binary & (have ‘struct
sasl_callback_t *’ and ‘int (*)(struct sasl_conn_t *, void *, const char
*, unsigned int, unsigned int, const char *, char *, unsigned int,
unsigned int *)’)
sasl.c:1268: warning: assignment from incompatible pointer type
make[2]: *** [sasl.o] Error 1
make[2]: Leaving directory
`/home/marco/openldap-OPENLDAP_REL_ENG_2_4-98f70f1/servers/slapd'
make[1]: *** [all-common] Error 1
make[1]: Leaving directory
`/home/marco/openldap-OPENLDAP_REL_ENG_2_4-98f70f1/servers'
make: *** [all-common] Error 1
Thanks
Marco