[Samba] Samba 4.1.3 native compile error mips (Could not find the python development headers)

Andrew Bartlett abartlet at samba.org
Tue Jan 14 06:00:53 MST 2014


On Mon, 2014-01-06 at 18:40 +0530, Redwood Hyd wrote:
> Hello All ,
> Someone  please help me resolve configure error with latest samba.  Because
> cross compile did not work so I am doing native compilation.
> 
> ./configure --prefix=/usr/lib/python2.6
> --includedir=/usr/include/python2.6/ --host=mips-linux
> --target=mips-linux
> 
> Checking for HAVE_IFACE_GETIFADDRS
>            : ok
> Checking for getpwnam_r
>            : ok
> Checking for getpwuid_r
>            : ok
> Checking for getpwent_r
>            : ok
> Checking for declaration of getpwent_r
>            : ok
> Checking C prototype for getpwent_r
>            : not found
> Checking for declaration of getgrent_r
>            : ok
> Checking C prototype for getgrent_r
>            : not found
> Checking C prototype for getpwent_r
>            : not found
> Checking C prototype for getgrent_r
>            : not found
> Checking for getgrouplist
>            : ok
> Checking for program perl
>            : /usr/bin/perl
> Checking for program xsltproc
>            : not found
> Checking for program python
>            : /usr/bin/python
> Checking for program python
>            : /usr/bin/python
> Checking for program python
>            : /usr/bin/python
> Checking for Python version >= 2.5.0
>            : ok 2.6.6
> Checking for library python2.6
>            : not found
> Checking for library python2.6
>            : not found
> Checking for library python26
>            : not found
> Checking for program python2.6-config
>            : /usr/bin/python2.6-config
> Checking for custom code
>            : Could not find the python development headers
> /root/samba-4.1.3/wscript:93: error: the configuration failed (see
> '/root/samba-4.1.3/bin/config.log')
> 
> from config.log
> ==============
> nt main()
> {
>    Py_Initialize();
>    Py_Finalize();
>    return 0;
> }
> 
> <==
> [1/2] Compiling ^[[32mtest.c^[[0m
> In file included from /usr/include/python2.6/Python.h:58:0,
>                  from ../test.c:2:
> /usr/include/python2.6/pyport.h:694:2: error: #error "LONG_BIT
> definition appearr
> s wrong for platform (bad gcc/glibc config?)."
> ['/usr/bin/gcc', '-MD', '-fno-strict--
> aliasing', '-I/usr/local/include', '-I/usr/include/python2.6',
> '-D_SAMBA_BUILD_==
> 4', '-DHAVE_CONFIG_H=1', '-D_GNU_SOURCE=1',
> '-D_XOPEN_SOURCE_EXTENDED=1', '../tee
> st.c', '-c', '-o', 'default/test_1.o']
> command returned 'Build failed:  -> task failed (err #1): \n\t{task:
> cc test.c --
> > test_1.o}'Could not find the python development headers

Please install the python development headers for your platform.

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




More information about the samba mailing list