RC1 build fails on Ubuntu 12.04 error with LDAP_MOD_REPLACE

Taylor, Jonn jonnt at taylortelephone.com
Fri Sep 14 15:52:45 MDT 2012


On 09/14/2012 01:38 PM, Rowland Penny wrote:
> 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
>
I just tried to build master on CentOS 5.8 x86_64 and get the same problem.

[2564/3949] Compiling source3/passdb/pdb_ldap_util.c
../source3/passdb/pdb_ldap_util.c:36: warning: ‘struct smbldap_state’ 
declared inside parameter list
../source3/passdb/pdb_ldap_util.c:36: warning: its scope is only this 
definition or declaration, which is probably not what you want
../source3/passdb/pdb_ldap_util.c: In function 
‘add_new_domain_account_policies’:
../source3/passdb/pdb_ldap_util.c:85: error: implicit declaration of 
function ‘smbldap_set_mod’
../source3/passdb/pdb_ldap_util.c:85: error: ‘LDAP_MOD_REPLACE’ 
undeclared (first use in this function)
../source3/passdb/pdb_ldap_util.c:85: error: (Each undeclared identifier 
is reported only once
../source3/passdb/pdb_ldap_util.c:85: error: for each function it 
appears in.)
../source3/passdb/pdb_ldap_util.c:87: error: implicit declaration of 
function ‘smbldap_modify’
../source3/passdb/pdb_ldap_util.c:91: error: ‘LDAP_SUCCESS’ undeclared 
(first use in this function)
../source3/passdb/pdb_ldap_util.c:93: error: implicit declaration of 
function ‘ldap_get_option’
../source3/passdb/pdb_ldap_util.c:93: error: dereferencing pointer to 
incomplete type
../source3/passdb/pdb_ldap_util.c:93: error: ‘LDAP_OPT_ERROR_STRING’ 
undeclared (first use in this function)
../source3/passdb/pdb_ldap_util.c:94: error: implicit declaration of 
function ‘ldap_err2string’
../source3/passdb/pdb_ldap_util.c:94: error: format ‘%s’ expects type 
‘char *’, but argument 3 has type ‘int’
../source3/passdb/pdb_ldap_util.c:99: error: implicit declaration of 
function ‘ldap_mods_free’
../source3/passdb/pdb_ldap_util.c: At top level:
../source3/passdb/pdb_ldap_util.c:118: warning: ‘struct smbldap_state’ 
declared inside parameter list
../source3/passdb/pdb_ldap_util.c: In function ‘add_new_domain_info’:
../source3/passdb/pdb_ldap_util.c:148: error: implicit declaration of 
function ‘smbldap_search_suffix’
../source3/passdb/pdb_ldap_util.c:152: error: ‘LDAP_SUCCESS’ undeclared 
(first use in this function)
../source3/passdb/pdb_ldap_util.c:156: error: implicit declaration of 
function ‘ldap_count_entries’
../source3/passdb/pdb_ldap_util.c:156: error: dereferencing pointer to 
incomplete type
../source3/passdb/pdb_ldap_util.c:161: error: implicit declaration of 
function ‘ldap_msgfree’
../source3/passdb/pdb_ldap_util.c:190: error: ‘LDAP_MOD_ADD’ undeclared 
(first use in this function)
../source3/passdb/pdb_ldap_util.c:228: error: implicit declaration of 
function ‘smbldap_add’
../source3/passdb/pdb_ldap_util.c:232: error: dereferencing pointer to 
incomplete type
../source3/passdb/pdb_ldap_util.c:233: error: ‘LDAP_OPT_ERROR_STRING’ 
undeclared (first use in this function)
../source3/passdb/pdb_ldap_util.c:234: error: format ‘%s’ expects type 
‘char *’, but argument 3 has type ‘int’
../source3/passdb/pdb_ldap_util.c: At top level:
../source3/passdb/pdb_ldap_util.c:255: warning: ‘struct smbldap_state’ 
declared inside parameter list
../source3/passdb/pdb_ldap_util.c:253: warning: no previous prototype 
for ‘smbldap_search_domain_info’
../source3/passdb/pdb_ldap_util.c: In function ‘smbldap_search_domain_info’:
../source3/passdb/pdb_ldap_util.c:286: error: ‘LDAP_SUCCESS’ undeclared 
(first use in this function)
../source3/passdb/pdb_ldap_util.c:287: error: format ‘%s’ expects type 
‘char *’, but argument 2 has type ‘int’
../source3/passdb/pdb_ldap_util.c:294: error: dereferencing pointer to 
incomplete type
../source3/passdb/pdb_ldap_util.c:310: warning: passing argument 1 of 
‘add_new_domain_info’ from incompatible pointer type
../source3/passdb/pdb_ldap_util.c:117: note: expected ‘struct 
smbldap_state *’ but argument is of type ‘struct smbldap_state *’
../source3/passdb/pdb_ldap_util.c:317: warning: passing argument 1 of 
‘add_new_domain_account_policies’ from incompatible pointer type
../source3/passdb/pdb_ldap_util.c:35: note: expected ‘struct 
smbldap_state *’ but argument is of type ‘struct smbldap_state *’
Waf: Leaving directory `/usr/src/samba-master/bin'
Build failed:  -> task failed (err #1):
     {task: cc pdb_ldap_util.c -> pdb_ldap_util_33.o}
make: *** [all] Error 1


Jonn



More information about the samba-technical mailing list