[Freeswitch-users] CentOS 5.x and Python 2.6: segmentation fault importing ESL

João Mesquita jmesquita at freeswitch.org
Fri Aug 13 09:53:15 PDT 2010


The flags must inserted on the makefile are the ones when you execute the
python-config script using the python2.6 binary.

If not, give me access and I will make the mods for you so you can learn.

Regards,
João Mesquita


On Thu, Aug 12, 2010 at 5:03 AM, Neil Patel <neilp at cs.stanford.edu> wrote:

> Hi João,
>
> I am still not able to get it to compile for 2.6.
>
> By 'path' I assume you mean whatever version /usr/bin/python points to? I
> tried aliasing that with 2.6, it still didn't work. Note that it's not
> recommended to replace 2.6 with 2.4 on CentOS, so I've installed it in
> parallel.
>
> How exactly do I modify python-config? I tried setting the first line to
> '#! /usr/bin/python2.6', but that didn't work. Also tried changed the
> 'pyver' variable to '2.6', but then I get a compilation error saying that
> lib is not found.
>
> Thanks,
> Neil
>
> 2010/8/11 João Mesquita <jmesquita at freeswitch.org>
>
>> Neil, that's because ESL is being compiled against 2.4 and not 2.6. It
>> will use whatever is set on your path.
>>
>> You don't have to change anything on SWIG. You only have to change what is
>> being generated by the python-config script located in
>> ${SRC}/libs/esl/python
>>
>> Hope that helps.
>>
>> João Mesquita
>>
>>
>> On Tue, Aug 10, 2010 at 4:12 AM, Neil Patel <neilp at cs.stanford.edu>wrote:
>>
>>> Hi All,
>>>
>>> I am using Python 2.6 on my CentOS installation, installed in parallel to
>>> the standard Python 2.4. I've compiled FS's python ESL module using 'make
>>> pymod', but the ESL python module causes a segfault when I try to import it
>>> in Python 2.6 (imports fine in 2.4). I'm guessing this is because the ESL
>>> module was compiled for Python 2.4. How do I change the ESL config/makefiles
>>> to compile for 2.6? I'm not familiar with SWIG, is there some configuration
>>> I need to change with it to use python2.6 executable?
>>>
>>> Thanks,
>>> Neil
>>>
>>> _______________________________________________
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>>
>>>
>>
>> _______________________________________________
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100813/64ae0464/attachment.html 


More information about the FreeSWITCH-users mailing list