RC1 build fails on Ubuntu 12.04 error with LDAP_MOD_REPLACE

Rowland Penny repenny at f2s.com
Fri Sep 14 12:38:00 MDT 2012


On 14/09/12 18:43, steve wrote:
> samba --version
> Version 4.1.0pre1-GIT-9158423
> Make distclean
> git clean -xdf
> git pull
>
> ./configure.developer
> make
> [2565/3957] Compiling source3/passdb/pdb_ldap_util.c
> ../source3/passdb/pdb_ldap_util.c:36:7: warning: ‘struct 
> smbldap_state’ declared inside parameter list [enabled by default]
> ../source3/passdb/pdb_ldap_util.c:36:7: warning: its scope is only 
> this definition or declaration, which is probably not what you want 
> [enabled by default]
> ../source3/passdb/pdb_ldap_util.c: In function 
> ‘add_new_domain_account_policies’:
> ../source3/passdb/pdb_ldap_util.c:85:3: error: implicit declaration of 
> function ‘smbldap_set_mod’ [-Werror=implicit-function-declaration]
> ../source3/passdb/pdb_ldap_util.c:85:27: error: ‘LDAP_MOD_REPLACE’ 
> undeclared (first use in this function)
> ../source3/passdb/pdb_ldap_util.c:85:27: note: each undeclared 
> identifier is reported only once for each function it appears in
> ../source3/passdb/pdb_ldap_util.c:87:3: error: implicit declaration of 
> function ‘smbldap_modify’ [-Werror=implicit-function-declaration]
> ../source3/passdb/pdb_ldap_util.c:91:11: error: ‘LDAP_SUCCESS’ 
> undeclared (first use in this function)
> ../source3/passdb/pdb_ldap_util.c:93:4: error: implicit declaration of 
> function ‘ldap_get_option’ [-Werror=implicit-function-declaration]
> ../source3/passdb/pdb_ldap_util.c:93:30: error: dereferencing pointer 
> to incomplete type
> ../source3/passdb/pdb_ldap_util.c:93:45: error: 
> ‘LDAP_OPT_ERROR_STRING’ undeclared (first use in this function)
> ../source3/passdb/pdb_ldap_util.c:94:4: error: implicit declaration of 
> function ‘ldap_err2string’ [-Werror=implicit-function-declaration]
> ../source3/passdb/pdb_ldap_util.c:94:4: error: format ‘%s’ expects 
> argument of type ‘char *’, but argument 3 has type ‘int’ [-Werror=format]
> ../source3/passdb/pdb_ldap_util.c:99:4: error: implicit declaration of 
> function ‘ldap_mods_free’ [-Werror=implicit-function-declaration]
> ../source3/passdb/pdb_ldap_util.c: At top level:
> ../source3/passdb/pdb_ldap_util.c:118:37: warning: ‘struct 
> smbldap_state’ declared inside parameter list [enabled by default]
> ../source3/passdb/pdb_ldap_util.c: In function ‘add_new_domain_info’:
> ../source3/passdb/pdb_ldap_util.c:148:2: error: implicit declaration 
> of function ‘smbldap_search_suffix’ 
> [-Werror=implicit-function-declaration]
> ../source3/passdb/pdb_ldap_util.c:152:12: error: ‘LDAP_SUCCESS’ 
> undeclared (first use in this function)
> ../source3/passdb/pdb_ldap_util.c:156:2: error: implicit declaration 
> of function ‘ldap_count_entries’ [-Werror=implicit-function-declaration]
> ../source3/passdb/pdb_ldap_util.c:156:44: error: dereferencing pointer 
> to incomplete type
> ../source3/passdb/pdb_ldap_util.c:161:3: error: implicit declaration 
> of function ‘ldap_msgfree’ [-Werror=implicit-function-declaration]
> ../source3/passdb/pdb_ldap_util.c:190:25: error: ‘LDAP_MOD_ADD’ 
> undeclared (first use in this function)
> ../source3/passdb/pdb_ldap_util.c:228:2: error: implicit declaration 
> of function ‘smbldap_add’ [-Werror=implicit-function-declaration]
> ../source3/passdb/pdb_ldap_util.c:232:29: error: dereferencing pointer 
> to incomplete type
> ../source3/passdb/pdb_ldap_util.c:233:5: error: 
> ‘LDAP_OPT_ERROR_STRING’ undeclared (first use in this function)
> ../source3/passdb/pdb_ldap_util.c:234:3: error: format ‘%s’ expects 
> argument of type ‘char *’, but argument 3 has type ‘int’ [-Werror=format]
> ../source3/passdb/pdb_ldap_util.c: At top level:
> ../source3/passdb/pdb_ldap_util.c:255:37: warning: ‘struct 
> smbldap_state’ declared inside parameter list [enabled by default]
> ../source3/passdb/pdb_ldap_util.c:253:10: warning: no previous 
> prototype for ‘smbldap_search_domain_info’ [-Wmissing-prototypes]
> ../source3/passdb/pdb_ldap_util.c: In function 
> ‘smbldap_search_domain_info’:
> ../source3/passdb/pdb_ldap_util.c:286:12: error: ‘LDAP_SUCCESS’ 
> undeclared (first use in this function)
> ../source3/passdb/pdb_ldap_util.c:287:3: error: format ‘%s’ expects 
> argument of type ‘char *’, but argument 2 has type ‘int’ [-Werror=format]
> ../source3/passdb/pdb_ldap_util.c:294:39: error: dereferencing pointer 
> to incomplete type
> ../source3/passdb/pdb_ldap_util.c:310:3: warning: passing argument 1 
> of ‘add_new_domain_info’ from incompatible pointer type [enabled by 
> default]
> ../source3/passdb/pdb_ldap_util.c:117:17: note: expected ‘struct 
> smbldap_state *’ but argument is of type ‘struct smbldap_state *’
> ../source3/passdb/pdb_ldap_util.c:317:3: warning: passing argument 1 
> of ‘add_new_domain_account_policies’ from incompatible pointer type 
> [enabled by default]
> ../source3/passdb/pdb_ldap_util.c:35:17: note: expected ‘struct 
> smbldap_state *’ but argument is of type ‘struct smbldap_state *’
> cc1: some warnings being treated as errors
> Waf: Leaving directory `/home/steve/samba-master/bin'
> Build failed: -> task failed (err #1):
> {task: cc pdb_ldap_util.c -> pdb_ldap_util_33.o}
> make: *** [all] Error 1
>
> Can anyone help with this?
>
> Thanks,
> Steve.
>
>
>
>
Hi Steve, can I just point out that you are not trying to compile RC1, 
you are compiling samba 4.1.0pre1.
I would suggest that you download the RC1 tarball from here:

http://ftp.samba.org/pub/samba/rc/samba-4.0.0rc1.tar.gz

And then try again.

Rowland

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the samba-technical mailing list