Dear Samba experts, I tried to install the latest Samba release the way I did it always, i.e. starting with: ./configure --prefix=/usr/local/samba \ --with-piddir=/usr/local/samba/var/run \ --with-syslog \ --with-quotas \ --with-acl-support \ --enable-debug \ --enable-cups \ --enable-selftest \ --with-ads \ --with-shared-modules=idmap_ad But after a short while this stops throwing an error, which is totally cryptic to me Checking for perl 5.0.0 : ok 5.24.1 Checking for perl $Config{vendorprefix}: : '/usr' PERL_ARCH_INSTALL_DIR: : '${LIBDIR}/perl5' PERL_LIB_INSTALL_DIR: : '${DATADIR}/perl5' Traceback (most recent call last): File "./buildtools/bin/waf", line 76, in <module> Scripting.prepare(t, cwd, VERSION, wafdir) File "/usr/src/samba/samba-4.5.1/third_party/waf/wafadmin/Scripting.py", line 145, in prepare prepare_impl(t, cwd, ver, wafdir) File "/usr/src/samba/samba-4.5.1/third_party/waf/wafadmin/Scripting.py", line 135, in prepare_impl main() File "/usr/src/samba/samba-4.5.1/wscript", line 347, in main wildcard_main(wildcard_cmd) File "./buildtools/wafsamba/samba_wildcard.py", line 110, in wildcard_main fun(ctx) File "/usr/src/samba/samba-4.5.1/third_party/waf/wafadmin/Scripting.py", line 241, in configure conf.sub_config(['']) File "/usr/src/samba/samba-4.5.1/third_party/waf/wafadmin/Configure.py", line 237, in sub_config self.recurse(k, name='configure') File "/usr/src/samba/samba-4.5.1/third_party/waf/wafadmin/Utils.py", line 656, in recurse f(self) File "/usr/src/samba/samba-4.5.1/wscript", line 103, in configure conf.SAMBA_CHECK_PERL(mandatory=True) File "./buildtools/wafsamba/samba_perl.py", line 52, in SAMBA_CHECK_PERL perl_inc.remove('.') ValueError: list.remove(x): x not in list What should I do to overcome this? Best regards Peter
Hai, Have you checked all paths are correct? On a running server type : smbd -b check the paths and put them in the configure also. See if it helps and if not post again and plese post your os also that helps.. Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens Peter Serbe via > samba > Verzonden: woensdag 26 oktober 2016 10:21 > Aan: samba at lists.samba.org > Onderwerp: [Samba] samba-4.5.1 build problem > > Dear Samba experts, > > I tried to install the latest Samba release the way I > did it always, i.e. starting with: > > ./configure --prefix=/usr/local/samba \ > --with-piddir=/usr/local/samba/var/run \ > --with-syslog \ > --with-quotas \ > --with-acl-support \ > --enable-debug \ > --enable-cups \ > --enable-selftest \ > --with-ads \ > --with-shared-modules=idmap_ad > > But after a short while this stops throwing an error, > which is totally cryptic to me > > Checking for perl 5.0.0 > : ok 5.24.1 > Checking for perl $Config{vendorprefix}: > : '/usr' > PERL_ARCH_INSTALL_DIR: > : '${LIBDIR}/perl5' > PERL_LIB_INSTALL_DIR: > : '${DATADIR}/perl5' > Traceback (most recent call last): > File "./buildtools/bin/waf", line 76, in <module> > Scripting.prepare(t, cwd, VERSION, wafdir) > File "/usr/src/samba/samba-4.5.1/third_party/waf/wafadmin/Scripting.py", > line 145, in prepare > prepare_impl(t, cwd, ver, wafdir) > File "/usr/src/samba/samba-4.5.1/third_party/waf/wafadmin/Scripting.py", > line 135, in prepare_impl > main() > File "/usr/src/samba/samba-4.5.1/wscript", line 347, in main > wildcard_main(wildcard_cmd) > File "./buildtools/wafsamba/samba_wildcard.py", line 110, in > wildcard_main > fun(ctx) > File "/usr/src/samba/samba-4.5.1/third_party/waf/wafadmin/Scripting.py", > line 241, in configure > conf.sub_config(['']) > File "/usr/src/samba/samba-4.5.1/third_party/waf/wafadmin/Configure.py", > line 237, in sub_config > self.recurse(k, name='configure') > File "/usr/src/samba/samba-4.5.1/third_party/waf/wafadmin/Utils.py", > line 656, in recurse > f(self) > File "/usr/src/samba/samba-4.5.1/wscript", line 103, in configure > conf.SAMBA_CHECK_PERL(mandatory=True) > File "./buildtools/wafsamba/samba_perl.py", line 52, in SAMBA_CHECK_PERL > perl_inc.remove('.') > ValueError: list.remove(x): x not in list > > What should I do to overcome this? > > Best regards > Peter > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba
Peter Serbe via samba <samba at lists.samba.org> writes:> Dear Samba experts, > > I tried to install the latest Samba release the way I > did it always, i.e. starting with:That's on debian testing, right? I've seen this, but I haven't got around it yet. It requires some deep look at waf code. In the short term, you should use debian stable. Sorry, Volker
Dear Volker, [build problem...]> That's on debian testing, right? I've seen this, but I haven't got > around it yet. It requires some deep look at waf code. In the short > term, you should use debian stable.Yes. You've got a bright crystal ball, btw. Since a longer time I deeply regret having gone to Stretch testing. Two month ago I did compile samba-4.5.0 without any problem, but apparently Debian testing did break something deep inside the system. I already migrated some of my boxes to Gentoo, but that is a long and painful way, too. :-( Thank You anyway Peter
Hai Peter, If you are interested. I have 4.5.1 debian packages for debian Jessie, but untested atm by me. I have next week time to test them but if you want to test them. So let me know, i can put them online for you. Or if anyone else wants to test them, let me know. Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens Peter Serbe via > samba > Verzonden: woensdag 26 oktober 2016 11:31 > Aan: samba at lists.samba.org > CC: vl at samba.org > Onderwerp: Re: [Samba] samba-4.5.1 build problem > > Dear Volker, > > [build problem...] > > > That's on debian testing, right? I've seen this, but I haven't got > > around it yet. It requires some deep look at waf code. In the short > > term, you should use debian stable. > > Yes. You've got a bright crystal ball, btw. > Since a longer time I deeply regret having gone to Stretch testing. > Two month ago I did compile samba-4.5.0 without any problem, but > apparently Debian testing did break something deep inside the system. > I already migrated some of my boxes to Gentoo, but that is a long and > painful way, too. :-( > > Thank You anyway > Peter > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba
On Wed, 2016-10-26 at 10:21 +0200, Peter Serbe via samba wrote:> Dear Samba experts, > > I tried to install the latest Samba release the way I > did it always, i.e. starting with: > > ./configure --prefix=/usr/local/samba \ > --with-piddir=/usr/local/samba/var/run \ > --with-syslog \ > --with-quotas \ > --with-acl-support \ > --enable-debug \ > --enable-cups \ > --enable-selftest \ > --with-ads \ > --with-shared-modules=idmap_ad > > But after a short while this stops throwing an error, > which is totally cryptic to me > > Checking for perl > 5.0.0 : ok > 5.24.1 > Checking for perl > $Config{vendorprefix}: : > '/usr' > PERL_ARCH_INSTALL_DIR: > : '${LIBDIR}/perl5' > PERL_LIB_INSTALL_DIR: > : '${DATADIR}/perl5' > Traceback (most recent call last): > File "./buildtools/bin/waf", line 76, in <module> > Scripting.prepare(t, cwd, VERSION, wafdir) > File "/usr/src/samba/samba- > 4.5.1/third_party/waf/wafadmin/Scripting.py", line 145, in prepare > prepare_impl(t, cwd, ver, wafdir) > File "/usr/src/samba/samba- > 4.5.1/third_party/waf/wafadmin/Scripting.py", line 135, in > prepare_impl > main() > File "/usr/src/samba/samba-4.5.1/wscript", line 347, in main > wildcard_main(wildcard_cmd) > File "./buildtools/wafsamba/samba_wildcard.py", line 110, in > wildcard_main > fun(ctx) > File "/usr/src/samba/samba- > 4.5.1/third_party/waf/wafadmin/Scripting.py", line 241, in configure > conf.sub_config(['']) > File "/usr/src/samba/samba- > 4.5.1/third_party/waf/wafadmin/Configure.py", line 237, in sub_config > self.recurse(k, name='configure') > File "/usr/src/samba/samba- > 4.5.1/third_party/waf/wafadmin/Utils.py", line 656, in recurse > f(self) > File "/usr/src/samba/samba-4.5.1/wscript", line 103, in configure > conf.SAMBA_CHECK_PERL(mandatory=True) > File "./buildtools/wafsamba/samba_perl.py", line 52, in > SAMBA_CHECK_PERL > perl_inc.remove('.') > ValueError: list.remove(x): x not in list > > What should I do to overcome this?I patched this at work yesterday. I'll get you the patch when I get back to Catalyst tomorrow. It wasn't hard, just something like adding: if '.' in perl_inc: at the indicated line. Andrew Bartlett -- Andrew Bartlett http://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba
On Thu, 2016-10-27 at 01:34 +1300, Andrew Bartlett wrote:> On Wed, 2016-10-26 at 10:21 +0200, Peter Serbe via samba wrote: > > > > Dear Samba experts, > > > > I tried to install the latest Samba release the way I > > did it always, i.e. starting with: > > > > ./configure --prefix=/usr/local/samba \ > > --with-piddir=/usr/local/samba/var/run \ > > --with-syslog \ > > --with-quotas \ > > --with-acl-support \ > > --enable-debug \ > > --enable-cups \ > > --enable-selftest \ > > --with-ads \ > > --with-shared-modules=idmap_ad > > > > But after a short while this stops throwing an error, > > which is totally cryptic to me > > > > Checking for perl > > 5.0.0 : > > ok > > 5.24.1 > > Checking for perl > > $Config{vendorprefix}: : > > '/usr' > > PERL_ARCH_INSTALL_DIR: > > > > : '${LIBDIR}/perl5' > > PERL_LIB_INSTALL_DIR: > > > > : '${DATADIR}/perl5' > > Traceback (most recent call last): > > File "./buildtools/bin/waf", line 76, in <module> > > Scripting.prepare(t, cwd, VERSION, wafdir) > > File "/usr/src/samba/samba- > > 4.5.1/third_party/waf/wafadmin/Scripting.py", line 145, in prepare > > prepare_impl(t, cwd, ver, wafdir) > > File "/usr/src/samba/samba- > > 4.5.1/third_party/waf/wafadmin/Scripting.py", line 135, in > > prepare_impl > > main() > > File "/usr/src/samba/samba-4.5.1/wscript", line 347, in main > > wildcard_main(wildcard_cmd) > > File "./buildtools/wafsamba/samba_wildcard.py", line 110, in > > wildcard_main > > fun(ctx) > > File "/usr/src/samba/samba- > > 4.5.1/third_party/waf/wafadmin/Scripting.py", line 241, in > > configure > > conf.sub_config(['']) > > File "/usr/src/samba/samba- > > 4.5.1/third_party/waf/wafadmin/Configure.py", line 237, in > > sub_config > > self.recurse(k, name='configure') > > File "/usr/src/samba/samba- > > 4.5.1/third_party/waf/wafadmin/Utils.py", line 656, in recurse > > f(self) > > File "/usr/src/samba/samba-4.5.1/wscript", line 103, in configure > > conf.SAMBA_CHECK_PERL(mandatory=True) > > File "./buildtools/wafsamba/samba_perl.py", line 52, in > > SAMBA_CHECK_PERL > > perl_inc.remove('.') > > ValueError: list.remove(x): x not in list > > > > What should I do to overcome this? > > I patched this at work yesterday. I'll get you the patch when I get > back to Catalyst tomorrow. > > It wasn't hard, just something like adding: > > if '.' in perl_inc: > > at the indicated line. > > Andrew BartlettI'll get: http://git.catalyst.net.nz/gw?p=samba.git;a=commitdiff_plain;h=edb109f6 82b296044cb4cb84bb03305a75e19c2d Into the tree. Have you filed a bug? If so tell me the number and I'll include that in the patch. Thanks, Andrew Bartlett -- Andrew Bartlett http://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba