Python issue while building samba

Anoop Singh anoop.singh at celstream.com
Mon Sep 7 09:40:08 UTC 2015


Thanks a lot Uri. I will follow your instructions and let you know.

With Regards,
Anoop.

________________________________________
From: Uri Simchoni <urisimchoni at gmail.com>
Sent: Monday, September 7, 2015 2:52 PM
To: Anoop Singh
Cc: samba-technical at lists.samba.org; jra at samba.org
Subject: Re: Python issue while building samba

Obviously you are cross-compiling, but I don't know how "make -f
Android.cfg targets" relate to the samba build instructions for
cross-compiling, e.g.
https://wiki.samba.org/index.php/Waf#cross-compiling

Can you follow the samba build instructions without the enclosing
android makefile? (e.g. by settings environment variables that the
android build system sets e.g. CC, LD, ... and then manually running
configure, make, make install, with proper flags to configure)

HTH,
Uri.

On Mon, Sep 7, 2015 at 12:06 PM, Anoop Singh <anoop.singh at celstream.com> wrote:
> Hi Uri,
>
> Thanks a lot for the mail.
> I am building samba to use for android platform using the below mentioned command
> make -f Android.cfg targets
> I am compiling this on my unix machine which has the configuration as
> 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
>
> Please let me know if you see any issue.
>
> Thanks & regards,
> Anoop.
>
> ________________________________________
> From: Uri Simchoni <urisimchoni at gmail.com>
> Sent: Saturday, September 5, 2015 12:56 AM
> To: Anoop Singh
> Cc: samba-technical at lists.samba.org; jra at samba.org
> Subject: Re: Python issue while building samba
>
> It looks like you are cross-compiling (stack trace goes through
> samba_cross.py) and that the program configure is trying to run is not
> compatible with your system architecture (the Exec format error). What
> is your --cross-execute parameter? Can you run this program (the
> cross-execute emulator) from your shell?
>
> Uri
>
> On Fri, Sep 4, 2015 at 2:59 PM, Anoop Singh <anoop.singh at celstream.com> wrote:
>> 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.
>> -----------------------------------------------------------------------------------------------------------------------------
>
> -----------------------------------------------------------------------------------------------------------------------------
> 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.
> -----------------------------------------------------------------------------------------------------------------------------

-----------------------------------------------------------------------------------------------------------------------------
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