[Samba] Need help Compiling Samba

Rowland penny rpenny at samba.org
Sun Jul 3 07:04:41 UTC 2016


On 02/07/16 23:47, TM wrote:
> Hi Rowland,
>
> I have attached the config.log.
>
> Thanks,
> Tony
>

The OP set me his config.log and I believe this is the relevant part:

<==
[1/2] Compiling test.c
In file included from /opt/include/python2.7/Python.h:44,
                  from ../test.c:2:
/usr/include/unistd.h:935: error: parse error before '[' token
/usr/include/unistd.h:936: error: parse error before 'rid_t'
['/usr/bin/gcc', '-MD', '-fno-strict-aliasing', '-I/usr/local/include', 
'-I/opt/include/python2.7', '-D_SAMBA_BUILD_=4', '-DHAVE_CONFIG_H=1', 
'-D_ALL_SOURCE=1', '-D_GNU_SOURCE=1', '-D_XOPEN_SOURCE_EXTENDED=1', 
'../test.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

Not being a 'C' expert, not sure, but it appears that the python 
development package (python-devel ?) isn't installed.

Rowland




More information about the samba mailing list