From the samba mailing list: >> I am testing Samba 4.5.0rc2 on a Solaris 10 i386 box. log.smbd contains >> a new message/error that does not show up on Samba 4.4.5. The error is: >> >> [2016/08/26 11:45:54.886237, 0] >> ../source3/rpc_server/rpc_service_setup.c:539(dcesrv_ep_setup) >> dcesrv_ep_setup: Loading shared RPC modules failed >> >> Dispite that, Samba 4.5.0rc2 seems to work correctly. Is this a problem >> or not? > >nothing too bad, but please file a bugreport so I can track this. To >get rid of it you can > ># smbd -b | grep MODULESDIR > ># mkdir MODULESDIR/rpc > >This should get rid of it. > >Cheerio! >-slow That fixes it. It looks like install fails to make that directory.
Same problem here with Samba Version 4.5.0rc3-GIT-eb55718 compiled from source: Aug 26 12:21:37 sartre systemd[1]: Starting Samba SMB/CIFS server... Aug 26 12:21:37 sartre systemd[1]: smbd.service: Supervising process 5373 which is not our child. We'll most likely not notice when it exits. Aug 26 12:21:37 sartre smbd[5373]: [2016/08/26 12:21:37.882508, 0] ../source3/rpc_server/rpc_service_setup.c:539(dcesrv_ep_setup) Aug 26 12:21:37 sartre smbd[5373]: dcesrv_ep_setup: Loading shared RPC modules failed Seems the RPC folder does not get made as the same workaround resolves.
(In reply to Chris Smith (bugmail disabled due to bounces) from comment #1) Note: my issue was on Linux.
Ping! We do need 58889e04bd545d7420d1193e134351bd0ccb8430 backported...
Created attachment 12444 [details] Patch for 4.5 cherry-picked from master
Reassigning to metze for inclusion in 4.5.
Pushed to autobuild-v4-5-test.
Pushed to v4-5-test
The fix was wrong, it results in the setup function not being called for any static module relying on run_init_functions() to call the module setup function, mdssvc being the only one atm. To fix it: --- a/source3/rpc_server/rpc_service_setup.c +++ b/source3/rpc_server/rpc_service_setup.c @@ -546,8 +546,8 @@ bool dcesrv_ep_setup(struct tevent_context *ev_ctx, DBG_ERR("Loading shared RPC modules failed [%s]\n", strerror(errno)); ok = false; + goto done; } - goto done; } ok = run_init_functions(mod_init_fns); Proper patch to follow....
Created attachment 12868 [details] Patch for master
Sorry for the previous bad review Ralph. Looking now..
Comment on attachment 12868 [details] Patch for master LGTM. Pushed. Sorry for the previous issue, I missed the fact that doing the goto done didn't call the setup_rpc_modules() function (the run_init_functions() doesn't do anything when mod_init_fns == NULL).
Created attachment 12883 [details] Patch for 4.5 and 4.6 cherry-picked from master
Comment on attachment 12883 [details] Patch for 4.5 and 4.6 cherry-picked from master LGTM.
Karolin please push the additional patch to 4.6.next, 4.5.next.
(In reply to Jeremy Allison from comment #14) Pushed additional patch to sutobuild-v4-{5,6}.
(In reply to Karolin Seeger from comment #15) Pushed to both branches. Closing out bug report. Thanks!