Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Mod Python - Failing to Compile


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
girish.dharmaraj at gm...
Guest





PostPosted: Fri Feb 05, 2021 6:42 am    Post subject: [Freeswitch-users] Mod Python - Failing to Compile Reply with quote

Hello Sir.

mod_python fails to build using the below version . Any ideas why that happen ?



Python Version


python -V
Python 3.7.3



Debian OS Version:


PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"

With Best Regards,
Girish Dharmaraj
Back to top
amit.k.chaudhuri at gm...
Guest





PostPosted: Fri Feb 05, 2021 10:42 am    Post subject: [Freeswitch-users] Mod Python - Failing to Compile Reply with quote

You should probably post the output from the build.....

On Fri, 5 Feb 2021 at 11:55, Giri <girish.dharmaraj@gmail.com> wrote:
Quote:

Hello Sir.

mod_python fails to build using the below version . Any ideas why that happen ?

Python Version

python -V
Python 3.7.3

Debian OS Version:

PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"

With Best Regards,
Girish Dharmaraj
_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com

_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
Back to top
girish.dharmaraj at gm...
Guest





PostPosted: Fri Feb 05, 2021 10:51 am    Post subject: [Freeswitch-users] Mod Python - Failing to Compile Reply with quote

 CC       mod_python_la-mod_python.lo
mod_python.c: In function ‘print_python_error’:
mod_python.c:107:66: error: implicit declaration of function ‘PyString_Check’; did you mean ‘PyMapping_Check’? [-Werror=implicit-function-declaration]
  if (pyType != NULL && (pyString=PyObject_Str(pyType))!=NULL && (PyString_Check(pyString))) {
                                                                  ^~~~~~~~~~~~~~
                                                                  PyMapping_Check
mod_python.c:108:18: error: implicit declaration of function ‘PyString_AsString’; did you mean ‘PyBytes_AsString’? [-Werror=implicit-function-declaration]
   strcat(buffer, PyString_AsString(pyString));
                  ^~~~~~~~~~~~~~~~~
                  PyBytes_AsString
mod_python.c:108:18: error: passing argument 2 of ‘strcat’ makes pointer from integer without a cast [-Werror=int-conversion]
   strcat(buffer, PyString_AsString(pyString));
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.7m/Python.h:30,
                 from mod_python.c:35:
/usr/x86_64-linux-gnu/include/string.h:129:14: note: expected ‘const char * restrict’ but argument is of type ‘int’
 extern char *strcat (char *__restrict __dest, const char *__restrict __src)
              ^~~~~~
mod_python.c:118:18: error: passing argument 2 of ‘strcat’ makes pointer from integer without a cast [-Werror=int-conversion]
   strcat(buffer, PyString_AsString(pyString));
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.7m/Python.h:30,
                 from mod_python.c:35:
/usr/x86_64-linux-gnu/include/string.h:129:14: note: expected ‘const char * restrict’ but argument is of type ‘int’
 extern char *strcat (char *__restrict __dest, const char *__restrict __src)
              ^~~~~~
mod_python.c:136:21: error: passing argument 2 of ‘strcat’ makes pointer from integer without a cast [-Werror=int-conversion]
      strcat(buffer, PyString_AsString(pyResult));
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.7m/Python.h:30,
                 from mod_python.c:35:
/usr/x86_64-linux-gnu/include/string.h:129:14: note: expected ‘const char * restrict’ but argument is of type ‘int’
 extern char *strcat (char *__restrict __dest, const char *__restrict __src)
              ^~~~~~
mod_python.c:153:40: error: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘int’ [-Werror=format=]
    sprintf((char*)sTemp, "\n\tFile: \"%s\", line %i, in %s",
                                       ~^
                                       %d
      PyString_AsString(pyTB->tb_frame->f_code->co_filename),
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mod_python.c:153:58: error: format ‘%s’ expects argument of type ‘char *’, but argument 5 has type ‘int’ [-Werror=format=]
    sprintf((char*)sTemp, "\n\tFile: \"%s\", line %i, in %s",
                                                         ~^
                                                         %d
mod_python.c:156:6:
      PyString_AsString(pyTB->tb_frame->f_code->co_name) );
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mod_python.c: In function ‘eval_some_python’:
mod_python.c:313:18: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
    *str = strdup((char *) PyString_AsString(result));
                  ^
mod_python.c: In function ‘mod_python_shutdown’:
mod_python.c:608:2: error: ‘PyEval_AcquireLock’ is deprecated [-Werror=deprecated-declarations]
  PyEval_AcquireLock();
  ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.7m/Python.h:141,
                 from mod_python.c:35:
/usr/include/python3.7m/ceval.h:198:18: note: declared here
 PyAPI_FUNC(void) PyEval_AcquireLock(void) Py_DEPRECATED(3.2);
                  ^~~~~~~~~~~~~~~~~~
mod_python.c:645:2: error: ‘PyEval_AcquireLock’ is deprecated [-Werror=deprecated-declarations]
  PyEval_AcquireLock();
  ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.7m/Python.h:141,
                 from mod_python.c:35:
/usr/include/python3.7m/ceval.h:198:18: note: declared here
 PyAPI_FUNC(void) PyEval_AcquireLock(void) Py_DEPRECATED(3.2);
                  ^~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [Makefile:743: mod_python_la-mod_python.lo] Error 1



With Best Regards,
Girish Dharmaraj




On Fri, Feb 5, 2021 at 11:05 PM Amit Chaudhuri <amit.k.chaudhuri@gmail.com (amit.k.chaudhuri@gmail.com)> wrote:

Quote:
You should probably post the output from the build.....

On Fri, 5 Feb 2021 at 11:55, Giri <girish.dharmaraj@gmail.com (girish.dharmaraj@gmail.com)> wrote:
Quote:

Hello Sir.

mod_python fails to build using the below version . Any ideas why that happen ?

Python Version

python -V
Python 3.7.3

Debian OS Version:

PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"

With Best Regards,
Girish Dharmaraj
_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com

_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
Back to top
amit.k.chaudhuri at gm...
Guest





PostPosted: Fri Feb 05, 2021 12:52 pm    Post subject: [Freeswitch-users] Mod Python - Failing to Compile Reply with quote

I'm not into python in a serious way but in general terms "implicit
declaration of function ‘PyString_Check’; " would suggest that the
compiler is looking for that function and cannot find it. Perhaps your
system is missing the provider of that function. I would start by
trying to find out where that is defined (i.e. provided) and whether
the provider is on your system. If it *is* on your system, is it in
the place that the build system is looking?

On Fri, 5 Feb 2021 at 15:42, Giri <girish.dharmaraj@gmail.com> wrote:
Quote:

CC mod_python_la-mod_python.lo
mod_python.c: In function ‘print_python_error’:
mod_python.c:107:66: error: implicit declaration of function ‘PyString_Check’; did you mean ‘PyMapping_Check’? [-Werror=implicit-function-declaration]
if (pyType != NULL && (pyString=PyObject_Str(pyType))!=NULL && (PyString_Check(pyString))) {
^~~~~~~~~~~~~~
PyMapping_Check
mod_python.c:108:18: error: implicit declaration of function ‘PyString_AsString’; did you mean ‘PyBytes_AsString’? [-Werror=implicit-function-declaration]
strcat(buffer, PyString_AsString(pyString));
^~~~~~~~~~~~~~~~~
PyBytes_AsString
mod_python.c:108:18: error: passing argument 2 of ‘strcat’ makes pointer from integer without a cast [-Werror=int-conversion]
strcat(buffer, PyString_AsString(pyString));
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.7m/Python.h:30,
from mod_python.c:35:
/usr/x86_64-linux-gnu/include/string.h:129:14: note: expected ‘const char * restrict’ but argument is of type ‘int’
extern char *strcat (char *__restrict __dest, const char *__restrict __src)
^~~~~~
mod_python.c:118:18: error: passing argument 2 of ‘strcat’ makes pointer from integer without a cast [-Werror=int-conversion]
strcat(buffer, PyString_AsString(pyString));
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.7m/Python.h:30,
from mod_python.c:35:
/usr/x86_64-linux-gnu/include/string.h:129:14: note: expected ‘const char * restrict’ but argument is of type ‘int’
extern char *strcat (char *__restrict __dest, const char *__restrict __src)
^~~~~~
mod_python.c:136:21: error: passing argument 2 of ‘strcat’ makes pointer from integer without a cast [-Werror=int-conversion]
strcat(buffer, PyString_AsString(pyResult));
^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.7m/Python.h:30,
from mod_python.c:35:
/usr/x86_64-linux-gnu/include/string.h:129:14: note: expected ‘const char * restrict’ but argument is of type ‘int’
extern char *strcat (char *__restrict __dest, const char *__restrict __src)
^~~~~~
mod_python.c:153:40: error: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘int’ [-Werror=format=]
sprintf((char*)sTemp, "\n\tFile: \"%s\", line %i, in %s",
~^
%d
PyString_AsString(pyTB->tb_frame->f_code->co_filename),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mod_python.c:153:58: error: format ‘%s’ expects argument of type ‘char *’, but argument 5 has type ‘int’ [-Werror=format=]
sprintf((char*)sTemp, "\n\tFile: \"%s\", line %i, in %s",
~^
%d
mod_python.c:156:6:
PyString_AsString(pyTB->tb_frame->f_code->co_name) );
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mod_python.c: In function ‘eval_some_python’:
mod_python.c:313:18: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
*str = strdup((char *) PyString_AsString(result));
^
mod_python.c: In function ‘mod_python_shutdown’:
mod_python.c:608:2: error: ‘PyEval_AcquireLock’ is deprecated [-Werror=deprecated-declarations]
PyEval_AcquireLock();
^~~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.7m/Python.h:141,
from mod_python.c:35:
/usr/include/python3.7m/ceval.h:198:18: note: declared here
PyAPI_FUNC(void) PyEval_AcquireLock(void) Py_DEPRECATED(3.2);
^~~~~~~~~~~~~~~~~~
mod_python.c:645:2: error: ‘PyEval_AcquireLock’ is deprecated [-Werror=deprecated-declarations]
PyEval_AcquireLock();
^~~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.7m/Python.h:141,
from mod_python.c:35:
/usr/include/python3.7m/ceval.h:198:18: note: declared here
PyAPI_FUNC(void) PyEval_AcquireLock(void) Py_DEPRECATED(3.2);
^~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [Makefile:743: mod_python_la-mod_python.lo] Error 1


With Best Regards,
Girish Dharmaraj


On Fri, Feb 5, 2021 at 11:05 PM Amit Chaudhuri <amit.k.chaudhuri@gmail.com> wrote:
Quote:

You should probably post the output from the build.....

On Fri, 5 Feb 2021 at 11:55, Giri <girish.dharmaraj@gmail.com> wrote:
Quote:

Hello Sir.

mod_python fails to build using the below version . Any ideas why that happen ?

Python Version

python -V
Python 3.7.3

Debian OS Version:

PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"

With Best Regards,
Girish Dharmaraj
_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com

_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com

_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com

_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services