I am trying to build samba with shared modules, as documented in "http://us1.samba.org/samba/docs/man/Samba-Developers-Guide/Packaging.html#id327000" I use the configuration: ./configure --with-shared-modules=rpc,vfs,auth,pdb,charset --with-pam --with-pam_smbpass --without-readline --with-acl-support --with-winbind --with-aio-support --disable-cups --without-ldap --without-krb5 --without-python ... and build fails. Failed action is: -----( quote from build log )---------------------- Compiling smbd/server.c Linking bin/smbd lib/sysacls.o: In function `sys_acl_delete_def_file': sysacls.c:(.text+0x8e): undefined reference to `posixacl_sys_acl_delete_def_file' lib/sysacls.o: In function `sys_acl_set_fd': sysacls.c:(.text+0xc6): undefined reference to `posixacl_sys_acl_set_fd' lib/sysacls.o: In function `sys_acl_set_file': sysacls.c:(.text+0xfe): undefined reference to `posixacl_sys_acl_set_file' lib/sysacls.o: In function `sys_acl_get_fd': sysacls.c:(.text+0x12f): undefined reference to `posixacl_sys_acl_get_fd' lib/sysacls.o: In function `sys_acl_get_file': sysacls.c:(.text+0x160): undefined reference to `posixacl_sys_acl_get_file' rpc_server/srv_pipe.o: In function `.L3': srv_pipe.c:(.text+0x46): undefined reference to `lsa_get_pipe_fns' rpc_server/srv_pipe.o: In function `.L4': srv_pipe.c:(.text+0x5d): undefined reference to `lsa_ds_get_pipe_fns' rpc_server/srv_pipe.o: In function `.L5': srv_pipe.c:(.text+0x74): undefined reference to `samr_get_pipe_fns' rpc_server/srv_pipe.o: In function `.L6': srv_pipe.c:(.text+0x8b): undefined reference to `netlog_get_pipe_fns' rpc_server/srv_pipe.o: In function `.L8': srv_pipe.c:(.text+0xb9): undefined reference to `wkssvc_get_pipe_fns' rpc_server/srv_pipe.o: In function `.L9': srv_pipe.c:(.text+0xd0): undefined reference to `reg_get_pipe_fns' rpc_server/srv_pipe.o: In function `.L11': srv_pipe.c:(.text+0xfe): undefined reference to `netdfs_get_pipe_fns' rpc_server/srv_pipe.o: In function `.L12': srv_pipe.c:(.text+0x115): undefined reference to `svcctl_get_pipe_fns' rpc_server/srv_pipe.o: In function `.L13': srv_pipe.c:(.text+0x12c): undefined reference to `eventlog_get_pipe_fns' rpc_server/srv_pipe.o: In function `.L14': srv_pipe.c:(.text+0x140): undefined reference to `ntsvcs_get_pipe_fns' registry/reg_frontend.o: In function `init_registry': reg_frontend.c:(.text+0xd85): undefined reference to `svcctl_init_keys' collect2: ld returned 1 exit status make: *** [bin/smbd] Error 1
--with-shared-modules is only maintaned to support things like idmap_XXX and vfs_XXX
(In reply to comment #1) > --with-shared-modules is only maintaned to support things > like idmap_XXX and vfs_XXX > You have a misleading documentation. Please, correct the document I have mentioned above.
Docs bug
(In reply to comment #1) > --with-shared-modules is only maintaned to support things like idmap_XXX and vfs_XXX I'm sorrry, but the problem really persists. I've done exactly as you said: | ./configure --with-shared-modules=vfs,idmap --with-pam ... Build fails again with slightly different errors: ----( begin quote )----------------- Compiling smbd/server.c Linking bin/smbd lib/sysacls.o: In function `sys_acl_delete_def_file': sysacls.c:(.text+0x8e): undefined reference to `posixacl_sys_acl_delete_def_file' lib/sysacls.o: In function `sys_acl_set_fd': sysacls.c:(.text+0xc6): undefined reference to `posixacl_sys_acl_set_fd' lib/sysacls.o: In function `sys_acl_set_file': sysacls.c:(.text+0xfe): undefined reference to `posixacl_sys_acl_set_file' lib/sysacls.o: In function `sys_acl_get_fd': sysacls.c:(.text+0x12f): undefined reference to `posixacl_sys_acl_get_fd' lib/sysacls.o: In function `sys_acl_get_file': sysacls.c:(.text+0x160): undefined reference to `posixacl_sys_acl_get_file' collect2: ld returned 1 exit status make: *** [bin/smbd] Error 1 ----( end quote )------------------- Do you perform a regression tests for Samba ? They should fail...
Created attachment 2910 [details] "./configure" output for comment #4.
Please read my comment. --with-shaded-modeules is for *specific* idmap or vfs modules. For example, --with-shared-modules=idmap_ad And yes, we do perform regression tests. What you are trying to do has never worked not been supported in any official release.
(In reply to comment #6) > Please read my comment. Your comment has misleaded. > --with-shared-modules is for *specific* idmap or vfs modules. For example, --with-shared-modules=idmap_ad It is worth telling it earlier (at once), or even in docs, for me not to torture you looking for answer, isn't it ?
(In reply to comment #7) > It is worth telling it earlier (at once), or even in docs, for me not to > torture you looking for answer, isn't it ? Fair enough. I thought comment #1 was explicit enough. But in any case, it has been filed as bug in the docs and handed off to the correct person.
Additional clarification of this parameter has been added.