Python issue while building samba

Anoop Singh anoop.singh at celstream.com
Fri Sep 4 11:59:34 UTC 2015


Hi Members,

I am getting this error while building samba on linux machine.

File "./buildtools/bin/waf", line 76, in <module>
    Scripting.prepare(t, cwd, VERSION, wafdir)
  File "/home/abcd/external/samba/buildtools/wafadmin/Scripting.py", line 145, in prepare
    prepare_impl(t, cwd, ver, wafdir)
  File "/home/abcd/external/samba/buildtools/wafadmin/Scripting.py", line 135, in prepare_impl
    main()
  File "/home/abcd/external/samba/wscript", line 299, in main
    wildcard_main(wildcard_cmd)
  File "./buildtools/wafsamba/samba_wildcard.py", line 110, in wildcard_main
    fun(ctx)
  File "/home/abcd/external/samba/buildtools/wafadmin/Scripting.py", line 241, in configure
    conf.sub_config([''])
  File "/home/abcd/external/samba/buildtools/wafadmin/Configure.py", line 237, in sub_config
    self.recurse(k, name='configure')
  File "/home/abcd/external/samba/buildtools/wafadmin/Utils.py", line 634, in recurse
    f(self)
  File "/home/abcd/external/samba/wscript", line 133, in configure
    conf.RECURSE('lib/ccan')
  File "./buildtools/wafsamba/samba_utils.py", line 469, in RECURSE
    return ctx.sub_config(relpath)
  File "/home/abcd/external/samba/buildtools/wafadmin/Configure.py", line 237, in sub_config
    self.recurse(k, name='configure')
  File "/home/abcd/external/samba/buildtools/wafadmin/Utils.py", line 634, in recurse
    f(self)
  File "/home/abcd/external/samba/lib/ccan/wscript", line 133, in configure
    define_name='SMALL_OFF_T')
  File "./buildtools/wafsamba/samba_conftests.py", line 52, in check
    ret = self.run_c_code(*k, **kw)
  File "/home/abcd/external/samba/buildtools/wafadmin/Tools/config_c.py", line 569, in run_c_code
    proc = Utils.pproc.Popen([lastprog] + args, stdout=Utils.pproc.PIPE, stderr=Utils.pproc.PIPE)
  File "./buildtools/wafsamba/samba_cross.py", line 100, in __init__
    real_Popen.__init__(*(obj, args), **kw)
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 8] Exec format error
make[1]: *** [/home/abcd/external/samba/samba-configured] Error 1


Here is the configuration of machine and python reported during the build

Checking for Python version >= 2.5.0                                                      : ok 2.7.6
Checking for library python2.7                                                                    : yes
Checking for program python2.7-config                                                  : not found
Checking for program python-config-2.7                                                : not found

Checking for program python                                                                     : /usr/bin/python
Checking for Python version >= 2.4.2                                                      : ok 2.7.6
Checking for python headers                                                                     : using cache

Checking build system                    : Linux Ubuntu14x64-PRJVM 3.16.0-30-generic #40~14.04.1-Ubuntu SMP Thu Jan 15 17:43:14 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Could anybody please help me to resolve this issue?

Thanks & regards,
Anoop.

-----------------------------------------------------------------------------------------------------------------------------
DISCLAIMER: This electronic message and any attachments to this electronic message is intended for the exclusive use of the addressee(s) named herein and may contain legally privileged and confidential information. It is the property of Celstream Technologies Private Limited. If you are not the intended recipient, you are hereby strictly notified not to copy, forward, distribute or use this message or any attachments thereto. If you have received this message in error, please delete it and all copies thereof, from your system and notify the sender at Celstream Technologies or administrator at celstream.com immediately.
-----------------------------------------------------------------------------------------------------------------------------


More information about the samba-technical mailing list