[sr-dev] [kamailio/kamailio] failed app_python3 packaging (#1959)

sergey-safarov notifications at github.com
Sat May 18 19:47:14 CEST 2019


### Description

I tried package app_python3 and found this error on all dist where python3 is exist
```
[  419s] CC (gcc) [M app_python.so]		python_support.o
[  419s] python_support.c:22:20: fatal error: Python.h: No such file or directory
[  419s]  #include <Python.h>
[  419s]                     ^
[  419s] compilation terminated.
[  419s] make[2]: *** [python_support.o] Error 1
[  419s] make[1]: *** [modules] Error 1
[  419s] make[1]: Leaving directory `/home/abuild/rpmbuild/BUILD/kamailio-5.3.0-dev5/src'
[  419s] make: *** [every-module] Error 2
```
But `Python.h` is present in system.
Include dir and libsdir you can get using command `python3-config`. Like
```
# python3-config --includes
-I/usr/include/python3.7m -I/usr/include/python3.7m
# python3-config --libs
-lpython3.7m -lpthread -ldl  -lutil -lm 
```
### Possible Solutions

Update make files to use `python3-config`.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1959
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20190518/9808c2bc/attachment.html>


More information about the sr-dev mailing list