CpServiceSPb .
2019-Nov-19 06:36 UTC
[Samba] Samba building is broken when some libraries are specified to be built-in to binaries !
I try to build Samba 4.10.10 at Ubuntu 18.04 on x86_64 platform as at armv7l archtectures from sources. I need build replace,winbind-client,wbclientto binaries For that I specify *--builtin-libraries=replace,winbind-client,wbclien*t,ccan,samba-cluster-support at configure But in the case I get time to time, the following errors: *=error1 =* Compiling source4/dsdb/samdb/ldb_modules/objectguid.c source4/dsdb/samdb/ldb_modules/tests/test_group_audit.c.21.o: In function `audit_message_send': ./bin/default/../../source4/dsdb/samdb/ldb_modules/tests/test_group_audit.c:79: multiple definition of `audit_message_send' lib/audit_logging/audit_logging.c.1.o:./bin/default/../../lib/audit_logging/audit_logging.c:231: first defined here collect2: error: ld returned 1 exit status *=error2 on x86_64 platform= * [4551/6348] Compiling libcli/auth/tests/ntlm_check.c source4/dsdb/samdb/ldb_modules/tests/test_group_audit.c.21.o: In function `audit_message_send': ./bin/default/../../source4/dsdb/samdb/ldb_modules/tests/test_group_audit.c:79: multiple definition of `audit_message_send' lib/audit_logging/audit_logging.c.1.o:./bin/default/../../lib/audit_logging/audit_logging.c:231: first defined here collect2: error: ld returned 1 exit status or *=error2 on arm7l platform= * [4522/6341] Linking bin/default/source4/dsdb/samdb/ldb_modules/test_group_audit.inst source4/dsdb/samdb/ldb_modules/tests/test_group_audit.c.21.o: In function `audit_message_send': ./bin/default/../../source4/dsdb/samdb/ldb_modules/tests/test_group_audit.c:79: multiple definition of `audit_message_send' lib/audit_logging/audit_logging.c.1.o:./bin/default/../../lib/audit_logging/audit_logging.c:231: first defined here collect2: error: ld returned 1 exit status It doen' t matter how many *job=X* is specified. What does time to time in the case mean, it is not always, I could even build successfully Samba some times (on x86_64 platform, on arm7l I tried 1 time and it was faulted) , but sometimes building breaks at 1st error, some times at 2nd one. I couldn' t tunderstand what is depends of. And on arm7l platform if I specify job more than 1, for example job=3, process hangs on: Checking for macro _getcwd : not found Checking for __getcwd : What' s wrong and how is to avoid these errors ? The same situation was for 4.10.5 as well.
Andrew Bartlett
2019-Nov-21 20:47 UTC
[Samba] Samba building is broken when some libraries are specified to be built-in to binaries !
On Tue, 2019-11-19 at 09:36 +0300, CpServiceSPb . via samba wrote:> I try to build Samba 4.10.10 at Ubuntu 18.04 on x86_64 platform as at > armv7l archtectures from sources. > I need build replace,winbind-client,wbclientto binaries > For that I specify > *--builtin-libraries=replace,winbind-client,wbclien*t,ccan,samba- > cluster-support > > at configure > > But in the case I get time to time, the following errors:These are due to our dependency resolution which has changed flow due to the way you have configured waf. I suggest building only the targets you need. In the long term we should probably only build these binaries if we actually have the -- enable-selftest option set. Andrew Bartlett -- Andrew Bartlett https://samba.org/~abartlet/ Authentication Developer, Samba Team https://samba.org Samba Development and Support, Catalyst IT https://catalyst.net.nz/services/samba
CpServiceSPb .
2019-Nov-21 21:36 UTC
[Samba] Samba building is broken when some libraries are specified to be built-in to binaries !
Ok. But to the time in a short term period is there is way to make building successfull ? May be some temporal solution ? One more, I need to build-in to binaries: libreplace,libwinbind-client,libwbclien, that is replace,winbind-client,wbclient "targets" while building all regarding configure options specified below: --prefix=/usr \ --enable-fhs \ --sysconfdir=/etc \ --localstatedir=/var \ --libexecdir=/usr/lib/x86_64-linux-gnu \ --with-privatedir=/var/lib/samba/private \ --with-smbpasswd-file=/etc/samba/smbpasswd \ --with-piddir=/var/run/samba \ --with-pammodulesdir=/lib/x86_64-linux-gnu/security \ --with-pam \ --with-syslog \ --with-utmp \ --with-winbind \ --with-shared-modules=idmap_rid,idmap_ad,idmap_adex,idmap_hash,idmap_ldap,idmap_tdb2,vfs_dfs_samba4,auth_samba4 \ --with-automount \ --with-ldap \ --with-ads \ --with-dnsupdate \ --with-gpgme \ --libdir=/usr/lib/x86_64-linux-gnu \ --with-modulesdir=/usr/lib/x86_64-linux-gnu/samba \ --datadir=/usr/share \ --with-lockdir=/var/run/samba \ --with-statedir=/var/lib/samba \ --with-cachedir=/var/cache/samba \ --enable-avahi \ --disable-rpath \ --disable-rpath-install \ --bundled-libraries=NONE,pytevent,iniparser,roken,wind,hx509,asn1,heimbase,hcrypto,krb5,gssapi,heimntlm,hdb,kdc,com_err,compile_et,asn1_compile \ --builtin-libraries=replace,winbind-client,wbclient,ccan,samba-cluster-support \ --with-cluster-support \ --with-socketpath=/var/run/ctdb/ctdbd.socket \ --with-logdir=/var/log/ctdb ??, 21 ????. 2019 ?. ? 23:47, Andrew Bartlett <abartlet at samba.org>:> On Tue, 2019-11-19 at 09:36 +0300, CpServiceSPb . via samba wrote: > > I try to build Samba 4.10.10 at Ubuntu 18.04 on x86_64 platform as at > > armv7l archtectures from sources. > > I need build replace,winbind-client,wbclientto binaries > > For that I specify > > *--builtin-libraries=replace,winbind-client,wbclien*t,ccan,samba- > > cluster-support > > > > at configure > > > > But in the case I get time to time, the following errors: > > These are due to our dependency resolution which has changed flow due > to the way you have configured waf. > > I suggest building only the targets you need. In the long term we > should probably only build these binaries if we actually have the -- > enable-selftest option set. > > Andrew Bartlett > -- > Andrew Bartlett > https://samba.org/~abartlet/ > Authentication Developer, Samba Team https://samba.org > Samba Development and Support, Catalyst IT > https://catalyst.net.nz/services/samba > > > > > >
Reasonably Related Threads
- Samba building is broken when some libraries are specified to be built-in to binaries !
- shared folder in the samba domain, can't be access on trusting domain users
- About de Bruijn sequences in bitmath.h
- Samba 4.19.2: "Unwilling to perform" password change
- creating an ubuntu package of version 4.1.0