[Samba] building samba git master: error with pyldb-util/ldb
rowlandpenny241155 at gmail.com
Mon Jul 20 08:39:24 UTC 2015
On 20/07/15 07:01, Paul Wise wrote:
> [Please CC me in reply]
> On Sun, 2015-07-19 at 16:08 +0100, Rowland Penny wrote:
>> Why ? is there some specific reason to not use the libraries that
>> building samba will produce ?
> I generally like to install things that are released separately in
> separate packages. I assumed ldb was developed separately too but it
> sounds like it is an internal samba-specific library?
>> This could mean anything, your installed library may not be where the
>> samba build expects to find it or it might not be the right version
> I'm using the latest ldb release (1.1.20) and it is installed in
> standard directories for libraries on Debian so I doubt the version
> number is wrong. Certainly pkg-config can find it.
>> Just what did you install prior to attempting to build samba ? Did you
>> follow the list on the samba wiki page ?
> I installed all the build-dependencies for the Debian samba source
> package, including docbook-xsl. I don't know which wiki page you are
> referring to but I didn't look at anything on the samba wiki.
> Build-Depends: bison, comerr-dev, debhelper (>> 9), docbook-xml,
> docbook-xsl, faketime, flex, heimdal-dev, heimdal-multidev (>= 1.6~),
> libacl1-dev, libaio-dev [linux-any], libattr1-dev, libblkid-dev, libbsd
> -dev, libcap-dev [linux-any], libctdb-dev (>= 2), libcups2-dev,
> libgnutls28-dev, libheimntlm0-heimdal (>= 1.6~), libldap2-dev, libldb
> -dev (>= 2:1.1.20~), libncurses5-dev, libntdb-dev (>= 1.0), libpam0g
> -dev, libparse-yapp-perl, libpopt-dev, libreadline-dev, libsubunit-dev,
> libtalloc-dev (>= 2.1.2~), libtdb-dev (>= 1.3.6~), libtevent-dev (>=
> 0.9.25~), perl, perl-modules, pkg-config, po-debconf, python-all-dev
> (>= 2.6.6-3), python-dnspython, python-ldb (>= 2:1.1.20~), python-ldb
> -dev (>= 2:1.1.20~), python-ntdb, python-talloc-dev (>= 2.1.2~), python
> -tdb (>= 1.3.6~), python-testtools, python3, subunit (>= 0.0.6),
> xsltproc, zlib1g-dev (>= 1:1.2.3)
OK, you do not need to install all the libraries you are doing, in fact
this is probably why you are getting the problems you are. The libraries
are part of samba and as such only need installing if you are also
installing the rest of samba, if you build samba, the libraries will
also be built.
If you did read the wiki page on building samba as an AD DC, you would
be re-directed to a page here:
This page will give you a list of packages to install before building samba:
Debian / Ubuntu
# apt-get install acl attr autoconf bison build-essential \
debhelper dnsutils docbook-xml docbook-xsl flex gdb krb5-user \
libacl1-dev libaio-dev libattr1-dev libblkid-dev libbsd-dev \
libcap-dev libcups2-dev libgnutls-dev libjson-perl \
libldap2-dev libncurses5-dev libpam0g-dev libparse-yapp-perl \
libpopt-dev libreadline-dev perl perl-modules pkg-config \
python-all-dev python-dev python-dnspython python-novaclient \
This list is slightly out of date, libgnutls-dev has been replaced with
libgnutls28-dev on debian Jessie.
The instructions to build samba are all on the wiki, I suggest you
More information about the samba