[Samba] 2nd try: Lots of RPC-related compile errors (conflicting types, too many arguments, ...) trying to update Samba from 3.5 to 4.6
Andrew Bartlett
abartlet at samba.org
Thu Jun 8 09:05:48 UTC 2017
On Thu, 2017-06-08 at 10:09 +0200, awl1 via samba wrote:
> Hello again, Samba experts,
>
> sorry for being such a pain in your necks, but I really need to get a
> recent Samba version to compile, and it looks like I definitely need
> your help with this.
>
> In the meantime, I have found that the huge number of "conflicting
> types" errors for rpc_*_init(...) is due to the fact that the Samba
> 4.6.4 codebase seems to have for all RPC modules:
>
> NTSTATUS rpc_*_init(_*const struct rpc_srv_callbacks *rpc_srv_cb*_);
>
> while in expansion of macro 'static_decl_rpc', from file
> bin/default/iclude/config.h which seems to be autogenerated during the
> configure process, we have
>
> extern NTSTATUS rpc_*_init(_*void*_);
>
> (why is this so?), which of course then causes this inconsistency and
> error messages trying to compile the affected RPC modules.
>
> *But this error seems so basic and big that I am wondering how anybody
> at all should/would be able to compile Samba 4.6.x at all with any RPC
> modules!?*
>
> Can you please look into this and tell me what I am missing here (I am a
> newbie to compiling Samba, but not to compiling Linux software) and how
> I am supposed to compile a current 4.6.x Samba server with all the modules
>
> pdb_ldap pdb_smbpasswd pdb_tdbsam pdb_wbc_sam rpc_lsarpc rpc_winreg
> rpc_initshutdown rpc_dssetup rpc_wkssvc rpc_svcctl rpc_ntsvcs
> rpc_netlogon rpc_netdfs rpc_srvsvc rpc_spoolss rpc_eventlog rpc_samr
> idmap_ldap idmap_tdb idmap_passdb idmap_nss nss_info_template auth_sam
> auth_unix auth_winbind auth_wbc auth_server auth_domain auth_builtin
> auth_netlogond vfs_default vfs_posixacl
>
> that I need in the Samba server for my NAS with version 4.6.x based on
> the inconsistent function prototypes!?
>
> Many thanks one more time & best regards,
> Andreas
I think the key to avoiding the issue is that you have listed rpc
modules which are not modules. The only rpc server module is
rpc_mdssvc_module.
Thanks,
Andrew Bartlett
--
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba
More information about the samba
mailing list