samba4 compile fails on centos5.5

Matthias Dieter Wallnöfer mdw at samba.org
Mon Jan 24 00:57:49 MST 2011


The python 2.4/2.5 compatiblity code is missing. Attached a patch which 
should fix this.

Cheers,
Matthias

Taylor, Jonn wrote:
> Unable to compile current git on centos 5.5.
>
> Jonn
>
> [ 815/2402] Compiling auth/pyauth.c
> ../auth/pyauth.c:93: warning: initialization discards qualifiers from
> pointer target type
> ../auth/pyauth.c: In function ‘py_system_session’:
> ../auth/pyauth.c:110: warning: passing argument 2 of ‘PyArg_ParseTuple’
> discards qualifiers from pointer target type
> ../auth/pyauth.c: In function ‘py_admin_session’:
> ../auth/pyauth.c:142: warning: passing argument 2 of ‘PyArg_ParseTuple’
> discards qualifiers from pointer target type
> ../auth/pyauth.c: In function ‘py_user_session’:
> ../auth/pyauth.c:189: warning: passing argument 3 of
> ‘PyArg_ParseTupleAndKeywords’ discards qualifiers from pointer target type
> ../auth/pyauth.c:220: warning: passing argument 1 of ‘Py_BuildValue’
> discards qualifiers from pointer target type
> ../auth/pyauth.c: In function ‘PyList_AsStringList’:
> ../auth/pyauth.c:234: error: ‘Py_ssize_t’ undeclared (first use in this
> function)
> ../auth/pyauth.c:234: error: (Each undeclared identifier is reported
> only once
> ../auth/pyauth.c:234: error: for each function it appears in.)
> ../auth/pyauth.c:234: error: expected ‘;’ before ‘i’
> ../auth/pyauth.c:245: error: ‘i’ undeclared (first use in this function)
> ../auth/pyauth.c: In function ‘py_auth_context_new’:
> ../auth/pyauth.c:283: warning: passing argument 3 of
> ‘PyArg_ParseTupleAndKeywords’ discards qualifiers from pointer target type
> ../auth/pyauth.c:327: warning: passing argument 1 of ‘Py_BuildValue’
> discards qualifiers from pointer target type
> ../auth/pyauth.c: At top level:
> ../auth/pyauth.c:350: warning: initialization discards qualifiers from
> pointer target type
> ../auth/pyauth.c:358: warning: initialization discards qualifiers from
> pointer target type
> ../auth/pyauth.c:359: warning: initialization discards qualifiers from
> pointer target type
> ../auth/pyauth.c:360: warning: initialization discards qualifiers from
> pointer target type
> ../auth/pyauth.c:365: warning: no previous prototype for ‘initauth’
> ../auth/pyauth.c: In function ‘initauth’:
> ../auth/pyauth.c:382: warning: passing argument 1 of ‘Py_InitModule4’
> discards qualifiers from pointer target type
> ../auth/pyauth.c:382: warning: passing argument 3 of ‘Py_InitModule4’
> discards qualifiers from pointer target type
> ../auth/pyauth.c:388: warning: passing argument 2 of
> ‘PyModule_AddObject’ discards qualifiers from pointer target type
> ../auth/pyauth.c:390: warning: passing argument 2 of
> ‘PyModule_AddObject’ discards qualifiers from pointer target type
> ../auth/pyauth.c:393: warning: passing argument 2 of
> ‘PyModule_AddObject’ discards qualifiers from pointer target type
> ../auth/pyauth.c:394: warning: passing argument 2 of
> ‘PyModule_AddObject’ discards qualifiers from pointer target type
> ../auth/pyauth.c:395: warning: passing argument 2 of
> ‘PyModule_AddObject’ discards qualifiers from pointer target type
> Waf: Leaving directory `/usr/src/samba-master/source4/bin'
> Build failed: ->  task failed (err #1):
> {task: cc pyauth.c ->  pyauth_11.o}
> make: *** [all] Error 1
>
>
>
>
>    

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20110124/b81dd298/attachment.ksh>


More information about the samba-technical mailing list