Make fails on RC 1 Centos 6.3
Alexander Bokovoy
ab at samba.org
Fri Sep 14 05:12:10 MDT 2012
On Fri, Sep 14, 2012 at 12:58 PM, Per Qvindesland <perqvind at gmail.com> wrote:
> Hi List
>
> I am trying to run make on RC 1 on a Centos 6.3 but it fails with the
> following output:
>
> 2478/3780] 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: ‘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:91: error: ‘LDAP_SUCCESS’ undeclared
> (first use in this function)
> ../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: 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:152: error: ‘LDAP_SUCCESS’ undeclared
> (first use in this function)
> ../source3/passdb/pdb_ldap_util.c:156: error: dereferencing pointer to
> incomplete type
> ../source3/passdb/pdb_ldap_util.c:190: error: ‘LDAP_MOD_ADD’ undeclared
> (first use in this function)
> ../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: At top level:
> ../source3/passdb/pdb_ldap_util.c:255: warning: ‘struct smbldap_state’
> declared inside parameter list
> ../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: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 `/root/samba-master/bin'
> Build failed: -> task failed (err #1):
> {task: cc pdb_ldap_util.c -> pdb_ldap_util_33.o}
> make: *** [all] Error 1
>
> Configures reports that everything is a ok but make is not a happy bunny.
>
> Is there a workaround for this?
Looks like you don't have openldap-devel installed.
--
/ Alexander Bokovoy
More information about the samba-technical
mailing list