[Samba] Concerns about failed tests in build from git source on Debian Gnu/Linux
Rowland Penny
rpenny at samba.org
Tue May 6 07:59:04 UTC 2025
On Mon, 5 May 2025 23:03:28 -0400
Soren via samba <samba at lists.samba.org> wrote:
> Greetings. I am newly engaged in using samba in a heterogenous LAN
> environment (Windows 10 & Gnu/Linux systems, all Linux boxes are
> 32-bit). After seeing failures in the samba suite provided for my
> distribution (Debian "Buster" 10.13)
Is there some reason why you are still using an EOL version of Debian ?
I personally no longer have any 32bit computers, but Debian still
supports them, so you should be able to update to 4.21.5 from
bookworm backports.
Rowland
> I decided to build and install
> samba from the upstream source at the git repository, cloned it on
> April 29. I had completely removed the samba files installed by apt
> (--purge). After compiling I installed samba and tried out a smb
> client command to see how everything was working, and partial results
> were:
>
> ~$ smbtree
> /lib/i386-linux-gnu/libsamba-errors.so.1: version
> `SAMBA_ERRORS_1.0.0' not found (required by smbtree)
> smbtree: /lib/i386-linux-gnu/libsmbconf.so.0: version `SMBCONF_0.0.1'
> not found (required by smbtree)
> smbtree: /lib/i386-linux-gnu/libsmbclient.so.0: version
> `SMBCLIENT_0.5.0' not found (required by smbtree)
> smbtree: /lib/i386-linux-gnu/libsmbconf.so.0: version `SMBCONF_0.0.1'
> not found (required by /usr/lib/samba/libsecrets3-samba4.so)
> smbtree: /lib/i386-linux-gnu/libsamba-errors.so.1: version
> `SAMBA_ERRORS_1.0.0' not found (required by
> /usr/lib/samba/libsecrets3-samba4.so)
>
> So I recompiled samba with tests enabled in the 'configure' using the
> following invocation:
>
> ./configure --enable-fhs --prefix=/usr
> --with-shared-modules='!vfs_snapper' --enable-selftest
>
> I would really appreciate any explanations or insights into what is
> happening here.
> The summary of the self-tests, run yesterday, contains the following
> but is not complete (I didn't want to spam the list with a huge dump
> of mostly-redundant information):
>
> = Failed tests =
> == samba.tests.source_chars ==
> command: PYTHONPATH=$PYTHONPATH python3 -m samba.subunit.run
> $LOADLIST samba.tests.source_chars 2>&1 | python3
> /home/somian/Downloads/Bookworm-Src-Pulls-Git/samba/selftest/filter-subunit
> --fail-on-empty --prefix="samba.tests.source_chars." --suffix="(none)"
> expanded command:
> PYTHONPATH=/home/somian/Downloads/Bookworm-Src-Pulls-Git/samba/bin/python:/opt
> python3 -m samba.subunit.run $LOADLIST samba.tests.source_chars 2>&1
> | python3
> /home/somian/Downloads/Bookworm-Src-Pulls-Git/samba/selftest/filter-subunit
> --fail-on-empty --prefix="samba.tests.source_chars."
> --suffix="(none)" ERROR: Testsuite[samba.tests.source_chars] REASON:
> Exit code was 1
>
>
> == samba.tests.blackbox.ndrdump ==
> command: PYTHONPATH=$PYTHONPATH python3 -m samba.subunit.run
> $LOADLIST samba.tests.blackbox.ndrdump 2>&1 | python3
> /home/somian/Downloads/Bookworm-Src-Pulls-Git/samba/selftest/filter-subunit
> --fail-on-empty --prefix="samba.tests.blackbox.ndrdump."
> --suffix="(none)"
> expanded command:
> PYTHONPATH=/home/somian/Downloads/Bookworm-Src-Pulls-Git/samba/bin/python:/opt
> python3 -m samba.subunit.run $LOADLIST samba.tests.blackbox.ndrdump
> 2>&1 | python3
> /home/somian/Downloads/Bookworm-Src-Pulls-Git/samba/selftest/filter-subunit
> --fail-on-empty --prefix="samba.tests.blackbox.ndrdump."
> --suffix="(none)"
> ERROR: Testsuite[samba.tests.blackbox.ndrdump]
> REASON: Exit code was 1
>
> == ldb.python ==
> command: PYTHONPATH=$PYTHONPATH:lib/ldb/tests/python python3 -m
> samba.subunit.run $LOADLIST api 2>&1 | python3
> /home/somian/Downloads/Bookworm-Src-Pulls-Git/samba/selftest/filter-subunit
> --fail-on-empty --prefix="ldb.python." --suffix="(none)"
> expanded command:
> PYTHONPATH=/home/somian/Downloads/Bookworm-Src-Pulls-Git/samba/bin/python:/opt:lib/ldb/tests/python
> python3 -m samba.subunit.run $LOADLIST api 2>&1 | python3
> /home/somian/Downloads/Bookworm-Src-Pulls-Git/samba/selftest/filter-subunit
> --fail-on-empty --prefix="ldb.python." --suffix="(none)"
> ERROR: Testsuite[ldb.python]
> REASON: Exit code was 1
>
> errors[500]
>
> == samba.tests.cred_opt ==
> command: PYTHONPATH=$PYTHONPATH python3 -m samba.subunit.run
> $LOADLIST samba.tests.cred_opt 2>&1 | python3
> /home/somian/Downloads/Bookworm-Src-Pulls-Git/samba/selftest/filter-subunit
> --fail-on-empty --prefix="samba.tests.cred_opt." --suffix="(none)"
> expanded command:
> PYTHONPATH=/home/somian/Downloads/Bookworm-Src-Pulls-Git/samba/bin/python:/opt
> python3 -m samba.subunit.run $LOADLIST samba.tests.cred_opt 2>&1 |
> python3
> /home/somian/Downloads/Bookworm-Src-Pulls-Git/samba/selftest/filter-subunit
> --fail-on-empty --prefix="samba.tests.cred_opt." --suffix="(none)"
> ERROR: Testsuite[samba.tests.cred_opt] REASON: Exit code was 1
>
> errors[1]
>
> == samba.tests.s3passdb ==
> command: PYTHONPATH=$PYTHONPATH python3 -m samba.subunit.run
> $LOADLIST samba.tests.s3passdb 2>&1 | python3
> /home/somian/Downloads/Bookworm-Src-Pulls-Git/samba/selftest/filter-subunit
> --fail-on-empty --prefix="samba.tests.s3passdb." --suffix="(none)"
> expanded command:
> PYTHONPATH=/home/somian/Downloads/Bookworm-Src-Pulls-Git/samba/bin/python:/opt
> python3 -m samba.subunit.run $LOADLIST samba.tests.s3passdb 2>&1 |
> python3
> /home/somian/Downloads/Bookworm-Src-Pulls-Git/samba/selftest/filter-subunit
> --fail-on-empty --prefix="samba.tests.s3passdb." --suffix="(none)"
> ERROR: Testsuite[samba.tests.s3passdb] REASON: Exit code was 1
>
> == samba.tests.dcerpc.samr_change_password(ad_dc:local) ==
> ERROR: Testsuite[samba.tests.dcerpc.samr_change_password(ad_dc:local)]
> REASON: unable to set up environment ad_dc:local - exiting
>
> PROVISIONING AD DC...
>
> == samba.tests.dcerpc.samr_change_password(ad_dc_fips:local) ==
> ERROR:
> Testsuite[samba.tests.dcerpc.samr_change_password(ad_dc_fips:local)]
> REASON: unable to set up environment ad_dc_fips:local - exiting
>
> == samba4.blackbox.test_special_group ==
> /home/somian/Downloads/Bookworm-Src-Pulls-Git/samba/testprogs/blackbox/test_special_group.sh:
> 121: [:
> /home/somian/Downloads/Bookworm-Src-Pulls-Git/samba/st/provision/release-4-5-0-pre1:
> unexpected operator command: PYTHON=python3
> /home/somian/Downloads/Bookworm-Src-Pulls-Git/samba/testprogs/blackbox/test_special_group.sh
> $PREFIX_ABS/provision --configfile=$SMB_CONF_PATH 2>&1 | python3
> /home/somian/Downloads/Bookworm-Src-Pulls-Git/samba/selftest/filter-subunit
> --fail-on-empty --prefix="samba4.blackbox.test_special_group."
> --suffix="(none)"
> expanded command: PYTHON=python3
> /home/somian/Downloads/Bookworm-Src-Pulls-Git/samba/testprogs/blackbox/test_special_group.sh
> /home/somian/Downloads/Bookworm-Src-Pulls-Git/samba/st/provision
> --configfile=/home/somian/Downloads/Bookworm-Src-Pulls-Git/samba/st/client/client.conf
> 2>&1 | python3
> /home/somian/Downloads/Bookworm-Src-Pulls-Git/samba/selftest/filter-subunit
> --fail-on-empty --prefix="samba4.blackbox.test_special_group."
> --suffix="(none)"
> ERROR: Testsuite[samba4.blackbox.test_special_group]
> REASON: Exit code was 1
>
> == samba.tests.glue ==
> command: PYTHONPATH=$PYTHONPATH python3 -m samba.subunit.run
> $LOADLIST samba.tests.glue 2>&1 | python3
> /home/somian/Downloads/Bookworm-Src-Pulls-Git/samba/selftest/filter-subunit
> --fail-on-empty --prefix="samba.tests.glue." --suffix="(none)"
> expanded command:
> PYTHONPATH=/home/somian/Downloads/Bookworm-Src-Pulls-Git/samba/bin/python:/opt
> python3 -m samba.subunit.run $LOADLIST samba.tests.glue 2>&1 |
> python3
> /home/somian/Downloads/Bookworm-Src-Pulls-Git/samba/selftest/filter-subunit
> --fail-on-empty --prefix="samba.tests.glue." --suffix="(none)" ERROR:
> Testsuite[samba.tests.glue] REASON: Exit code was 1
>
> ----------------------------------------------------------------------
> Soren Andersen (somian08 -AT- gmail -DOT- com)
>
More information about the samba
mailing list