[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Problems compiling OpenLDAP-2.3.4

My guess is that your build environment is corrupted.  The type
"LDAP_NEXTREF_PROC" has been introduced in OpenLDAP 2.3 and it resides in
ldap.h; my guess is that your include search path provides ldap.h
somewhere before getting to "-I../../include", where the appropriate file
is located.  Is it possible that you have an ldap.h anywhere in
"-I/local/include -I/local/gnu/include"?


> /local/gnu/gcc-bin/gcc -O -march=i386 -I/local/include
> -I/local/gnu/include -D_FILE_OFFSET_BITS=64 -I../../include
> -I../../include -I/local/include -I/local/gnu/include
> -D_FILE_OFFSET_BITS=64 -DLDAP_LIBRARY -c bind.c  -fPIC -DPIC -o bind.lo
> In file included from bind.c:54:
> ldap-int.h:202: error: syntax error before "LDAP_NEXTREF_PROC"
> ldap-int.h:202: warning: no semicolon at end of struct or union
> ldap-int.h:206: error: syntax error before '}' token
> ldap-int.h:299: error: field `ld_options' has incomplete type
> bind.c: In function `ldap_bind':
> bind.c:73: error: invalid use of undefined type `struct ldapoptions'
> bind.c: In function `ldap_bind_s':
> bind.c:118: error: invalid use of undefined type `struct ldapoptions'
> make[2]: *** [bind.lo] Error 1
> make[2]: Leaving directory
> `/home/tallakh/cvs/drift/OpenLDAP-2.3/libraries/libldap'
> make[1]: *** [all-common] Error 1
> make[1]: Leaving directory
> `/home/tallakh/cvs/drift/OpenLDAP-2.3/libraries'
> make: *** [all-common] Error 1
> Build.DAM: Failed to run make -f Makefile sysconfdir=/etc/DAM at
> /local/lib/perl5/site_perl/DAM/Build.pm line 2472.
> If you need any more information, feel free to contact me.
> And thanks for any help.
> --
> Regards
> Tallak Hellebust
> tallakh@basefarm.com
> www.basefarm.com

Pierangelo Masarati

    SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497