[Samba] Building from source on an ARM71 based router

Rowland Penny rpenny at samba.org
Sat Jun 3 17:15:34 UTC 2017


On Sat, 3 Jun 2017 12:43:52 -0400
Zac Morris <zac at zacwolf.com> wrote:

> OK, to be extra clear, I *am* now running just: ./configure
> 
> It is this script that is erroring at step:
> *Checking uname sysname type*
> 
> It's not a python specific issue. Like I said, this is a minimal linux
> build, so many of the de facto apps/headers/libs are not installed.
> I've installed all of the "listed" samba dependencies, so this is
> probably a sub (sub/sub?) dependency of some kind. I'm just not
> fluent enough in python to understand what action is called at each
> of the various "breakpoints" below, so I can't figure out what might
> be missing, and the error message isn't helping.
> 
> So I'm asking, is anyone familiar with what is actually happening at
> step: "*Checking
> uname sysname type*" of the configure script?
> 
> If someone more familiar with Python could look through the various
> scripts listed below, and maybe give me a clue as to what is trying
> to be accomplished at this stage of configure, then maybe I can
> figure out what else might be missing from my build.
> 
> THANKS!
> 
> *Checking uname sysname type*              : Traceback (most recent
> call last):
>   File "./buildtools/bin/waf", line 76, in <module>
>     Scripting.prepare(t, cwd, VERSION, wafdir)
>   File "/opt/test/samba-4.6.4/third_party/waf/wafadmin/Scripting.py",
> line 145, in prepare
>     prepare_impl(t, cwd, ver, wafdir)
>   File "/opt/test/samba-4.6.4/third_party/waf/wafadmin/Scripting.py",
> line 135, in prepare_impl
>     main()
>   File "/opt/test/samba-4.6.4/wscript", line 350, in main
>     wildcard_main(wildcard_cmd)
>   File "./buildtools/wafsamba/samba_wildcard.py", line 110, in
> wildcard_main fun(ctx)
>   File "/opt/test/samba-4.6.4/third_party/waf/wafadmin/Scripting.py",
> line 241, in configure
>     conf.sub_config([''])
>   File "/opt/test/samba-4.6.4/third_party/waf/wafadmin/Configure.py",
> line 237, in sub_config
>     self.recurse(k, name='configure')
>   File "/opt/test/samba-4.6.4/third_party/waf/wafadmin/Utils.py",
> line 656, in recurse
>     f(self)
>   File "/opt/test/samba-4.6.4/wscript", line 101, in configure
>     conf.RECURSE('lib/replace')
>   File "./buildtools/wafsamba/samba_utils.py", line 451, in RECURSE
>     return ctx.sub_config(relpath)
>   File "/opt/test/samba-4.6.4/third_party/waf/wafadmin/Configure.py",
> line 237, in sub_config
>     self.recurse(k, name='configure')
>   File "/opt/test/samba-4.6.4/third_party/waf/wafadmin/Utils.py",
> line 656, in recurse
>     f(self)
>   File "/opt/test/samba-4.6.4/third_party/waf/wafadmin/Utils.py",
> line 743, in wrap
>     ret = fun(k)
>   File "/opt/test/samba-4.6.4/lib/replace/wscript", line 28, in
> configure conf.RECURSE('buildtools/wafsamba')
>   File "./buildtools/wafsamba/samba_utils.py", line 451, in RECURSE
>     return ctx.sub_config(relpath)
>   File "/opt/test/samba-4.6.4/third_party/waf/wafadmin/Configure.py",
> line 237, in sub_config
>     self.recurse(k, name='configure')
>   File "/opt/test/samba-4.6.4/third_party/waf/wafadmin/Utils.py",
> line 656, in recurse
>     f(self)
>   File "/opt/test/samba-4.6.4/third_party/waf/wafadmin/Utils.py",
> line 743, in wrap
>     ret = fun(k)
>   File
> "/opt/test/samba-4.6.4/lib/replace/../../buildtools/wafsamba/wscript",
> line 308, in configure conf.CHECK_UNAME()
>   File "./buildtools/wafsamba/samba_conftests.py", line 452, in
> CHECK_UNAME msg="Checking uname %s type" % v):
>   File "./buildtools/wafsamba/samba_autoconf.py", line 436, in
> CHECK_CODE define_ret=define_ret)
>   File "./buildtools/wafsamba/samba_conftests.py", line 52, in check
>     ret = self.run_c_code(*k, **kw)
>   File
> "/opt/test/samba-4.6.4/third_party/waf/wafadmin/Tools/config_c.py",
> line 575, in run_c_code proc = Utils.pproc.Popen([lastprog] + args,
> stdout=Utils.pproc.PIPE, stderr=Utils.pproc.PIPE)
>   File "/opt/usr/lib/python2.7/subprocess.py", line 390, in __init__
>     errread, errwrite)
>   File "/opt/usr/lib/python2.7/subprocess.py", line 1024, in
> _execute_child raise child_exception
> OSError: [Errno 2] No such file or directory
> 
 I am not an expert here, but there seems to be something wrong with
 your version of 'subprocess.py'.
I use a debian based distro and if I look at my version of
'subprocess.py', the line that is throwing the exception isn't 1024
(raise child_exception), it is 1335

Do you still have the symlink etc in place ?
Or to put it another way, try doing a clean OS install, then install
python 2.7 along with the other required packages to compile Samba and
then try ./configure again.

Rowland



More information about the samba mailing list