On Thu, 13 Sep 2018 14:41:54 +0100 miguel medalha via samba <samba at lists.samba.org> wrote:> Hello > > In one of my DCs, when I run ./configure for Samba 4.9.0, it fails > with the following message: > > Checking for lmdb >= 0.9.16 via header check : not > found Samba AD DC and --enable-selftest requires lmdb 0.9.16 or later > > My ./configure command line does not contain the option > "–enable-selftest", and "../configure –help" gives the following > output: > > --enable-selftest > enable options necessary for selftest (default=no) > > If the default is "no" why is it behaving as if the option is enabled? > > Am I doing something wrong? > > >It might help if you tell us what your actual './configure' was ? Something else might be pulling in the requirement for lmdb. Rowland
miguel medalha
2018-Sep-13 15:17 UTC
[Samba] [Announce] Samba 4.9.0 Available for Download
>> It might help if you tell us what your actual './configure' was ?>> Something else might be pulling in the requirement for lmdb.Here it goes: ./configure -j 8 --with-systemd --with-statedir=/usr/local/samba/var --with-privatedir=/usr/local/samba/var/private --with-logfilebase=/usr/local/samba/var/log --with-privileged-socket-dir=/usr/local/samba/var/lib Also, after I installed lmdb and succesfully built the sofware, I ran "samba-tool dbcheck" and I got the following: Checking 511 objects ERROR(<type 'exceptions.UnicodeEncodeError'>): uncaught exception - 'ascii' codec can't encode character u'\xe1' in position 133: ordinal not in range(128) File "/usr/local/samba/lib64/python2.7/site-packages/samba/netcmd/__init__.py", line 177, in _run return self.run(*args, **kwargs) File "/usr/local/samba/lib64/python2.7/site-packages/samba/netcmd/dbcheck.py", line 157, in run controls=controls, attrs=attrs) File "/usr/local/samba/lib64/python2.7/site-packages/samba/dbchecker.py", line 221, in check_database error_count += self.check_object(object.dn, attrs=attrs) File "/usr/local/samba/lib64/python2.7/site-packages/samba/dbchecker.py", line 2230, in check_object error_count += self.check_dn(obj, attrname, syntax_oid) File "/usr/local/samba/lib64/python2.7/site-packages/samba/dbchecker.py", line 1182, in check_dn dsdb_dn = dsdb_Dn(self.samdb, val.decode('utf8'), syntax_oid) File "/usr/local/samba/lib64/python2.7/site-packages/samba/common.py", line 101, in __init__ self.dn = ldb.Dn(samdb, self.dnstring) After returning to Samba 4.8.5 the error disapears.
On Thu, 13 Sep 2018 16:17:20 +0100 "miguel medalha" <medalist at sapo.pt> wrote:> > >> It might help if you tell us what your actual './configure' was ? > > >> Something else might be pulling in the requirement for lmdb. > > Here it goes: > > ./configure -j 8 --with-systemd --with-statedir=/usr/local/samba/var > --with-privatedir=/usr/local/samba/var/private > --with-logfilebase=/usr/local/samba/var/log > --with-privileged-socket-dir=/usr/local/samba/var/lib > >Andrew seems to have sorted your problem, but I will comment on your './configure' line. It only needs to be './configure -j 8' If libsystemd-dev is installed Samba will be built with systemd. If you don't set a different prefix, everything ends up in '/usr/local/samba' Rowland