[Samba] compiling samba..

npower npower at samba.org
Fri Aug 4 09:18:16 UTC 2023

On 03/08/2023 20:25, Joachim Lindenberg via samba wrote:
> I am trying to compile samba for the first time and ran into several 
> issues that might be obvious for all team members but not for me and I 
> think documentation could be improved/updated.
> 1. I am wondering why 
> https://wiki.samba.org/index.php/Build_Samba_from_Source suggests to 
> use wget instead of just git clone 
> https://gitlab.com/samba-team/devel/samba.git and then checking out a 
> release branch. Or are these really different?
> 2. The package dependencies at 
> https://wiki.samba.org/index.php/Package_Dependencies_Required_to_Build_Samba#Debian_/_Ubuntu 
> don´t work well for me. For one I think it would help to update them 
> to (most) recent distributions (I am trying on Ubuntu 22.04.2), but I 
> believe I managed that part. However even then I got
> E: Unable to locate package python-crypto
> E: Unable to locate package python-dnspython
> E: Unable to locate package python-gpg
> Are these obsolete or what is the correct replacement?
> 3. I also tried 
> https://git.samba.org/?p=samba.git;a=blob_plain;f=bootstrap/generated-dists/ubuntu2004/bootstrap.sh;hb=master 
> ignoring the version mismatch on both Ubuntu and Samba sources, but 
> got errors as well.
> 4. Ignoring that, I ran ./configure and noticed lots of green ok and 
> yellow not found, plus one error (red):
> vfs_snapper is enabled but prerequisite dbus-1 package not found. Use 
> --with-shared-modules='!vfs_snapper' to disable vfs_snapper support.
> How do I get this installed? Or what is the consequence of disabling 
> vfs_snapper?
> Thanks,
> Joachim
building from source is a pita (especially in terms of the dependencies) 
however there are some things to help, firstly you could use a 
container, samba ci tests (full developer build) on numerous 
distributions e.g. in your case you are probably interested in

   * registry.gitlab.com/samba-team/devel/samba/samba-ci-ubuntu2004

   * registry.gitlab.com/samba-team/devel/samba/samba-ci-debian12

depending on your use case you might not want to build on a container 
but on a real host and again the CI infra provides great help, e.g. in 
your downloaded samba source if you look in


you should find the complete list of required packages to build samba 
(without trying to tweak various configure options)


More information about the samba mailing list