<div dir="ltr"><div> CC       mod_python_la-mod_python.lo<br>mod_python.c: In function ‘print_python_error’:<br>mod_python.c:107:66: error: implicit declaration of function ‘PyString_Check’; did you mean ‘PyMapping_Check’? [-Werror=implicit-function-declaration]<br>  if (pyType != NULL && (pyString=PyObject_Str(pyType))!=NULL && (PyString_Check(pyString))) {<br>                                                                  ^~~~~~~~~~~~~~<br>                                                                  PyMapping_Check<br>mod_python.c:108:18: error: implicit declaration of function ‘PyString_AsString’; did you mean ‘PyBytes_AsString’? [-Werror=implicit-function-declaration]<br>   strcat(buffer, PyString_AsString(pyString));<br>                  ^~~~~~~~~~~~~~~~~<br>                  PyBytes_AsString<br>mod_python.c:108:18: error: passing argument 2 of ‘strcat’ makes pointer from integer without a cast [-Werror=int-conversion]<br>   strcat(buffer, PyString_AsString(pyString));<br>                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~<br>In file included from /usr/include/python3.7m/Python.h:30,<br>                 from mod_python.c:35:<br>/usr/x86_64-linux-gnu/include/string.h:129:14: note: expected ‘const char * restrict’ but argument is of type ‘int’<br> extern char *strcat (char *__restrict __dest, const char *__restrict __src)<br>              ^~~~~~<br>mod_python.c:118:18: error: passing argument 2 of ‘strcat’ makes pointer from integer without a cast [-Werror=int-conversion]<br>   strcat(buffer, PyString_AsString(pyString));<br>                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~<br>In file included from /usr/include/python3.7m/Python.h:30,<br>                 from mod_python.c:35:<br>/usr/x86_64-linux-gnu/include/string.h:129:14: note: expected ‘const char * restrict’ but argument is of type ‘int’<br> extern char *strcat (char *__restrict __dest, const char *__restrict __src)<br>              ^~~~~~<br>mod_python.c:136:21: error: passing argument 2 of ‘strcat’ makes pointer from integer without a cast [-Werror=int-conversion]<br>      strcat(buffer, PyString_AsString(pyResult));<br>                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~<br>In file included from /usr/include/python3.7m/Python.h:30,<br>                 from mod_python.c:35:<br>/usr/x86_64-linux-gnu/include/string.h:129:14: note: expected ‘const char * restrict’ but argument is of type ‘int’<br> extern char *strcat (char *__restrict __dest, const char *__restrict __src)<br>              ^~~~~~<br>mod_python.c:153:40: error: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘int’ [-Werror=format=]<br>    sprintf((char*)sTemp, "\n\tFile: \"%s\", line %i, in %s",<br>                                       ~^<br>                                       %d<br>      PyString_AsString(pyTB->tb_frame->f_code->co_filename),<br>      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>mod_python.c:153:58: error: format ‘%s’ expects argument of type ‘char *’, but argument 5 has type ‘int’ [-Werror=format=]<br>    sprintf((char*)sTemp, "\n\tFile: \"%s\", line %i, in %s",<br>                                                         ~^<br>                                                         %d<br>mod_python.c:156:6:<br>      PyString_AsString(pyTB->tb_frame->f_code->co_name) );<br>      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>mod_python.c: In function ‘eval_some_python’:<br>mod_python.c:313:18: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]<br>    *str = strdup((char *) PyString_AsString(result));<br>                  ^<br>mod_python.c: In function ‘mod_python_shutdown’:<br>mod_python.c:608:2: error: ‘PyEval_AcquireLock’ is deprecated [-Werror=deprecated-declarations]<br>  PyEval_AcquireLock();<br>  ^~~~~~~~~~~~~~~~~~<br>In file included from /usr/include/python3.7m/Python.h:141,<br>                 from mod_python.c:35:<br>/usr/include/python3.7m/ceval.h:198:18: note: declared here<br> PyAPI_FUNC(void) PyEval_AcquireLock(void) Py_DEPRECATED(3.2);<br>                  ^~~~~~~~~~~~~~~~~~<br>mod_python.c:645:2: error: ‘PyEval_AcquireLock’ is deprecated [-Werror=deprecated-declarations]<br>  PyEval_AcquireLock();<br>  ^~~~~~~~~~~~~~~~~~<br>In file included from /usr/include/python3.7m/Python.h:141,<br>                 from mod_python.c:35:<br>/usr/include/python3.7m/ceval.h:198:18: note: declared here<br> PyAPI_FUNC(void) PyEval_AcquireLock(void) Py_DEPRECATED(3.2);<br>                  ^~~~~~~~~~~~~~~~~~<br>cc1: all warnings being treated as errors<br>make: *** [Makefile:743: mod_python_la-mod_python.lo] Error 1<br></div><div><br></div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">With Best Regards,<br>Girish Dharmaraj</div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 5, 2021 at 11:05 PM Amit Chaudhuri <<a href="mailto:amit.k.chaudhuri@gmail.com">amit.k.chaudhuri@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">You should probably post the output from the build.....<br>
<br>
On Fri, 5 Feb 2021 at 11:55, Giri <<a href="mailto:girish.dharmaraj@gmail.com" target="_blank">girish.dharmaraj@gmail.com</a>> wrote:<br>
><br>
> Hello Sir.<br>
><br>
> mod_python fails to build using the below version . Any ideas why that happen ?<br>
><br>
> Python Version<br>
><br>
> python -V<br>
> Python 3.7.3<br>
><br>
> Debian OS Version:<br>
><br>
> PRETTY_NAME="Debian GNU/Linux 10 (buster)"<br>
> NAME="Debian GNU/Linux"<br>
> VERSION_ID="10"<br>
> VERSION="10 (buster)"<br>
><br>
> With Best Regards,<br>
> Girish Dharmaraj<br>
> _________________________________________________________________________<br>
><br>
> The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
> Build your next product on our scalable cloud platform.<br>
><br>
> Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
><br>
> Professional FreeSWITCH Services<br>
> <a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
> <a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
><br>
> Official FreeSWITCH Sites<br>
> <a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
> <a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
> <a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
><br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div>