awl1
2017-Jun-05 10:57 UTC
[Samba] Lots of RPC-related compile errors (conflicting types, too many arguments, ...) trying to update Samba from 3.5 to 4.6
Hello Samba experts, due to the "SambaCry" issue (CVE-2017-7494), I am trying to update the Samba server installation on my Thecus NAS (dating back to 2011) from version 3.5.16 to the current 4.6.4. So far, I have successfully * created a cross-compiling toolchain for the NAS (i686-nptl-linux-gnu) based on gcc-5.2 * compiled Python and Samba library dependencies for my target configuration * configured the Samba build for cross-compile, using "--cross-execute" with your script "run_on_target.py", a local Python install for i686-nptl-linux-gnu on my build machine and the exact same module configuration (static vs. shared) as retrieved from "smbd -b" output of the old 3.5.16 Builtin 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 but I am still unable to compile Samba with this setup due to an awful lot of compile errors from RPC modules. Unfortunately, it seems that cross-compiling Samba 4.x still is a rather frustrating experience with the build system having changed from autoconf to waf... Please find below the relevant excerpts and the compile errors. In case you would like to see the full make log (670 kB) just let me know where to upload it or whether it is ok to attach it to the list mail... Am I still doing somthing terribly wrong here? To me, it rather looks as if there was a major inconsistency in the Samba sources!? Many thanks in advance for your kind help with this! Best regards Andreas == waf configure --cross-compile \ '--cross-execute=./buildtools/examples/run_on_target.py --host=n4200pro --user=sys --ssh=ssh --destdir=/raid/data/tmp/samba-waf' \ --hostcc=/usr/bin/gcc \ --host i686-nptl-linux-gnu \ --target i686-nptl-linux-gnu \ --prefix=/raid/data/module/SambaUpdate/sys \ --libdir=/raid/data/module/SambaUpdate/sys/lib \ --localstatedir=/raid/data/module/SambaUpdate/sys/var \ --sharedstatedir=/raid/data/module/SambaUpdate/sys/var/lib \ --with-configdir=/raid/data/module/SambaUpdate/sys/etc \ --with-static-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 \ --bundled-libraries=ALL \ --download \ --enable-gnutls \ --enable-cups \ --enable-iprint \ --with-pam \ --with-quotas \ --with-sendfile-support \ --with-utmp \ --enable-pthreadpool \ --enable-avahi \ --with-iconv \ --with-acl-support \ --with-dnsupdate \ --with-syslog \ --with-automount \ --with-profiling-data \ --without-libarchive \ --without-regedit \ --without-fake-kaserver \ --without-cluster-support \ --disable-glusterfs \ --disable-cephfs \ --disable-spotlight \ --without-systemd \ --without-ldap \ --without-lttng \ --without-ads \ --without-winbind \ --without-ad-dc \ --without-ntvfs-fileserver \ --enable-gccdeps (...) VFS_STATIC: vfs_default,vfs_posixacl VFS_SHARED: vfs_recycle,vfs_audit,vfs_extd_audit,vfs_full_audit,vfs_netatalk,vfs_fake_perms,vfs_default_quota,vfs_readonly,vfs_cap,vfs_expand_msdfs,vfs_shadow_copy,vfs_shadow_copy2,vfs_readahead,vfs_xattr_tdb,vfs_posix_eadb,vfs_streams_xattr,vfs_streams_depot,vfs_acl_xattr,vfs_acl_tdb,vfs_preopen,vfs_catia,vfs_media_harmony,vfs_unityed_media,vfs_fruit,vfs_shell_snap,vfs_commit,vfs_worm,vfs_crossrename,vfs_linux_xfs_sgid,vfs_time_audit,vfs_offline,vfs_syncops,vfs_dirsort,vfs_fileid,vfs_aio_fork,vfs_aio_pthread,vfs_btrfs PDB_STATIC: pdb_smbpasswd,pdb_tdbsam,pdb_wbc_sam,pdb_ldapsam PDB_SHARED: AUTH_STATIC: auth_domain,auth_builtin,auth_sam,auth_winbind,auth_unix,auth_wbc,auth_server,auth_netlogond AUTH_SHARED: auth_script NSS_INFO_STATIC: nss_info_template NSS_INFO_SHARED: CHARSET_STATIC: CHARSET_SHARED: IDMAP_STATIC: idmap_tdb,idmap_passdb,idmap_nss,idmap_ldap IDMAP_SHARED: idmap_autorid,idmap_rid,idmap_hash,idmap_tdb2,idmap_script GPEXT_STATIC: GPEXT_SHARED: PERFCOUNT_STATIC: PERFCOUNT_SHARED: RPC_STATIC: 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 RPC_SHARED: (...) [ 248/3390] Compiling IDL librpc/idl/auth.idl /home/andreas/Thecus/SambaUpdate/samba-4.6.4/librpc/idl/auth.idl:115: warning: helper() is pidl-specific and deprecated. Use `include' instead /home/andreas/Thecus/SambaUpdate/samba-4.6.4/librpc/idl/auth.idl:107: error: Unable to determine origin of type `struct cli_credentials' /home/andreas/Thecus/SambaUpdate/samba-4.6.4/librpc/idl/auth.idl:107: error: Unable to determine origin of type `struct cli_credentials' (...) [ 328/3390] Compiling IDL librpc/idl/winbind.idl /home/andreas/Thecus/SambaUpdate/samba-4.6.4/librpc/idl/winbind.idl:182: warning: [out] argument `validation' not a pointer /home/andreas/Thecus/SambaUpdate/samba-4.6.4/librpc/idl/winbind.idl:184: warning: [out] argument `authoritative' not a pointer /home/andreas/Thecus/SambaUpdate/samba-4.6.4/librpc/idl/winbind.idl:182: error: winbind_SamLogon: [out] argument 'validation' is not a pointer or array, skip client functions [ 329/3390] Compiling IDL source4/librpc/idl/irpc.idl /home/andreas/Thecus/SambaUpdate/samba-4.6.4/source4/librpc/idl/irpc.idl:28: warning: subcontext() is deprecated. Use represent_as() or transmit_as() instead /home/andreas/Thecus/SambaUpdate/samba-4.6.4/source4/librpc/idl/irpc.idl:70: warning: [out] argument `info' not a pointer /home/andreas/Thecus/SambaUpdate/samba-4.6.4/source4/librpc/idl/irpc.idl:83: warning: top-level [out] pointer `dcname' is not a [ref] pointer /home/andreas/Thecus/SambaUpdate/samba-4.6.4/source4/librpc/idl/irpc.idl:91: warning: [out] argument `num_addrs' not a pointer /home/andreas/Thecus/SambaUpdate/samba-4.6.4/source4/librpc/idl/irpc.idl:113: warning: [out] argument `generic_reply' not a pointer /home/andreas/Thecus/SambaUpdate/samba-4.6.4/source4/librpc/idl/irpc.idl:159: warning: [out] argument `info' not a pointer /home/andreas/Thecus/SambaUpdate/samba-4.6.4/source4/librpc/idl/irpc.idl:70: error: nbtd_information: [out] argument 'info' is not a pointer or array, skip client functions /home/andreas/Thecus/SambaUpdate/samba-4.6.4/source4/librpc/idl/irpc.idl:83: error: nbtd_getdcname: [out] argument 'dcname' is a pointer to type 'string', skip client functions /home/andreas/Thecus/SambaUpdate/samba-4.6.4/source4/librpc/idl/irpc.idl:91: error: nbtd_proxy_wins_challenge: [out] argument 'num_addrs' is not a pointer or array, skip client functions /home/andreas/Thecus/SambaUpdate/samba-4.6.4/source4/librpc/idl/irpc.idl:113: error: kdc_check_generic_kerberos: [out] argument 'generic_reply' is not a pointer or array, skip client functions /home/andreas/Thecus/SambaUpdate/samba-4.6.4/source4/librpc/idl/irpc.idl:159: error: smbsrv_information: [out] argument 'info' is not a pointer or array, skip client functions (...) [2569/3390] Compiling source3/rpc_server/rpc_service_setup.c In file included from ../source4/heimdal_build/config.h:9:0, from ../lib/tevent/../replace/replace.h:32, from ../source3/include/includes.h:23, from ../source3/rpc_server/rpc_service_setup.c:22: default/include/config.h:962:41: error: conflicting types for 'rpc_lsarpc_init' #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern NTSTATUS rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS rpc_netlogon_init(void); extern NTSTATUS rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of macro 'static_decl_rpc' static_decl_rpc; ^ In file included from ../source3/rpc_server/rpc_service_setup.c:34:0: default/source3/../librpc/gen_ndr/srv_lsa.h:88:10: note: previous declaration of 'rpc_lsarpc_init' was here NTSTATUS rpc_lsarpc_init(const struct rpc_srv_callbacks *rpc_srv_cb); ^ In file included from ../source4/heimdal_build/config.h:9:0, from ../lib/tevent/../replace/replace.h:32, from ../source3/include/includes.h:23, from ../source3/rpc_server/rpc_service_setup.c:22: default/include/config.h:962:80: error: conflicting types for 'rpc_winreg_init' #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern NTSTATUS rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS rpc_netlogon_init(void); extern NTSTATUS rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of macro 'static_decl_rpc' static_decl_rpc; ^ In file included from ../source3/rpc_server/rpc_service_setup.c:28:0: default/source3/../librpc/gen_ndr/srv_winreg.h:42:10: note: previous declaration of 'rpc_winreg_init' was here NTSTATUS rpc_winreg_init(const struct rpc_srv_callbacks *rpc_srv_cb); ^ In file included from ../source4/heimdal_build/config.h:9:0, from ../lib/tevent/../replace/replace.h:32, from ../source3/include/includes.h:23, from ../source3/rpc_server/rpc_service_setup.c:22: default/include/config.h:962:119: error: conflicting types for 'rpc_initshutdown_init' #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern NTSTATUS rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS rpc_netlogon_init(void); extern NTSTATUS rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of macro 'static_decl_rpc' static_decl_rpc; ^ In file included from ../source3/rpc_server/rpc_service_setup.c:33:0: default/source3/../librpc/gen_ndr/srv_initshutdown.h:9:10: note: previous declaration of 'rpc_initshutdown_init' was here NTSTATUS rpc_initshutdown_init(const struct rpc_srv_callbacks *rpc_srv_cb); ^ In file included from ../source4/heimdal_build/config.h:9:0, from ../lib/tevent/../replace/replace.h:32, from ../source3/include/includes.h:23, from ../source3/rpc_server/rpc_service_setup.c:22: default/include/config.h:962:164: error: conflicting types for 'rpc_dssetup_init' #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern NTSTATUS rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS rpc_netlogon_init(void); extern NTSTATUS rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of macro 'static_decl_rpc' static_decl_rpc; ^ In file included from ../source3/rpc_server/rpc_service_setup.c:30:0: default/source3/../librpc/gen_ndr/srv_dssetup.h:17:10: note: previous declaration of 'rpc_dssetup_init' was here NTSTATUS rpc_dssetup_init(const struct rpc_srv_callbacks *rpc_srv_cb); ^ In file included from ../source4/heimdal_build/config.h:9:0, from ../lib/tevent/../replace/replace.h:32, from ../source3/include/includes.h:23, from ../source3/rpc_server/rpc_service_setup.c:22: default/include/config.h:962:204: error: conflicting types for 'rpc_wkssvc_init' #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern NTSTATUS rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS rpc_netlogon_init(void); extern NTSTATUS rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of macro 'static_decl_rpc' static_decl_rpc; ^ In file included from ../source3/rpc_server/rpc_service_setup.c:40:0: default/source3/../librpc/gen_ndr/srv_wkssvc.h:37:10: note: previous declaration of 'rpc_wkssvc_init' was here NTSTATUS rpc_wkssvc_init(const struct rpc_srv_callbacks *rpc_srv_cb); ^ In file included from ../source4/heimdal_build/config.h:9:0, from ../lib/tevent/../replace/replace.h:32, from ../source3/include/includes.h:23, from ../source3/rpc_server/rpc_service_setup.c:22: default/include/config.h:962:243: error: conflicting types for 'rpc_svcctl_init' #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern NTSTATUS rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS rpc_netlogon_init(void); extern NTSTATUS rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of macro 'static_decl_rpc' static_decl_rpc; ^ In file included from ../source3/rpc_server/rpc_service_setup.c:39:0: default/source3/../librpc/gen_ndr/srv_svcctl.h:50:10: note: previous declaration of 'rpc_svcctl_init' was here NTSTATUS rpc_svcctl_init(const struct rpc_srv_callbacks *rpc_srv_cb); ^ In file included from ../source4/heimdal_build/config.h:9:0, from ../lib/tevent/../replace/replace.h:32, from ../source3/include/includes.h:23, from ../source3/rpc_server/rpc_service_setup.c:22: default/include/config.h:962:282: error: conflicting types for 'rpc_ntsvcs_init' #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern NTSTATUS rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS rpc_netlogon_init(void); extern NTSTATUS rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of macro 'static_decl_rpc' static_decl_rpc; ^ In file included from ../source3/rpc_server/rpc_service_setup.c:36:0: default/source3/../librpc/gen_ndr/srv_ntsvcs.h:71:10: note: previous declaration of 'rpc_ntsvcs_init' was here NTSTATUS rpc_ntsvcs_init(const struct rpc_srv_callbacks *rpc_srv_cb); ^ In file included from ../source4/heimdal_build/config.h:9:0, from ../lib/tevent/../replace/replace.h:32, from ../source3/include/includes.h:23, from ../source3/rpc_server/rpc_service_setup.c:22: default/include/config.h:962:321: error: conflicting types for 'rpc_netlogon_init' #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern NTSTATUS rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS rpc_netlogon_init(void); extern NTSTATUS rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of macro 'static_decl_rpc' static_decl_rpc; ^ In file included from ../source3/rpc_server/rpc_service_setup.c:35:0: default/source3/../librpc/gen_ndr/srv_netlogon.h:55:10: note: previous declaration of 'rpc_netlogon_init' was here NTSTATUS rpc_netlogon_init(const struct rpc_srv_callbacks *rpc_srv_cb); ^ In file included from ../source4/heimdal_build/config.h:9:0, from ../lib/tevent/../replace/replace.h:32, from ../source3/include/includes.h:23, from ../source3/rpc_server/rpc_service_setup.c:22: default/include/config.h:962:362: error: conflicting types for 'rpc_netdfs_init' #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern NTSTATUS rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS rpc_netlogon_init(void); extern NTSTATUS rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of macro 'static_decl_rpc' static_decl_rpc; ^ In file included from ../source3/rpc_server/rpc_service_setup.c:29:0: default/source3/../librpc/gen_ndr/srv_dfs.h:29:10: note: previous declaration of 'rpc_netdfs_init' was here NTSTATUS rpc_netdfs_init(const struct rpc_srv_callbacks *rpc_srv_cb); ^ In file included from ../source4/heimdal_build/config.h:9:0, from ../lib/tevent/../replace/replace.h:32, from ../source3/include/includes.h:23, from ../source3/rpc_server/rpc_service_setup.c:22: default/include/config.h:962:401: error: conflicting types for 'rpc_srvsvc_init' #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern NTSTATUS rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS rpc_netlogon_init(void); extern NTSTATUS rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of macro 'static_decl_rpc' static_decl_rpc; ^ In file included from ../source3/rpc_server/rpc_service_setup.c:27:0: default/source3/../librpc/gen_ndr/srv_srvsvc.h:60:10: note: previous declaration of 'rpc_srvsvc_init' was here NTSTATUS rpc_srvsvc_init(const struct rpc_srv_callbacks *rpc_srv_cb); ^ In file included from ../source4/heimdal_build/config.h:9:0, from ../lib/tevent/../replace/replace.h:32, from ../source3/include/includes.h:23, from ../source3/rpc_server/rpc_service_setup.c:22: default/include/config.h:962:440: error: conflicting types for 'rpc_spoolss_init' #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern NTSTATUS rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS rpc_netlogon_init(void); extern NTSTATUS rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of macro 'static_decl_rpc' static_decl_rpc; ^ In file included from ../source3/rpc_server/rpc_service_setup.c:38:0: default/source3/../librpc/gen_ndr/srv_spoolss.h:123:10: note: previous declaration of 'rpc_spoolss_init' was here NTSTATUS rpc_spoolss_init(const struct rpc_srv_callbacks *rpc_srv_cb); ^ In file included from ../source4/heimdal_build/config.h:9:0, from ../lib/tevent/../replace/replace.h:32, from ../source3/include/includes.h:23, from ../source3/rpc_server/rpc_service_setup.c:22: default/include/config.h:962:480: error: conflicting types for 'rpc_eventlog_init' #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern NTSTATUS rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS rpc_netlogon_init(void); extern NTSTATUS rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of macro 'static_decl_rpc' static_decl_rpc; ^ In file included from ../source3/rpc_server/rpc_service_setup.c:32:0: default/source3/../librpc/gen_ndr/srv_eventlog.h:31:10: note: previous declaration of 'rpc_eventlog_init' was here NTSTATUS rpc_eventlog_init(const struct rpc_srv_callbacks *rpc_srv_cb); ^ In file included from ../source4/heimdal_build/config.h:9:0, from ../lib/tevent/../replace/replace.h:32, from ../source3/include/includes.h:23, from ../source3/rpc_server/rpc_service_setup.c:22: default/include/config.h:962:521: error: conflicting types for 'rpc_samr_init' #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern NTSTATUS rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS rpc_netlogon_init(void); extern NTSTATUS rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of macro 'static_decl_rpc' static_decl_rpc; ^ In file included from ../source3/rpc_server/rpc_service_setup.c:37:0: default/source3/../librpc/gen_ndr/srv_samr.h:74:10: note: previous declaration of 'rpc_samr_init' was here NTSTATUS rpc_samr_init(const struct rpc_srv_callbacks *rpc_srv_cb); ^ ../source3/rpc_server/rpc_service_setup.c: In function 'rpc_setup_winreg': ../source3/rpc_server/rpc_service_setup.c:110:11: error: too many arguments to function 'rpc_winreg_init' status = rpc_winreg_init(NULL); ^ In file included from ../source4/heimdal_build/config.h:9:0, from ../lib/tevent/../replace/replace.h:32, from ../source3/include/includes.h:23, from ../source3/rpc_server/rpc_service_setup.c:22: default/include/config.h:962:80: note: declared here #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern NTSTATUS rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS rpc_netlogon_init(void); extern NTSTATUS rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of macro 'static_decl_rpc' static_decl_rpc; ^ ../source3/rpc_server/rpc_service_setup.c: In function 'rpc_setup_srvsvc': ../source3/rpc_server/rpc_service_setup.c:129:11: error: too many arguments to function 'rpc_srvsvc_init' status = rpc_srvsvc_init(NULL); ^ In file included from ../source4/heimdal_build/config.h:9:0, from ../lib/tevent/../replace/replace.h:32, from ../source3/include/includes.h:23, from ../source3/rpc_server/rpc_service_setup.c:22: default/include/config.h:962:401: note: declared here #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern NTSTATUS rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS rpc_netlogon_init(void); extern NTSTATUS rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of macro 'static_decl_rpc' static_decl_rpc; ^ ../source3/rpc_server/rpc_service_setup.c: In function 'rpc_setup_lsarpc': ../source3/rpc_server/rpc_service_setup.c:149:11: error: too many arguments to function 'rpc_lsarpc_init' status = rpc_lsarpc_init(NULL); ^ In file included from ../source4/heimdal_build/config.h:9:0, from ../lib/tevent/../replace/replace.h:32, from ../source3/include/includes.h:23, from ../source3/rpc_server/rpc_service_setup.c:22: default/include/config.h:962:41: note: declared here #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern NTSTATUS rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS rpc_netlogon_init(void); extern NTSTATUS rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of macro 'static_decl_rpc' static_decl_rpc; ^ ../source3/rpc_server/rpc_service_setup.c: In function 'rpc_setup_samr': ../source3/rpc_server/rpc_service_setup.c:169:11: error: too many arguments to function 'rpc_samr_init' status = rpc_samr_init(NULL); ^ In file included from ../source4/heimdal_build/config.h:9:0, from ../lib/tevent/../replace/replace.h:32, from ../source3/include/includes.h:23, from ../source3/rpc_server/rpc_service_setup.c:22: default/include/config.h:962:521: note: declared here #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern NTSTATUS rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS rpc_netlogon_init(void); extern NTSTATUS rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of macro 'static_decl_rpc' static_decl_rpc; ^ ../source3/rpc_server/rpc_service_setup.c: In function 'rpc_setup_netlogon': ../source3/rpc_server/rpc_service_setup.c:189:11: error: too many arguments to function 'rpc_netlogon_init' status = rpc_netlogon_init(NULL); ^ In file included from ../source4/heimdal_build/config.h:9:0, from ../lib/tevent/../replace/replace.h:32, from ../source3/include/includes.h:23, from ../source3/rpc_server/rpc_service_setup.c:22: default/include/config.h:962:321: note: declared here #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern NTSTATUS rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS rpc_netlogon_init(void); extern NTSTATUS rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of macro 'static_decl_rpc' static_decl_rpc; ^ ../source3/rpc_server/rpc_service_setup.c: In function 'rpc_setup_netdfs': ../source3/rpc_server/rpc_service_setup.c:208:11: error: too many arguments to function 'rpc_netdfs_init' status = rpc_netdfs_init(NULL); ^ In file included from ../source4/heimdal_build/config.h:9:0, from ../lib/tevent/../replace/replace.h:32, from ../source3/include/includes.h:23, from ../source3/rpc_server/rpc_service_setup.c:22: default/include/config.h:962:362: note: declared here #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern NTSTATUS rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS rpc_netlogon_init(void); extern NTSTATUS rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of macro 'static_decl_rpc' static_decl_rpc; ^ ../source3/rpc_server/rpc_service_setup.c: In function 'rpc_setup_dssetup': ../source3/rpc_server/rpc_service_setup.c:248:11: error: too many arguments to function 'rpc_dssetup_init' status = rpc_dssetup_init(NULL); ^ In file included from ../source4/heimdal_build/config.h:9:0, from ../lib/tevent/../replace/replace.h:32, from ../source3/include/includes.h:23, from ../source3/rpc_server/rpc_service_setup.c:22: default/include/config.h:962:164: note: declared here #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern NTSTATUS rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS rpc_netlogon_init(void); extern NTSTATUS rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of macro 'static_decl_rpc' static_decl_rpc; ^ ../source3/rpc_server/rpc_service_setup.c: In function 'rpc_setup_wkssvc': ../source3/rpc_server/rpc_service_setup.c:267:11: error: too many arguments to function 'rpc_wkssvc_init' status = rpc_wkssvc_init(NULL); ^ In file included from ../source4/heimdal_build/config.h:9:0, from ../lib/tevent/../replace/replace.h:32, from ../source3/include/includes.h:23, from ../source3/rpc_server/rpc_service_setup.c:22: default/include/config.h:962:204: note: declared here #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern NTSTATUS rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS rpc_netlogon_init(void); extern NTSTATUS rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of macro 'static_decl_rpc' static_decl_rpc; ^ ../source3/rpc_server/rpc_service_setup.c: In function 'rpc_setup_spoolss': ../source3/rpc_server/rpc_service_setup.c:320:11: error: too many arguments to function 'rpc_spoolss_init' status = rpc_spoolss_init(&spoolss_cb); ^ In file included from ../source4/heimdal_build/config.h:9:0, from ../lib/tevent/../replace/replace.h:32, from ../source3/include/includes.h:23, from ../source3/rpc_server/rpc_service_setup.c:22: default/include/config.h:962:440: note: declared here #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern NTSTATUS rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS rpc_netlogon_init(void); extern NTSTATUS rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of macro 'static_decl_rpc' static_decl_rpc; ^ ../source3/rpc_server/rpc_service_setup.c: In function 'rpc_setup_svcctl': ../source3/rpc_server/rpc_service_setup.c:368:11: error: too many arguments to function 'rpc_svcctl_init' status = rpc_svcctl_init(&svcctl_cb); ^ In file included from ../source4/heimdal_build/config.h:9:0, from ../lib/tevent/../replace/replace.h:32, from ../source3/include/includes.h:23, from ../source3/rpc_server/rpc_service_setup.c:22: default/include/config.h:962:243: note: declared here #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern NTSTATUS rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS rpc_netlogon_init(void); extern NTSTATUS rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of macro 'static_decl_rpc' static_decl_rpc; ^ ../source3/rpc_server/rpc_service_setup.c: In function 'rpc_setup_ntsvcs': ../source3/rpc_server/rpc_service_setup.c:386:11: error: too many arguments to function 'rpc_ntsvcs_init' status = rpc_ntsvcs_init(NULL); ^ In file included from ../source4/heimdal_build/config.h:9:0, from ../lib/tevent/../replace/replace.h:32, from ../source3/include/includes.h:23, from ../source3/rpc_server/rpc_service_setup.c:22: default/include/config.h:962:282: note: declared here #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern NTSTATUS rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS rpc_netlogon_init(void); extern NTSTATUS rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of macro 'static_decl_rpc' static_decl_rpc; ^ ../source3/rpc_server/rpc_service_setup.c: In function 'rpc_setup_eventlog': ../source3/rpc_server/rpc_service_setup.c:423:11: error: too many arguments to function 'rpc_eventlog_init' status = rpc_eventlog_init(&eventlog_cb); ^ In file included from ../source4/heimdal_build/config.h:9:0, from ../lib/tevent/../replace/replace.h:32, from ../source3/include/includes.h:23, from ../source3/rpc_server/rpc_service_setup.c:22: default/include/config.h:962:480: note: declared here #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern NTSTATUS rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS rpc_netlogon_init(void); extern NTSTATUS rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of macro 'static_decl_rpc' static_decl_rpc; ^ ../source3/rpc_server/rpc_service_setup.c: In function 'rpc_setup_initshutdown': ../source3/rpc_server/rpc_service_setup.c:441:11: error: too many arguments to function 'rpc_initshutdown_init' status = rpc_initshutdown_init(NULL); ^ In file included from ../source4/heimdal_build/config.h:9:0, from ../lib/tevent/../replace/replace.h:32, from ../source3/include/includes.h:23, from ../source3/rpc_server/rpc_service_setup.c:22: default/include/config.h:962:119: note: declared here #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern NTSTATUS rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS rpc_netlogon_init(void); extern NTSTATUS rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of macro 'static_decl_rpc' static_decl_rpc; ^ Waf: Leaving directory `/home/andreas/Thecus/SambaUpdate/samba-4.6.4/bin' Build failed: -> task failed (err #1): {task: cc rpc_service_setup.c -> rpc_service_setup_29.o} Makefile:8: recipe for target 'all' failed make: *** [all] Error 1
awl1
2017-Jun-08 08:09 UTC
[Samba] 2nd try: Lots of RPC-related compile errors (conflicting types, too many arguments, ...) trying to update Samba from 3.5 to 4.6
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 Am 05.06.2017 um 12:57 schrieb awl1:> Hello Samba experts, > > due to the "SambaCry" issue (CVE-2017-7494), I am trying to update the > Samba server installation on my Thecus NAS (dating back to 2011) from > version 3.5.16 to the current 4.6.4. > > So far, I have successfully > > * created a cross-compiling toolchain for the NAS > (i686-nptl-linux-gnu) based on gcc-5.2 > * compiled Python and Samba library dependencies for my target > configuration > * configured the Samba build for cross-compile, using > "--cross-execute" with your script "run_on_target.py", a local > Python install for i686-nptl-linux-gnu on my build machine and the > exact same module configuration (static vs. shared) as retrieved > from "smbd -b" output of the old 3.5.16 > > Builtin 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 > > but I am still unable to compile Samba with this setup due to an awful > lot of compile errors from RPC modules. > > Unfortunately, it seems that cross-compiling Samba 4.x still is a > rather frustrating experience with the build system having changed > from autoconf to waf... > > Please find below the relevant excerpts and the compile errors. In > case you would like to see the full make log (670 kB) just let me know > where to upload it or whether it is ok to attach it to the list mail... > > Am I still doing somthing terribly wrong here? To me, it rather looks > as if there was a major inconsistency in the Samba sources!? > > Many thanks in advance for your kind help with this! > > Best regards > Andreas > > > ==> > waf configure --cross-compile \ > '--cross-execute=./buildtools/examples/run_on_target.py > --host=n4200pro --user=sys --ssh=ssh --destdir=/raid/data/tmp/samba-waf' \ > --hostcc=/usr/bin/gcc \ > --host i686-nptl-linux-gnu \ > --target i686-nptl-linux-gnu \ > --prefix=/raid/data/module/SambaUpdate/sys \ > --libdir=/raid/data/module/SambaUpdate/sys/lib \ > --localstatedir=/raid/data/module/SambaUpdate/sys/var \ > --sharedstatedir=/raid/data/module/SambaUpdate/sys/var/lib \ > --with-configdir=/raid/data/module/SambaUpdate/sys/etc \ > --with-static-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 > \ > --bundled-libraries=ALL \ > --download \ > --enable-gnutls \ > --enable-cups \ > --enable-iprint \ > --with-pam \ > --with-quotas \ > --with-sendfile-support \ > --with-utmp \ > --enable-pthreadpool \ > --enable-avahi \ > --with-iconv \ > --with-acl-support \ > --with-dnsupdate \ > --with-syslog \ > --with-automount \ > --with-profiling-data \ > --without-libarchive \ > --without-regedit \ > --without-fake-kaserver \ > --without-cluster-support \ > --disable-glusterfs \ > --disable-cephfs \ > --disable-spotlight \ > --without-systemd \ > --without-ldap \ > --without-lttng \ > --without-ads \ > --without-winbind \ > --without-ad-dc \ > --without-ntvfs-fileserver \ > --enable-gccdeps > > (...) > > VFS_STATIC: vfs_default,vfs_posixacl > VFS_SHARED: > vfs_recycle,vfs_audit,vfs_extd_audit,vfs_full_audit,vfs_netatalk,vfs_fake_perms,vfs_default_quota,vfs_readonly,vfs_cap,vfs_expand_msdfs,vfs_shadow_copy,vfs_shadow_copy2,vfs_readahead,vfs_xattr_tdb,vfs_posix_eadb,vfs_streams_xattr,vfs_streams_depot,vfs_acl_xattr,vfs_acl_tdb,vfs_preopen,vfs_catia,vfs_media_harmony,vfs_unityed_media,vfs_fruit,vfs_shell_snap,vfs_commit,vfs_worm,vfs_crossrename,vfs_linux_xfs_sgid,vfs_time_audit,vfs_offline,vfs_syncops,vfs_dirsort,vfs_fileid,vfs_aio_fork,vfs_aio_pthread,vfs_btrfs > PDB_STATIC: pdb_smbpasswd,pdb_tdbsam,pdb_wbc_sam,pdb_ldapsam > PDB_SHARED: > AUTH_STATIC: > auth_domain,auth_builtin,auth_sam,auth_winbind,auth_unix,auth_wbc,auth_server,auth_netlogond > AUTH_SHARED: auth_script > NSS_INFO_STATIC: nss_info_template > NSS_INFO_SHARED: > CHARSET_STATIC: > CHARSET_SHARED: > IDMAP_STATIC: idmap_tdb,idmap_passdb,idmap_nss,idmap_ldap > IDMAP_SHARED: idmap_autorid,idmap_rid,idmap_hash,idmap_tdb2,idmap_script > GPEXT_STATIC: > GPEXT_SHARED: > PERFCOUNT_STATIC: > PERFCOUNT_SHARED: > RPC_STATIC: > 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 > RPC_SHARED: > > (...) > > [ 248/3390] Compiling IDL librpc/idl/auth.idl > /home/andreas/Thecus/SambaUpdate/samba-4.6.4/librpc/idl/auth.idl:115: > warning: helper() is pidl-specific and deprecated. Use `include' instead > /home/andreas/Thecus/SambaUpdate/samba-4.6.4/librpc/idl/auth.idl:107: > error: Unable to determine origin of type `struct cli_credentials' > /home/andreas/Thecus/SambaUpdate/samba-4.6.4/librpc/idl/auth.idl:107: > error: Unable to determine origin of type `struct cli_credentials' > > (...) > > [ 328/3390] Compiling IDL librpc/idl/winbind.idl > /home/andreas/Thecus/SambaUpdate/samba-4.6.4/librpc/idl/winbind.idl:182: > warning: [out] argument `validation' not a pointer > /home/andreas/Thecus/SambaUpdate/samba-4.6.4/librpc/idl/winbind.idl:184: > warning: [out] argument `authoritative' not a pointer > /home/andreas/Thecus/SambaUpdate/samba-4.6.4/librpc/idl/winbind.idl:182: > error: winbind_SamLogon: [out] argument 'validation' is not a pointer > or array, skip client functions > [ 329/3390] Compiling IDL source4/librpc/idl/irpc.idl > /home/andreas/Thecus/SambaUpdate/samba-4.6.4/source4/librpc/idl/irpc.idl:28: > warning: subcontext() is deprecated. Use represent_as() or > transmit_as() instead > /home/andreas/Thecus/SambaUpdate/samba-4.6.4/source4/librpc/idl/irpc.idl:70: > warning: [out] argument `info' not a pointer > /home/andreas/Thecus/SambaUpdate/samba-4.6.4/source4/librpc/idl/irpc.idl:83: > warning: top-level [out] pointer `dcname' is not a [ref] pointer > /home/andreas/Thecus/SambaUpdate/samba-4.6.4/source4/librpc/idl/irpc.idl:91: > warning: [out] argument `num_addrs' not a pointer > /home/andreas/Thecus/SambaUpdate/samba-4.6.4/source4/librpc/idl/irpc.idl:113: > warning: [out] argument `generic_reply' not a pointer > /home/andreas/Thecus/SambaUpdate/samba-4.6.4/source4/librpc/idl/irpc.idl:159: > warning: [out] argument `info' not a pointer > /home/andreas/Thecus/SambaUpdate/samba-4.6.4/source4/librpc/idl/irpc.idl:70: > error: nbtd_information: [out] argument 'info' is not a pointer or > array, skip client functions > /home/andreas/Thecus/SambaUpdate/samba-4.6.4/source4/librpc/idl/irpc.idl:83: > error: nbtd_getdcname: [out] argument 'dcname' is a pointer to type > 'string', skip client functions > /home/andreas/Thecus/SambaUpdate/samba-4.6.4/source4/librpc/idl/irpc.idl:91: > error: nbtd_proxy_wins_challenge: [out] argument 'num_addrs' is not a > pointer or array, skip client functions > /home/andreas/Thecus/SambaUpdate/samba-4.6.4/source4/librpc/idl/irpc.idl:113: > error: kdc_check_generic_kerberos: [out] argument 'generic_reply' is > not a pointer or array, skip client functions > /home/andreas/Thecus/SambaUpdate/samba-4.6.4/source4/librpc/idl/irpc.idl:159: > error: smbsrv_information: [out] argument 'info' is not a pointer or > array, skip client functions > > (...) > > [2569/3390] Compiling source3/rpc_server/rpc_service_setup.c > In file included from ../source4/heimdal_build/config.h:9:0, > from ../lib/tevent/../replace/replace.h:32, > from ../source3/include/includes.h:23, > from ../source3/rpc_server/rpc_service_setup.c:22: > default/include/config.h:962:41: error: conflicting types for > 'rpc_lsarpc_init' > #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); > ^ > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of > macro 'static_decl_rpc' > static_decl_rpc; > ^ > In file included from ../source3/rpc_server/rpc_service_setup.c:34:0: > default/source3/../librpc/gen_ndr/srv_lsa.h:88:10: note: previous > declaration of 'rpc_lsarpc_init' was here > NTSTATUS rpc_lsarpc_init(const struct rpc_srv_callbacks *rpc_srv_cb); > ^ > In file included from ../source4/heimdal_build/config.h:9:0, > from ../lib/tevent/../replace/replace.h:32, > from ../source3/include/includes.h:23, > from ../source3/rpc_server/rpc_service_setup.c:22: > default/include/config.h:962:80: error: conflicting types for > 'rpc_winreg_init' > #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); > ^ > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of > macro 'static_decl_rpc' > static_decl_rpc; > ^ > In file included from ../source3/rpc_server/rpc_service_setup.c:28:0: > default/source3/../librpc/gen_ndr/srv_winreg.h:42:10: note: previous > declaration of 'rpc_winreg_init' was here > NTSTATUS rpc_winreg_init(const struct rpc_srv_callbacks *rpc_srv_cb); > ^ > In file included from ../source4/heimdal_build/config.h:9:0, > from ../lib/tevent/../replace/replace.h:32, > from ../source3/include/includes.h:23, > from ../source3/rpc_server/rpc_service_setup.c:22: > default/include/config.h:962:119: error: conflicting types for > 'rpc_initshutdown_init' > #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); > ^ > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of > macro 'static_decl_rpc' > static_decl_rpc; > ^ > In file included from ../source3/rpc_server/rpc_service_setup.c:33:0: > default/source3/../librpc/gen_ndr/srv_initshutdown.h:9:10: note: > previous declaration of 'rpc_initshutdown_init' was here > NTSTATUS rpc_initshutdown_init(const struct rpc_srv_callbacks > *rpc_srv_cb); > ^ > In file included from ../source4/heimdal_build/config.h:9:0, > from ../lib/tevent/../replace/replace.h:32, > from ../source3/include/includes.h:23, > from ../source3/rpc_server/rpc_service_setup.c:22: > default/include/config.h:962:164: error: conflicting types for > 'rpc_dssetup_init' > #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); > ^ > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of > macro 'static_decl_rpc' > static_decl_rpc; > ^ > In file included from ../source3/rpc_server/rpc_service_setup.c:30:0: > default/source3/../librpc/gen_ndr/srv_dssetup.h:17:10: note: previous > declaration of 'rpc_dssetup_init' was here > NTSTATUS rpc_dssetup_init(const struct rpc_srv_callbacks *rpc_srv_cb); > ^ > In file included from ../source4/heimdal_build/config.h:9:0, > from ../lib/tevent/../replace/replace.h:32, > from ../source3/include/includes.h:23, > from ../source3/rpc_server/rpc_service_setup.c:22: > default/include/config.h:962:204: error: conflicting types for > 'rpc_wkssvc_init' > #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); > ^ > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of > macro 'static_decl_rpc' > static_decl_rpc; > ^ > In file included from ../source3/rpc_server/rpc_service_setup.c:40:0: > default/source3/../librpc/gen_ndr/srv_wkssvc.h:37:10: note: previous > declaration of 'rpc_wkssvc_init' was here > NTSTATUS rpc_wkssvc_init(const struct rpc_srv_callbacks *rpc_srv_cb); > ^ > In file included from ../source4/heimdal_build/config.h:9:0, > from ../lib/tevent/../replace/replace.h:32, > from ../source3/include/includes.h:23, > from ../source3/rpc_server/rpc_service_setup.c:22: > default/include/config.h:962:243: error: conflicting types for > 'rpc_svcctl_init' > #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); > ^ > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of > macro 'static_decl_rpc' > static_decl_rpc; > ^ > In file included from ../source3/rpc_server/rpc_service_setup.c:39:0: > default/source3/../librpc/gen_ndr/srv_svcctl.h:50:10: note: previous > declaration of 'rpc_svcctl_init' was here > NTSTATUS rpc_svcctl_init(const struct rpc_srv_callbacks *rpc_srv_cb); > ^ > In file included from ../source4/heimdal_build/config.h:9:0, > from ../lib/tevent/../replace/replace.h:32, > from ../source3/include/includes.h:23, > from ../source3/rpc_server/rpc_service_setup.c:22: > default/include/config.h:962:282: error: conflicting types for > 'rpc_ntsvcs_init' > #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); > ^ > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of > macro 'static_decl_rpc' > static_decl_rpc; > ^ > In file included from ../source3/rpc_server/rpc_service_setup.c:36:0: > default/source3/../librpc/gen_ndr/srv_ntsvcs.h:71:10: note: previous > declaration of 'rpc_ntsvcs_init' was here > NTSTATUS rpc_ntsvcs_init(const struct rpc_srv_callbacks *rpc_srv_cb); > ^ > In file included from ../source4/heimdal_build/config.h:9:0, > from ../lib/tevent/../replace/replace.h:32, > from ../source3/include/includes.h:23, > from ../source3/rpc_server/rpc_service_setup.c:22: > default/include/config.h:962:321: error: conflicting types for > 'rpc_netlogon_init' > #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); > ^ > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of > macro 'static_decl_rpc' > static_decl_rpc; > ^ > In file included from ../source3/rpc_server/rpc_service_setup.c:35:0: > default/source3/../librpc/gen_ndr/srv_netlogon.h:55:10: note: previous > declaration of 'rpc_netlogon_init' was here > NTSTATUS rpc_netlogon_init(const struct rpc_srv_callbacks *rpc_srv_cb); > ^ > In file included from ../source4/heimdal_build/config.h:9:0, > from ../lib/tevent/../replace/replace.h:32, > from ../source3/include/includes.h:23, > from ../source3/rpc_server/rpc_service_setup.c:22: > default/include/config.h:962:362: error: conflicting types for > 'rpc_netdfs_init' > #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); > ^ > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of > macro 'static_decl_rpc' > static_decl_rpc; > ^ > In file included from ../source3/rpc_server/rpc_service_setup.c:29:0: > default/source3/../librpc/gen_ndr/srv_dfs.h:29:10: note: previous > declaration of 'rpc_netdfs_init' was here > NTSTATUS rpc_netdfs_init(const struct rpc_srv_callbacks *rpc_srv_cb); > ^ > In file included from ../source4/heimdal_build/config.h:9:0, > from ../lib/tevent/../replace/replace.h:32, > from ../source3/include/includes.h:23, > from ../source3/rpc_server/rpc_service_setup.c:22: > default/include/config.h:962:401: error: conflicting types for > 'rpc_srvsvc_init' > #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); > ^ > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of > macro 'static_decl_rpc' > static_decl_rpc; > ^ > In file included from ../source3/rpc_server/rpc_service_setup.c:27:0: > default/source3/../librpc/gen_ndr/srv_srvsvc.h:60:10: note: previous > declaration of 'rpc_srvsvc_init' was here > NTSTATUS rpc_srvsvc_init(const struct rpc_srv_callbacks *rpc_srv_cb); > ^ > In file included from ../source4/heimdal_build/config.h:9:0, > from ../lib/tevent/../replace/replace.h:32, > from ../source3/include/includes.h:23, > from ../source3/rpc_server/rpc_service_setup.c:22: > default/include/config.h:962:440: error: conflicting types for > 'rpc_spoolss_init' > #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); > ^ > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of > macro 'static_decl_rpc' > static_decl_rpc; > ^ > In file included from ../source3/rpc_server/rpc_service_setup.c:38:0: > default/source3/../librpc/gen_ndr/srv_spoolss.h:123:10: note: previous > declaration of 'rpc_spoolss_init' was here > NTSTATUS rpc_spoolss_init(const struct rpc_srv_callbacks *rpc_srv_cb); > ^ > In file included from ../source4/heimdal_build/config.h:9:0, > from ../lib/tevent/../replace/replace.h:32, > from ../source3/include/includes.h:23, > from ../source3/rpc_server/rpc_service_setup.c:22: > default/include/config.h:962:480: error: conflicting types for > 'rpc_eventlog_init' > #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); > ^ > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of > macro 'static_decl_rpc' > static_decl_rpc; > ^ > In file included from ../source3/rpc_server/rpc_service_setup.c:32:0: > default/source3/../librpc/gen_ndr/srv_eventlog.h:31:10: note: previous > declaration of 'rpc_eventlog_init' was here > NTSTATUS rpc_eventlog_init(const struct rpc_srv_callbacks *rpc_srv_cb); > ^ > In file included from ../source4/heimdal_build/config.h:9:0, > from ../lib/tevent/../replace/replace.h:32, > from ../source3/include/includes.h:23, > from ../source3/rpc_server/rpc_service_setup.c:22: > default/include/config.h:962:521: error: conflicting types for > 'rpc_samr_init' > #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); > ^ > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of > macro 'static_decl_rpc' > static_decl_rpc; > ^ > In file included from ../source3/rpc_server/rpc_service_setup.c:37:0: > default/source3/../librpc/gen_ndr/srv_samr.h:74:10: note: previous > declaration of 'rpc_samr_init' was here > NTSTATUS rpc_samr_init(const struct rpc_srv_callbacks *rpc_srv_cb); > ^ > ../source3/rpc_server/rpc_service_setup.c: In function 'rpc_setup_winreg': > ../source3/rpc_server/rpc_service_setup.c:110:11: error: too many > arguments to function 'rpc_winreg_init' > status = rpc_winreg_init(NULL); > ^ > In file included from ../source4/heimdal_build/config.h:9:0, > from ../lib/tevent/../replace/replace.h:32, > from ../source3/include/includes.h:23, > from ../source3/rpc_server/rpc_service_setup.c:22: > default/include/config.h:962:80: note: declared here > #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); > ^ > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of > macro 'static_decl_rpc' > static_decl_rpc; > ^ > ../source3/rpc_server/rpc_service_setup.c: In function 'rpc_setup_srvsvc': > ../source3/rpc_server/rpc_service_setup.c:129:11: error: too many > arguments to function 'rpc_srvsvc_init' > status = rpc_srvsvc_init(NULL); > ^ > In file included from ../source4/heimdal_build/config.h:9:0, > from ../lib/tevent/../replace/replace.h:32, > from ../source3/include/includes.h:23, > from ../source3/rpc_server/rpc_service_setup.c:22: > default/include/config.h:962:401: note: declared here > #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); > ^ > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of > macro 'static_decl_rpc' > static_decl_rpc; > ^ > ../source3/rpc_server/rpc_service_setup.c: In function 'rpc_setup_lsarpc': > ../source3/rpc_server/rpc_service_setup.c:149:11: error: too many > arguments to function 'rpc_lsarpc_init' > status = rpc_lsarpc_init(NULL); > ^ > In file included from ../source4/heimdal_build/config.h:9:0, > from ../lib/tevent/../replace/replace.h:32, > from ../source3/include/includes.h:23, > from ../source3/rpc_server/rpc_service_setup.c:22: > default/include/config.h:962:41: note: declared here > #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); > ^ > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of > macro 'static_decl_rpc' > static_decl_rpc; > ^ > ../source3/rpc_server/rpc_service_setup.c: In function 'rpc_setup_samr': > ../source3/rpc_server/rpc_service_setup.c:169:11: error: too many > arguments to function 'rpc_samr_init' > status = rpc_samr_init(NULL); > ^ > In file included from ../source4/heimdal_build/config.h:9:0, > from ../lib/tevent/../replace/replace.h:32, > from ../source3/include/includes.h:23, > from ../source3/rpc_server/rpc_service_setup.c:22: > default/include/config.h:962:521: note: declared here > #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); > ^ > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of > macro 'static_decl_rpc' > static_decl_rpc; > ^ > ../source3/rpc_server/rpc_service_setup.c: In function > 'rpc_setup_netlogon': > ../source3/rpc_server/rpc_service_setup.c:189:11: error: too many > arguments to function 'rpc_netlogon_init' > status = rpc_netlogon_init(NULL); > ^ > In file included from ../source4/heimdal_build/config.h:9:0, > from ../lib/tevent/../replace/replace.h:32, > from ../source3/include/includes.h:23, > from ../source3/rpc_server/rpc_service_setup.c:22: > default/include/config.h:962:321: note: declared here > #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); > ^ > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of > macro 'static_decl_rpc' > static_decl_rpc; > ^ > ../source3/rpc_server/rpc_service_setup.c: In function 'rpc_setup_netdfs': > ../source3/rpc_server/rpc_service_setup.c:208:11: error: too many > arguments to function 'rpc_netdfs_init' > status = rpc_netdfs_init(NULL); > ^ > In file included from ../source4/heimdal_build/config.h:9:0, > from ../lib/tevent/../replace/replace.h:32, > from ../source3/include/includes.h:23, > from ../source3/rpc_server/rpc_service_setup.c:22: > default/include/config.h:962:362: note: declared here > #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); > ^ > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of > macro 'static_decl_rpc' > static_decl_rpc; > ^ > ../source3/rpc_server/rpc_service_setup.c: In function > 'rpc_setup_dssetup': > ../source3/rpc_server/rpc_service_setup.c:248:11: error: too many > arguments to function 'rpc_dssetup_init' > status = rpc_dssetup_init(NULL); > ^ > In file included from ../source4/heimdal_build/config.h:9:0, > from ../lib/tevent/../replace/replace.h:32, > from ../source3/include/includes.h:23, > from ../source3/rpc_server/rpc_service_setup.c:22: > default/include/config.h:962:164: note: declared here > #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); > ^ > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of > macro 'static_decl_rpc' > static_decl_rpc; > ^ > ../source3/rpc_server/rpc_service_setup.c: In function 'rpc_setup_wkssvc': > ../source3/rpc_server/rpc_service_setup.c:267:11: error: too many > arguments to function 'rpc_wkssvc_init' > status = rpc_wkssvc_init(NULL); > ^ > In file included from ../source4/heimdal_build/config.h:9:0, > from ../lib/tevent/../replace/replace.h:32, > from ../source3/include/includes.h:23, > from ../source3/rpc_server/rpc_service_setup.c:22: > default/include/config.h:962:204: note: declared here > #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); > ^ > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of > macro 'static_decl_rpc' > static_decl_rpc; > ^ > ../source3/rpc_server/rpc_service_setup.c: In function > 'rpc_setup_spoolss': > ../source3/rpc_server/rpc_service_setup.c:320:11: error: too many > arguments to function 'rpc_spoolss_init' > status = rpc_spoolss_init(&spoolss_cb); > ^ > In file included from ../source4/heimdal_build/config.h:9:0, > from ../lib/tevent/../replace/replace.h:32, > from ../source3/include/includes.h:23, > from ../source3/rpc_server/rpc_service_setup.c:22: > default/include/config.h:962:440: note: declared here > #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); > ^ > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of > macro 'static_decl_rpc' > static_decl_rpc; > ^ > ../source3/rpc_server/rpc_service_setup.c: In function 'rpc_setup_svcctl': > ../source3/rpc_server/rpc_service_setup.c:368:11: error: too many > arguments to function 'rpc_svcctl_init' > status = rpc_svcctl_init(&svcctl_cb); > ^ > In file included from ../source4/heimdal_build/config.h:9:0, > from ../lib/tevent/../replace/replace.h:32, > from ../source3/include/includes.h:23, > from ../source3/rpc_server/rpc_service_setup.c:22: > default/include/config.h:962:243: note: declared here > #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); > ^ > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of > macro 'static_decl_rpc' > static_decl_rpc; > ^ > ../source3/rpc_server/rpc_service_setup.c: In function 'rpc_setup_ntsvcs': > ../source3/rpc_server/rpc_service_setup.c:386:11: error: too many > arguments to function 'rpc_ntsvcs_init' > status = rpc_ntsvcs_init(NULL); > ^ > In file included from ../source4/heimdal_build/config.h:9:0, > from ../lib/tevent/../replace/replace.h:32, > from ../source3/include/includes.h:23, > from ../source3/rpc_server/rpc_service_setup.c:22: > default/include/config.h:962:282: note: declared here > #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); > ^ > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of > macro 'static_decl_rpc' > static_decl_rpc; > ^ > ../source3/rpc_server/rpc_service_setup.c: In function > 'rpc_setup_eventlog': > ../source3/rpc_server/rpc_service_setup.c:423:11: error: too many > arguments to function 'rpc_eventlog_init' > status = rpc_eventlog_init(&eventlog_cb); > ^ > In file included from ../source4/heimdal_build/config.h:9:0, > from ../lib/tevent/../replace/replace.h:32, > from ../source3/include/includes.h:23, > from ../source3/rpc_server/rpc_service_setup.c:22: > default/include/config.h:962:480: note: declared here > #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); > ^ > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of > macro 'static_decl_rpc' > static_decl_rpc; > ^ > ../source3/rpc_server/rpc_service_setup.c: In function > 'rpc_setup_initshutdown': > ../source3/rpc_server/rpc_service_setup.c:441:11: error: too many > arguments to function 'rpc_initshutdown_init' > status = rpc_initshutdown_init(NULL); > ^ > In file included from ../source4/heimdal_build/config.h:9:0, > from ../lib/tevent/../replace/replace.h:32, > from ../source3/include/includes.h:23, > from ../source3/rpc_server/rpc_service_setup.c:22: > default/include/config.h:962:119: note: declared here > #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); extern > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > rpc_initshutdown_init(void); extern NTSTATUS rpc_dssetup_init(void); > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern NTSTATUS rpc_ntsvcs_init(void); extern > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void); extern > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); > ^ > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in expansion of > macro 'static_decl_rpc' > static_decl_rpc; > ^ > Waf: Leaving directory `/home/andreas/Thecus/SambaUpdate/samba-4.6.4/bin' > Build failed: -> task failed (err #1): > {task: cc rpc_service_setup.c -> rpc_service_setup_29.o} > Makefile:8: recipe for target 'all' failed > make: *** [all] Error 1 >
Andrew Bartlett
2017-Jun-08 09:05 UTC
[Samba] 2nd try: Lots of RPC-related compile errors (conflicting types, too many arguments, ...) trying to update Samba from 3.5 to 4.6
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, > AndreasI 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
L.P.H. van Belle
2017-Jun-08 09:33 UTC
[Samba] 2nd try: Lots of RPC-related compile errors (conflicting types, too many arguments, ...) trying to update Samba from 3.5 to 4.6
Hai, Your build dependecies are probely not correct for samba 4.6.x on the nas. Thats my best guess. You need to build these in this order and install or make the just builded packages available to install. I dont know your NAS so thats up to you. PACKAGE_ORDER1=talloc PACKAGE_ORDER2=tevent PACKAGE_ORDER3=tdb PACKAGE_ORDER4=ldb PACKAGE_ORDER5=cmocka PACKAGE_ORDER6=nss-wrapper PACKAGE_ORDER7=resolv-wrapper PACKAGE_ORDER8=uid-wrapper PACKAGE_ORDER9=socket-wrapper PACKAGE_ORDER10=samba You could install debian on you nas : http://jamie.lentin.co.uk/devices/dlink-dns325/ But on topic again. Extract the samba source and check the minimal versions you need have. Like : rgrep "\--minimum-library-version" /samba-4.6.5-source/* And cheack what you have. Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens awl1 > via samba > Verzonden: donderdag 8 juni 2017 10:10 > Aan: samba at lists.samba.org > Onderwerp: [Samba] 2nd try: Lots of RPC-related compile > errors (conflicting types, too many arguments, ...) trying to > update Samba from 3.5 to 4.6 > > 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 > > > > Am 05.06.2017 um 12:57 schrieb awl1: > > Hello Samba experts, > > > > due to the "SambaCry" issue (CVE-2017-7494), I am trying to > update the > > Samba server installation on my Thecus NAS (dating back to > 2011) from > > version 3.5.16 to the current 4.6.4. > > > > So far, I have successfully > > > > * created a cross-compiling toolchain for the NAS > > (i686-nptl-linux-gnu) based on gcc-5.2 > > * compiled Python and Samba library dependencies for my target > > configuration > > * configured the Samba build for cross-compile, using > > "--cross-execute" with your script "run_on_target.py", a local > > Python install for i686-nptl-linux-gnu on my build > machine and the > > exact same module configuration (static vs. shared) as retrieved > > from "smbd -b" output of the old 3.5.16 > > > > Builtin 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 > > > > but I am still unable to compile Samba with this setup due > to an awful > > lot of compile errors from RPC modules. > > > > Unfortunately, it seems that cross-compiling Samba 4.x still is a > > rather frustrating experience with the build system having changed > > from autoconf to waf... > > > > Please find below the relevant excerpts and the compile errors. In > > case you would like to see the full make log (670 kB) just > let me know > > where to upload it or whether it is ok to attach it to the > list mail... > > > > Am I still doing somthing terribly wrong here? To me, it > rather looks > > as if there was a major inconsistency in the Samba sources!? > > > > Many thanks in advance for your kind help with this! > > > > Best regards > > Andreas > > > > > > ==> > > > waf configure --cross-compile \ > > '--cross-execute=./buildtools/examples/run_on_target.py > > --host=n4200pro --user=sys --ssh=ssh > --destdir=/raid/data/tmp/samba-waf' \ > > --hostcc=/usr/bin/gcc \ > > --host i686-nptl-linux-gnu \ > > --target i686-nptl-linux-gnu \ > > --prefix=/raid/data/module/SambaUpdate/sys \ > > --libdir=/raid/data/module/SambaUpdate/sys/lib \ > > --localstatedir=/raid/data/module/SambaUpdate/sys/var \ > > --sharedstatedir=/raid/data/module/SambaUpdate/sys/var/lib \ > > --with-configdir=/raid/data/module/SambaUpdate/sys/etc \ > > > --with-static-modules=pdb_ldap,pdb_smbpasswd,pdb_tdbsam,pdb_wbc_sam,rp > > > c_lsarpc,rpc_winreg,rpc_initshutdown,rpc_dssetup,rpc_wkssvc,rpc_svcctl > > > ,rpc_ntsvcs,rpc_netlogon,rpc_netdfs,rpc_srvsvc,rpc_spoolss,rpc_eventlo > > > g,rpc_samr,idmap_ldap,idmap_tdb,idmap_passdb,idmap_nss,nss_info_templa > > > te,auth_sam,auth_unix,auth_winbind,auth_wbc,auth_server,auth_domain,au > > th_builtin,auth_netlogond,vfs_default,vfs_posixacl > > \ > > --bundled-libraries=ALL \ > > --download \ > > --enable-gnutls \ > > --enable-cups \ > > --enable-iprint \ > > --with-pam \ > > --with-quotas \ > > --with-sendfile-support \ > > --with-utmp \ > > --enable-pthreadpool \ > > --enable-avahi \ > > --with-iconv \ > > --with-acl-support \ > > --with-dnsupdate \ > > --with-syslog \ > > --with-automount \ > > --with-profiling-data \ > > --without-libarchive \ > > --without-regedit \ > > --without-fake-kaserver \ > > --without-cluster-support \ > > --disable-glusterfs \ > > --disable-cephfs \ > > --disable-spotlight \ > > --without-systemd \ > > --without-ldap \ > > --without-lttng \ > > --without-ads \ > > --without-winbind \ > > --without-ad-dc \ > > --without-ntvfs-fileserver \ > > --enable-gccdeps > > > > (...) > > > > VFS_STATIC: vfs_default,vfs_posixacl > > VFS_SHARED: > > > vfs_recycle,vfs_audit,vfs_extd_audit,vfs_full_audit,vfs_netatalk,vfs_f > > > ake_perms,vfs_default_quota,vfs_readonly,vfs_cap,vfs_expand_msdfs,vfs_ > > > shadow_copy,vfs_shadow_copy2,vfs_readahead,vfs_xattr_tdb,vfs_posix_ead > > > b,vfs_streams_xattr,vfs_streams_depot,vfs_acl_xattr,vfs_acl_tdb,vfs_pr > > > eopen,vfs_catia,vfs_media_harmony,vfs_unityed_media,vfs_fruit,vfs_shel > > > l_snap,vfs_commit,vfs_worm,vfs_crossrename,vfs_linux_xfs_sgid,vfs_time > > > _audit,vfs_offline,vfs_syncops,vfs_dirsort,vfs_fileid,vfs_aio_fork,vfs > > _aio_pthread,vfs_btrfs > > PDB_STATIC: pdb_smbpasswd,pdb_tdbsam,pdb_wbc_sam,pdb_ldapsam > > PDB_SHARED: > > AUTH_STATIC: > > > auth_domain,auth_builtin,auth_sam,auth_winbind,auth_unix,auth_wbc,auth > > _server,auth_netlogond > > AUTH_SHARED: auth_script > > NSS_INFO_STATIC: nss_info_template > > NSS_INFO_SHARED: > > CHARSET_STATIC: > > CHARSET_SHARED: > > IDMAP_STATIC: idmap_tdb,idmap_passdb,idmap_nss,idmap_ldap > > IDMAP_SHARED: > > idmap_autorid,idmap_rid,idmap_hash,idmap_tdb2,idmap_script > > GPEXT_STATIC: > > GPEXT_SHARED: > > PERFCOUNT_STATIC: > > PERFCOUNT_SHARED: > > RPC_STATIC: > > > rpc_lsarpc,rpc_winreg,rpc_initshutdown,rpc_dssetup,rpc_wkssvc,rpc_svcc > > > tl,rpc_ntsvcs,rpc_netlogon,rpc_netdfs,rpc_srvsvc,rpc_spoolss,rpc_event > > log,rpc_samr > > RPC_SHARED: > > > > (...) > > > > [ 248/3390] Compiling IDL librpc/idl/auth.idl > > > /home/andreas/Thecus/SambaUpdate/samba-4.6.4/librpc/idl/auth.idl:115: > > warning: helper() is pidl-specific and deprecated. Use `include' > > instead > > > /home/andreas/Thecus/SambaUpdate/samba-4.6.4/librpc/idl/auth.idl:107: > > error: Unable to determine origin of type `struct cli_credentials' > > > /home/andreas/Thecus/SambaUpdate/samba-4.6.4/librpc/idl/auth.idl:107: > > error: Unable to determine origin of type `struct cli_credentials' > > > > (...) > > > > [ 328/3390] Compiling IDL librpc/idl/winbind.idl > > > /home/andreas/Thecus/SambaUpdate/samba-4.6.4/librpc/idl/winbin > d.idl:182: > > warning: [out] argument `validation' not a pointer > > > /home/andreas/Thecus/SambaUpdate/samba-4.6.4/librpc/idl/winbin > d.idl:184: > > warning: [out] argument `authoritative' not a pointer > > > /home/andreas/Thecus/SambaUpdate/samba-4.6.4/librpc/idl/winbin > d.idl:182: > > error: winbind_SamLogon: [out] argument 'validation' is not > a pointer > > or array, skip client functions [ 329/3390] Compiling IDL > > source4/librpc/idl/irpc.idl > > > /home/andreas/Thecus/SambaUpdate/samba-4.6.4/source4/librpc/id > l/irpc.idl:28: > > warning: subcontext() is deprecated. Use represent_as() or > > transmit_as() instead > > > /home/andreas/Thecus/SambaUpdate/samba-4.6.4/source4/librpc/id > l/irpc.idl:70: > > warning: [out] argument `info' not a pointer > > > /home/andreas/Thecus/SambaUpdate/samba-4.6.4/source4/librpc/id > l/irpc.idl:83: > > warning: top-level [out] pointer `dcname' is not a [ref] pointer > > > /home/andreas/Thecus/SambaUpdate/samba-4.6.4/source4/librpc/id > l/irpc.idl:91: > > warning: [out] argument `num_addrs' not a pointer > > > /home/andreas/Thecus/SambaUpdate/samba-4.6.4/source4/librpc/id > l/irpc.idl:113: > > warning: [out] argument `generic_reply' not a pointer > > > /home/andreas/Thecus/SambaUpdate/samba-4.6.4/source4/librpc/id > l/irpc.idl:159: > > warning: [out] argument `info' not a pointer > > > /home/andreas/Thecus/SambaUpdate/samba-4.6.4/source4/librpc/id > l/irpc.idl:70: > > error: nbtd_information: [out] argument 'info' is not a pointer or > > array, skip client functions > > > /home/andreas/Thecus/SambaUpdate/samba-4.6.4/source4/librpc/id > l/irpc.idl:83: > > error: nbtd_getdcname: [out] argument 'dcname' is a pointer to type > > 'string', skip client functions > > > /home/andreas/Thecus/SambaUpdate/samba-4.6.4/source4/librpc/id > l/irpc.idl:91: > > error: nbtd_proxy_wins_challenge: [out] argument > 'num_addrs' is not a > > pointer or array, skip client functions > > > /home/andreas/Thecus/SambaUpdate/samba-4.6.4/source4/librpc/id > l/irpc.idl:113: > > error: kdc_check_generic_kerberos: [out] argument > 'generic_reply' is > > not a pointer or array, skip client functions > > > /home/andreas/Thecus/SambaUpdate/samba-4.6.4/source4/librpc/id > l/irpc.idl:159: > > error: smbsrv_information: [out] argument 'info' is not a > pointer or > > array, skip client functions > > > > (...) > > > > [2569/3390] Compiling source3/rpc_server/rpc_service_setup.c > > In file included from ../source4/heimdal_build/config.h:9:0, > > from ../lib/tevent/../replace/replace.h:32, > > from ../source3/include/includes.h:23, > > from ../source3/rpc_server/rpc_service_setup.c:22: > > default/include/config.h:962:41: error: conflicting types for > > 'rpc_lsarpc_init' > > #define static_decl_rpc extern NTSTATUS > rpc_lsarpc_init(void); extern > > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > > rpc_initshutdown_init(void); extern NTSTATUS > rpc_dssetup_init(void); > > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > > rpc_svcctl_init(void); extern NTSTATUS > rpc_ntsvcs_init(void); extern > > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > > rpc_netdfs_init(void); extern NTSTATUS > rpc_srvsvc_init(void); extern > > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); > > ^ > > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in > expansion of > > macro 'static_decl_rpc' > > static_decl_rpc; > > ^ > > In file included from > ../source3/rpc_server/rpc_service_setup.c:34:0: > > default/source3/../librpc/gen_ndr/srv_lsa.h:88:10: note: previous > > declaration of 'rpc_lsarpc_init' was here NTSTATUS > > rpc_lsarpc_init(const struct rpc_srv_callbacks *rpc_srv_cb); > > ^ > > In file included from ../source4/heimdal_build/config.h:9:0, > > from ../lib/tevent/../replace/replace.h:32, > > from ../source3/include/includes.h:23, > > from ../source3/rpc_server/rpc_service_setup.c:22: > > default/include/config.h:962:80: error: conflicting types for > > 'rpc_winreg_init' > > #define static_decl_rpc extern NTSTATUS > rpc_lsarpc_init(void); extern > > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > > rpc_initshutdown_init(void); extern NTSTATUS > rpc_dssetup_init(void); > > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > > rpc_svcctl_init(void); extern NTSTATUS > rpc_ntsvcs_init(void); extern > > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > > rpc_netdfs_init(void); extern NTSTATUS > rpc_srvsvc_init(void); extern > > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ > > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in > expansion of > > macro 'static_decl_rpc' > > static_decl_rpc; > > ^ > > In file included from > ../source3/rpc_server/rpc_service_setup.c:28:0: > > default/source3/../librpc/gen_ndr/srv_winreg.h:42:10: note: > previous > > declaration of 'rpc_winreg_init' was here NTSTATUS > > rpc_winreg_init(const struct rpc_srv_callbacks *rpc_srv_cb); > > ^ > > In file included from ../source4/heimdal_build/config.h:9:0, > > from ../lib/tevent/../replace/replace.h:32, > > from ../source3/include/includes.h:23, > > from ../source3/rpc_server/rpc_service_setup.c:22: > > default/include/config.h:962:119: error: conflicting types for > > 'rpc_initshutdown_init' > > #define static_decl_rpc extern NTSTATUS > rpc_lsarpc_init(void); extern > > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > > rpc_initshutdown_init(void); extern NTSTATUS > rpc_dssetup_init(void); > > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > > rpc_svcctl_init(void); extern NTSTATUS > rpc_ntsvcs_init(void); extern > > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > > rpc_netdfs_init(void); extern NTSTATUS > rpc_srvsvc_init(void); extern > > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ > > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in > expansion of > > macro 'static_decl_rpc' > > static_decl_rpc; > > ^ > > In file included from > ../source3/rpc_server/rpc_service_setup.c:33:0: > > default/source3/../librpc/gen_ndr/srv_initshutdown.h:9:10: note: > > previous declaration of 'rpc_initshutdown_init' was here NTSTATUS > > rpc_initshutdown_init(const struct rpc_srv_callbacks *rpc_srv_cb); > > ^ > > In file included from ../source4/heimdal_build/config.h:9:0, > > from ../lib/tevent/../replace/replace.h:32, > > from ../source3/include/includes.h:23, > > from ../source3/rpc_server/rpc_service_setup.c:22: > > default/include/config.h:962:164: error: conflicting types for > > 'rpc_dssetup_init' > > #define static_decl_rpc extern NTSTATUS > rpc_lsarpc_init(void); extern > > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > > rpc_initshutdown_init(void); extern NTSTATUS > rpc_dssetup_init(void); > > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > > rpc_svcctl_init(void); extern NTSTATUS > rpc_ntsvcs_init(void); extern > > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > > rpc_netdfs_init(void); extern NTSTATUS > rpc_srvsvc_init(void); extern > > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ > > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in > expansion of > > macro 'static_decl_rpc' > > static_decl_rpc; > > ^ > > In file included from > ../source3/rpc_server/rpc_service_setup.c:30:0: > > default/source3/../librpc/gen_ndr/srv_dssetup.h:17:10: > note: previous > > declaration of 'rpc_dssetup_init' was here NTSTATUS > > rpc_dssetup_init(const struct rpc_srv_callbacks *rpc_srv_cb); > > ^ > > In file included from ../source4/heimdal_build/config.h:9:0, > > from ../lib/tevent/../replace/replace.h:32, > > from ../source3/include/includes.h:23, > > from ../source3/rpc_server/rpc_service_setup.c:22: > > default/include/config.h:962:204: error: conflicting types for > > 'rpc_wkssvc_init' > > #define static_decl_rpc extern NTSTATUS > rpc_lsarpc_init(void); extern > > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > > rpc_initshutdown_init(void); extern NTSTATUS > rpc_dssetup_init(void); > > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > > rpc_svcctl_init(void); extern NTSTATUS > rpc_ntsvcs_init(void); extern > > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > > rpc_netdfs_init(void); extern NTSTATUS > rpc_srvsvc_init(void); extern > > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ > > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in > expansion of > > macro 'static_decl_rpc' > > static_decl_rpc; > > ^ > > In file included from > ../source3/rpc_server/rpc_service_setup.c:40:0: > > default/source3/../librpc/gen_ndr/srv_wkssvc.h:37:10: note: > previous > > declaration of 'rpc_wkssvc_init' was here NTSTATUS > > rpc_wkssvc_init(const struct rpc_srv_callbacks *rpc_srv_cb); > > ^ > > In file included from ../source4/heimdal_build/config.h:9:0, > > from ../lib/tevent/../replace/replace.h:32, > > from ../source3/include/includes.h:23, > > from ../source3/rpc_server/rpc_service_setup.c:22: > > default/include/config.h:962:243: error: conflicting types for > > 'rpc_svcctl_init' > > #define static_decl_rpc extern NTSTATUS > rpc_lsarpc_init(void); extern > > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > > rpc_initshutdown_init(void); extern NTSTATUS > rpc_dssetup_init(void); > > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > > rpc_svcctl_init(void); extern NTSTATUS > rpc_ntsvcs_init(void); extern > > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > > rpc_netdfs_init(void); extern NTSTATUS > rpc_srvsvc_init(void); extern > > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ > > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in > expansion of > > macro 'static_decl_rpc' > > static_decl_rpc; > > ^ > > In file included from > ../source3/rpc_server/rpc_service_setup.c:39:0: > > default/source3/../librpc/gen_ndr/srv_svcctl.h:50:10: note: > previous > > declaration of 'rpc_svcctl_init' was here NTSTATUS > > rpc_svcctl_init(const struct rpc_srv_callbacks *rpc_srv_cb); > > ^ > > In file included from ../source4/heimdal_build/config.h:9:0, > > from ../lib/tevent/../replace/replace.h:32, > > from ../source3/include/includes.h:23, > > from ../source3/rpc_server/rpc_service_setup.c:22: > > default/include/config.h:962:282: error: conflicting types for > > 'rpc_ntsvcs_init' > > #define static_decl_rpc extern NTSTATUS > rpc_lsarpc_init(void); extern > > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > > rpc_initshutdown_init(void); extern NTSTATUS > rpc_dssetup_init(void); > > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > > rpc_svcctl_init(void); extern NTSTATUS > rpc_ntsvcs_init(void); extern > > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > > rpc_netdfs_init(void); extern NTSTATUS > rpc_srvsvc_init(void); extern > > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ > > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in > expansion of > > macro 'static_decl_rpc' > > static_decl_rpc; > > ^ > > In file included from > ../source3/rpc_server/rpc_service_setup.c:36:0: > > default/source3/../librpc/gen_ndr/srv_ntsvcs.h:71:10: note: > previous > > declaration of 'rpc_ntsvcs_init' was here NTSTATUS > > rpc_ntsvcs_init(const struct rpc_srv_callbacks *rpc_srv_cb); > > ^ > > In file included from ../source4/heimdal_build/config.h:9:0, > > from ../lib/tevent/../replace/replace.h:32, > > from ../source3/include/includes.h:23, > > from ../source3/rpc_server/rpc_service_setup.c:22: > > default/include/config.h:962:321: error: conflicting types for > > 'rpc_netlogon_init' > > #define static_decl_rpc extern NTSTATUS > rpc_lsarpc_init(void); extern > > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > > rpc_initshutdown_init(void); extern NTSTATUS > rpc_dssetup_init(void); > > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > > rpc_svcctl_init(void); extern NTSTATUS > rpc_ntsvcs_init(void); extern > > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > > rpc_netdfs_init(void); extern NTSTATUS > rpc_srvsvc_init(void); extern > > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ > > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in > expansion of > > macro 'static_decl_rpc' > > static_decl_rpc; > > ^ > > In file included from > ../source3/rpc_server/rpc_service_setup.c:35:0: > > default/source3/../librpc/gen_ndr/srv_netlogon.h:55:10: > note: previous > > declaration of 'rpc_netlogon_init' was here NTSTATUS > > rpc_netlogon_init(const struct rpc_srv_callbacks *rpc_srv_cb); > > ^ > > In file included from ../source4/heimdal_build/config.h:9:0, > > from ../lib/tevent/../replace/replace.h:32, > > from ../source3/include/includes.h:23, > > from ../source3/rpc_server/rpc_service_setup.c:22: > > default/include/config.h:962:362: error: conflicting types for > > 'rpc_netdfs_init' > > #define static_decl_rpc extern NTSTATUS > rpc_lsarpc_init(void); extern > > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > > rpc_initshutdown_init(void); extern NTSTATUS > rpc_dssetup_init(void); > > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > > rpc_svcctl_init(void); extern NTSTATUS > rpc_ntsvcs_init(void); extern > > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > > rpc_netdfs_init(void); extern NTSTATUS > rpc_srvsvc_init(void); extern > > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ > > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in > expansion of > > macro 'static_decl_rpc' > > static_decl_rpc; > > ^ > > In file included from > ../source3/rpc_server/rpc_service_setup.c:29:0: > > default/source3/../librpc/gen_ndr/srv_dfs.h:29:10: note: previous > > declaration of 'rpc_netdfs_init' was here NTSTATUS > > rpc_netdfs_init(const struct rpc_srv_callbacks *rpc_srv_cb); > > ^ > > In file included from ../source4/heimdal_build/config.h:9:0, > > from ../lib/tevent/../replace/replace.h:32, > > from ../source3/include/includes.h:23, > > from ../source3/rpc_server/rpc_service_setup.c:22: > > default/include/config.h:962:401: error: conflicting types for > > 'rpc_srvsvc_init' > > #define static_decl_rpc extern NTSTATUS > rpc_lsarpc_init(void); extern > > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > > rpc_initshutdown_init(void); extern NTSTATUS > rpc_dssetup_init(void); > > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > > rpc_svcctl_init(void); extern NTSTATUS > rpc_ntsvcs_init(void); extern > > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > > rpc_netdfs_init(void); extern NTSTATUS > rpc_srvsvc_init(void); extern > > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ > > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in > expansion of > > macro 'static_decl_rpc' > > static_decl_rpc; > > ^ > > In file included from > ../source3/rpc_server/rpc_service_setup.c:27:0: > > default/source3/../librpc/gen_ndr/srv_srvsvc.h:60:10: note: > previous > > declaration of 'rpc_srvsvc_init' was here NTSTATUS > > rpc_srvsvc_init(const struct rpc_srv_callbacks *rpc_srv_cb); > > ^ > > In file included from ../source4/heimdal_build/config.h:9:0, > > from ../lib/tevent/../replace/replace.h:32, > > from ../source3/include/includes.h:23, > > from ../source3/rpc_server/rpc_service_setup.c:22: > > default/include/config.h:962:440: error: conflicting types for > > 'rpc_spoolss_init' > > #define static_decl_rpc extern NTSTATUS > rpc_lsarpc_init(void); extern > > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > > rpc_initshutdown_init(void); extern NTSTATUS > rpc_dssetup_init(void); > > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > > rpc_svcctl_init(void); extern NTSTATUS > rpc_ntsvcs_init(void); extern > > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > > rpc_netdfs_init(void); extern NTSTATUS > rpc_srvsvc_init(void); extern > > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ > > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in > expansion of > > macro 'static_decl_rpc' > > static_decl_rpc; > > ^ > > In file included from > ../source3/rpc_server/rpc_service_setup.c:38:0: > > default/source3/../librpc/gen_ndr/srv_spoolss.h:123:10: > note: previous > > declaration of 'rpc_spoolss_init' was here NTSTATUS > > rpc_spoolss_init(const struct rpc_srv_callbacks *rpc_srv_cb); > > ^ > > In file included from ../source4/heimdal_build/config.h:9:0, > > from ../lib/tevent/../replace/replace.h:32, > > from ../source3/include/includes.h:23, > > from ../source3/rpc_server/rpc_service_setup.c:22: > > default/include/config.h:962:480: error: conflicting types for > > 'rpc_eventlog_init' > > #define static_decl_rpc extern NTSTATUS > rpc_lsarpc_init(void); extern > > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > > rpc_initshutdown_init(void); extern NTSTATUS > rpc_dssetup_init(void); > > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > > rpc_svcctl_init(void); extern NTSTATUS > rpc_ntsvcs_init(void); extern > > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > > rpc_netdfs_init(void); extern NTSTATUS > rpc_srvsvc_init(void); extern > > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ > > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in > expansion of > > macro 'static_decl_rpc' > > static_decl_rpc; > > ^ > > In file included from > ../source3/rpc_server/rpc_service_setup.c:32:0: > > default/source3/../librpc/gen_ndr/srv_eventlog.h:31:10: > note: previous > > declaration of 'rpc_eventlog_init' was here NTSTATUS > > rpc_eventlog_init(const struct rpc_srv_callbacks *rpc_srv_cb); > > ^ > > In file included from ../source4/heimdal_build/config.h:9:0, > > from ../lib/tevent/../replace/replace.h:32, > > from ../source3/include/includes.h:23, > > from ../source3/rpc_server/rpc_service_setup.c:22: > > default/include/config.h:962:521: error: conflicting types for > > 'rpc_samr_init' > > #define static_decl_rpc extern NTSTATUS > rpc_lsarpc_init(void); extern > > NTSTATUS rpc_winreg_init(void); extern NTSTATUS > > rpc_initshutdown_init(void); extern NTSTATUS > rpc_dssetup_init(void); > > extern NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS > > rpc_svcctl_init(void); extern NTSTATUS > rpc_ntsvcs_init(void); extern > > NTSTATUS rpc_netlogon_init(void); extern NTSTATUS > > rpc_netdfs_init(void); extern NTSTATUS > rpc_srvsvc_init(void); extern > > NTSTATUS rpc_spoolss_init(void); extern NTSTATUS > > rpc_eventlog_init(void); extern NTSTATUS rpc_samr_init(void); ^ > > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in > expansion of > > macro 'static_decl_rpc' > > static_decl_rpc; > > ^ > > In file included from > ../source3/rpc_server/rpc_service_setup.c:37:0: > > default/source3/../librpc/gen_ndr/srv_samr.h:74:10: note: previous > > declaration of 'rpc_samr_init' was here NTSTATUS > rpc_samr_init(const > > struct rpc_srv_callbacks *rpc_srv_cb); > > ^ > > ../source3/rpc_server/rpc_service_setup.c: In function > 'rpc_setup_winreg': > > ../source3/rpc_server/rpc_service_setup.c:110:11: error: too many > > arguments to function 'rpc_winreg_init' > > status = rpc_winreg_init(NULL); > > ^ > > In file included from ../source4/heimdal_build/config.h:9:0, > > from ../lib/tevent/../replace/replace.h:32, > > from ../source3/include/includes.h:23, > > from ../source3/rpc_server/rpc_service_setup.c:22: > > default/include/config.h:962:80: note: declared here #define > > static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); > extern NTSTATUS > > rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); > > extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS > > rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern > > NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS > > rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern > > NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS > > rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); > > extern NTSTATUS rpc_samr_init(void); ^ > > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in > expansion of > > macro 'static_decl_rpc' > > static_decl_rpc; > > ^ > > ../source3/rpc_server/rpc_service_setup.c: In function > 'rpc_setup_srvsvc': > > ../source3/rpc_server/rpc_service_setup.c:129:11: error: too many > > arguments to function 'rpc_srvsvc_init' > > status = rpc_srvsvc_init(NULL); > > ^ > > In file included from ../source4/heimdal_build/config.h:9:0, > > from ../lib/tevent/../replace/replace.h:32, > > from ../source3/include/includes.h:23, > > from ../source3/rpc_server/rpc_service_setup.c:22: > > default/include/config.h:962:401: note: declared here #define > > static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); > extern NTSTATUS > > rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); > > extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS > > rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern > > NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS > > rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern > > NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS > > rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); > > extern NTSTATUS rpc_samr_init(void); ^ > > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in > expansion of > > macro 'static_decl_rpc' > > static_decl_rpc; > > ^ > > ../source3/rpc_server/rpc_service_setup.c: In function > 'rpc_setup_lsarpc': > > ../source3/rpc_server/rpc_service_setup.c:149:11: error: too many > > arguments to function 'rpc_lsarpc_init' > > status = rpc_lsarpc_init(NULL); > > ^ > > In file included from ../source4/heimdal_build/config.h:9:0, > > from ../lib/tevent/../replace/replace.h:32, > > from ../source3/include/includes.h:23, > > from ../source3/rpc_server/rpc_service_setup.c:22: > > default/include/config.h:962:41: note: declared here #define > > static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); > extern NTSTATUS > > rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); > > extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS > > rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern > > NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS > > rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern > > NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS > > rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); > > extern NTSTATUS rpc_samr_init(void); > > ^ > > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in > expansion of > > macro 'static_decl_rpc' > > static_decl_rpc; > > ^ > > ../source3/rpc_server/rpc_service_setup.c: In function > 'rpc_setup_samr': > > ../source3/rpc_server/rpc_service_setup.c:169:11: error: too many > > arguments to function 'rpc_samr_init' > > status = rpc_samr_init(NULL); > > ^ > > In file included from ../source4/heimdal_build/config.h:9:0, > > from ../lib/tevent/../replace/replace.h:32, > > from ../source3/include/includes.h:23, > > from ../source3/rpc_server/rpc_service_setup.c:22: > > default/include/config.h:962:521: note: declared here #define > > static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); > extern NTSTATUS > > rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); > > extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS > > rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern > > NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS > > rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern > > NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS > > rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); > > extern NTSTATUS rpc_samr_init(void); ^ > > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in > expansion of > > macro 'static_decl_rpc' > > static_decl_rpc; > > ^ > > ../source3/rpc_server/rpc_service_setup.c: In function > > 'rpc_setup_netlogon': > > ../source3/rpc_server/rpc_service_setup.c:189:11: error: too many > > arguments to function 'rpc_netlogon_init' > > status = rpc_netlogon_init(NULL); > > ^ > > In file included from ../source4/heimdal_build/config.h:9:0, > > from ../lib/tevent/../replace/replace.h:32, > > from ../source3/include/includes.h:23, > > from ../source3/rpc_server/rpc_service_setup.c:22: > > default/include/config.h:962:321: note: declared here #define > > static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); > extern NTSTATUS > > rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); > > extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS > > rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern > > NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS > > rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern > > NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS > > rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); > > extern NTSTATUS rpc_samr_init(void); ^ > > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in > expansion of > > macro 'static_decl_rpc' > > static_decl_rpc; > > ^ > > ../source3/rpc_server/rpc_service_setup.c: In function > 'rpc_setup_netdfs': > > ../source3/rpc_server/rpc_service_setup.c:208:11: error: too many > > arguments to function 'rpc_netdfs_init' > > status = rpc_netdfs_init(NULL); > > ^ > > In file included from ../source4/heimdal_build/config.h:9:0, > > from ../lib/tevent/../replace/replace.h:32, > > from ../source3/include/includes.h:23, > > from ../source3/rpc_server/rpc_service_setup.c:22: > > default/include/config.h:962:362: note: declared here #define > > static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); > extern NTSTATUS > > rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); > > extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS > > rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern > > NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS > > rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern > > NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS > > rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); > > extern NTSTATUS rpc_samr_init(void); ^ > > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in > expansion of > > macro 'static_decl_rpc' > > static_decl_rpc; > > ^ > > ../source3/rpc_server/rpc_service_setup.c: In function > > 'rpc_setup_dssetup': > > ../source3/rpc_server/rpc_service_setup.c:248:11: error: too many > > arguments to function 'rpc_dssetup_init' > > status = rpc_dssetup_init(NULL); > > ^ > > In file included from ../source4/heimdal_build/config.h:9:0, > > from ../lib/tevent/../replace/replace.h:32, > > from ../source3/include/includes.h:23, > > from ../source3/rpc_server/rpc_service_setup.c:22: > > default/include/config.h:962:164: note: declared here #define > > static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); > extern NTSTATUS > > rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); > > extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS > > rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern > > NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS > > rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern > > NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS > > rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); > > extern NTSTATUS rpc_samr_init(void); ^ > > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in > expansion of > > macro 'static_decl_rpc' > > static_decl_rpc; > > ^ > > ../source3/rpc_server/rpc_service_setup.c: In function > 'rpc_setup_wkssvc': > > ../source3/rpc_server/rpc_service_setup.c:267:11: error: too many > > arguments to function 'rpc_wkssvc_init' > > status = rpc_wkssvc_init(NULL); > > ^ > > In file included from ../source4/heimdal_build/config.h:9:0, > > from ../lib/tevent/../replace/replace.h:32, > > from ../source3/include/includes.h:23, > > from ../source3/rpc_server/rpc_service_setup.c:22: > > default/include/config.h:962:204: note: declared here #define > > static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); > extern NTSTATUS > > rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); > > extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS > > rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern > > NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS > > rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern > > NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS > > rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); > > extern NTSTATUS rpc_samr_init(void); ^ > > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in > expansion of > > macro 'static_decl_rpc' > > static_decl_rpc; > > ^ > > ../source3/rpc_server/rpc_service_setup.c: In function > > 'rpc_setup_spoolss': > > ../source3/rpc_server/rpc_service_setup.c:320:11: error: too many > > arguments to function 'rpc_spoolss_init' > > status = rpc_spoolss_init(&spoolss_cb); > > ^ > > In file included from ../source4/heimdal_build/config.h:9:0, > > from ../lib/tevent/../replace/replace.h:32, > > from ../source3/include/includes.h:23, > > from ../source3/rpc_server/rpc_service_setup.c:22: > > default/include/config.h:962:440: note: declared here #define > > static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); > extern NTSTATUS > > rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); > > extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS > > rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern > > NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS > > rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern > > NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS > > rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); > > extern NTSTATUS rpc_samr_init(void); ^ > > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in > expansion of > > macro 'static_decl_rpc' > > static_decl_rpc; > > ^ > > ../source3/rpc_server/rpc_service_setup.c: In function > 'rpc_setup_svcctl': > > ../source3/rpc_server/rpc_service_setup.c:368:11: error: too many > > arguments to function 'rpc_svcctl_init' > > status = rpc_svcctl_init(&svcctl_cb); > > ^ > > In file included from ../source4/heimdal_build/config.h:9:0, > > from ../lib/tevent/../replace/replace.h:32, > > from ../source3/include/includes.h:23, > > from ../source3/rpc_server/rpc_service_setup.c:22: > > default/include/config.h:962:243: note: declared here #define > > static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); > extern NTSTATUS > > rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); > > extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS > > rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern > > NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS > > rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern > > NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS > > rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); > > extern NTSTATUS rpc_samr_init(void); ^ > > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in > expansion of > > macro 'static_decl_rpc' > > static_decl_rpc; > > ^ > > ../source3/rpc_server/rpc_service_setup.c: In function > 'rpc_setup_ntsvcs': > > ../source3/rpc_server/rpc_service_setup.c:386:11: error: too many > > arguments to function 'rpc_ntsvcs_init' > > status = rpc_ntsvcs_init(NULL); > > ^ > > In file included from ../source4/heimdal_build/config.h:9:0, > > from ../lib/tevent/../replace/replace.h:32, > > from ../source3/include/includes.h:23, > > from ../source3/rpc_server/rpc_service_setup.c:22: > > default/include/config.h:962:282: note: declared here #define > > static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); > extern NTSTATUS > > rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); > > extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS > > rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern > > NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS > > rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern > > NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS > > rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); > > extern NTSTATUS rpc_samr_init(void); ^ > > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in > expansion of > > macro 'static_decl_rpc' > > static_decl_rpc; > > ^ > > ../source3/rpc_server/rpc_service_setup.c: In function > > 'rpc_setup_eventlog': > > ../source3/rpc_server/rpc_service_setup.c:423:11: error: too many > > arguments to function 'rpc_eventlog_init' > > status = rpc_eventlog_init(&eventlog_cb); > > ^ > > In file included from ../source4/heimdal_build/config.h:9:0, > > from ../lib/tevent/../replace/replace.h:32, > > from ../source3/include/includes.h:23, > > from ../source3/rpc_server/rpc_service_setup.c:22: > > default/include/config.h:962:480: note: declared here #define > > static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); > extern NTSTATUS > > rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); > > extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS > > rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern > > NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS > > rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern > > NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS > > rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); > > extern NTSTATUS rpc_samr_init(void); ^ > > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in > expansion of > > macro 'static_decl_rpc' > > static_decl_rpc; > > ^ > > ../source3/rpc_server/rpc_service_setup.c: In function > > 'rpc_setup_initshutdown': > > ../source3/rpc_server/rpc_service_setup.c:441:11: error: too many > > arguments to function 'rpc_initshutdown_init' > > status = rpc_initshutdown_init(NULL); > > ^ > > In file included from ../source4/heimdal_build/config.h:9:0, > > from ../lib/tevent/../replace/replace.h:32, > > from ../source3/include/includes.h:23, > > from ../source3/rpc_server/rpc_service_setup.c:22: > > default/include/config.h:962:119: note: declared here #define > > static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void); > extern NTSTATUS > > rpc_winreg_init(void); extern NTSTATUS rpc_initshutdown_init(void); > > extern NTSTATUS rpc_dssetup_init(void); extern NTSTATUS > > rpc_wkssvc_init(void); extern NTSTATUS > rpc_svcctl_init(void); extern > > NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS > > rpc_netlogon_init(void); extern NTSTATUS > rpc_netdfs_init(void); extern > > NTSTATUS rpc_srvsvc_init(void); extern NTSTATUS > > rpc_spoolss_init(void); extern NTSTATUS rpc_eventlog_init(void); > > extern NTSTATUS rpc_samr_init(void); ^ > > ../source3/rpc_server/rpc_service_setup.c:57:1: note: in > expansion of > > macro 'static_decl_rpc' > > static_decl_rpc; > > ^ > > Waf: Leaving directory > `/home/andreas/Thecus/SambaUpdate/samba-4.6.4/bin' > > Build failed: -> task failed (err #1): > > {task: cc rpc_service_setup.c -> rpc_service_setup_29.o} > > Makefile:8: recipe for target 'all' failed > > make: *** [all] Error 1 > > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > >
Apparently Analagous Threads
- Lots of RPC-related compile errors (conflicting types, too many arguments, ...) trying to update Samba from 3.5 to 4.6
- 2nd try: Lots of RPC-related compile errors (conflicting types, too many arguments, ...) trying to update Samba from 3.5 to 4.6
- 2nd try: Lots of RPC-related compile errors (conflicting types, too many arguments, ...) trying to update Samba from 3.5 to 4.6
- 2nd try: Lots of RPC-related compile errors (conflicting types, too many arguments, ...) trying to update Samba from 3.5 to 4.6
- Cannot retrieve user/group information