[Samba] Samba building is broken when some libraries are specified to be built-in to binaries !

CpServiceSPb . cpservicespb at gmail.com
Tue Nov 19 06:36:38 UTC 2019


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.


More information about the samba mailing list