Bug 4947 - Incorrect docs: Build with "shared modules" fails
Summary: Incorrect docs: Build with "shared modules" fails
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Docs (show other bugs)
Version: 3.0.25c
Hardware: x86 Linux
: P3 normal
Target Milestone: none
Assignee: John H Terpstra (mail address dead(
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-31 20:08 UTC by Konstantin Andreev
Modified: 2007-09-02 14:30 UTC (History)
0 users

See Also:


Attachments
"./configure" output for comment #4. (6.76 KB, application/x-tar)
2007-09-01 10:17 UTC, Konstantin Andreev
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin Andreev 2007-08-31 20:08:43 UTC
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
Comment 1 Gerald (Jerry) Carter (dead mail address) 2007-09-01 04:16:53 UTC
--with-shared-modules is only maintaned to support things 
like idmap_XXX and vfs_XXX
Comment 2 Konstantin Andreev 2007-09-01 08:20:22 UTC
(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.
Comment 3 Gerald (Jerry) Carter (dead mail address) 2007-09-01 10:03:04 UTC
Docs bug
Comment 4 Konstantin Andreev 2007-09-01 10:12:50 UTC
(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...
Comment 5 Konstantin Andreev 2007-09-01 10:17:53 UTC
Created attachment 2910 [details]
"./configure" output for comment #4.
Comment 6 Gerald (Jerry) Carter (dead mail address) 2007-09-01 12:27:20 UTC
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.
Comment 7 Konstantin Andreev 2007-09-01 13:13:28 UTC
(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 ?
Comment 8 Gerald (Jerry) Carter (dead mail address) 2007-09-02 08:23:31 UTC
(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.
Comment 9 John H Terpstra (mail address dead( 2007-09-02 14:30:42 UTC
Additional clarification of this parameter has been added.