Hi Team, While building smbd and smbstatus statically I am getting below error (using make). *ERROR: source source3/smbd/notify_msg.c is in more than one subsystem of target 'smbstatus': ['smbd_base.objlist', 'smbstatus.objlist']* *Environment Details:* Machine: Ubuntu 18.04 Samba Version: 4.11.6 *My Makefile excerpt:* ./configure --with-logfilebase=/var/log \ --disable-rpath --prefix=/opt/r1soft/r1samba --disable-python --without-ad-dc \ --without-json --disable-cups --without-libarchive --without-acl-support \ --without-ldap --without-ads --without-pam --bundled-libraries=cmocka \ --with-static-modules=NONE --builtin-libraries=NONE \ * --nonshared-binary=smbd/smbd,smbcontrol,smbpasswd,smbstatus; \* smbd: cd $(SMB_PATH) && make $@/$@ smbcontrol: cd $(SMB_PATH) && make $@ smbpasswd: cd $(SMB_PATH) && make $@ smbstatus: cd $(SMB_PATH) && make $@ Basically, I need above 4 binaries for my use. *Thanks & Regards,* *Gagandeep Singh Panesar*
On Mon, 2020-08-03 at 08:37 +0530, Gagandeep Singh Panesar via samba wrote:> Hi Team, > > While building smbd and smbstatus statically I am getting below error > (using make). > > > *ERROR: source source3/smbd/notify_msg.c is in more than one > subsystem of > target 'smbstatus': ['smbd_base.objlist', 'smbstatus.objlist']*Sadly while a static build of smbtorture and smbd is tested, a static build of smbstatus is not tested. At this stage build system work would be required to untangle the build system rules to remove the duplicate definition and so support this case. Sorry, Andrew Bartlett -- Andrew Bartlett https://samba.org/~abartlet/ Authentication Developer, Samba Team https://samba.org Samba Developer, Catalyst IT https://catalyst.net.nz/services/samba