[Freeswitch-users] MOD_PYTHON Compile Problems
Steven Ayre
steveayre at gmail.com
Wed Jun 12 10:53:14 MSD 2013
Check Config.log, it tries building a simple c program to see if
pythread_init_thread
exists. Any build failure will detect 'no' so yes could be an issue using
clang on freebsd
On Wednesday, June 12, 2013, Brian Foster wrote:
> Which version of FS are you currently running?
>
> - BDF
> On Jun 12, 2013 12:27 AM, "derrick edwards" <dantavious313 at gmail.com<javascript:_e({}, 'cvml', 'dantavious313 at gmail.com');>>
> wrote:
>
>> Hi,
>> I continue to have problems compiling mod_python, even though FS and
>> other modules compile and work fine with FreeBSD Current. When compiling
>> mod_python I get the following error during configure.
>>
>> checking for python... /usr/local/bin/python
>> checking python version... 2.7.5
>> checking for python distutils... yes
>> checking location of site-packages...
>> /usr/local/lib/python2.7/site-packages
>> checking python libdir... /usr/local/lib
>> checking for main in -lpython2.7... yes
>> checking for PyThread_init_thread... no
>> configure: error: Your python lacks threads support, can not build
>> mod_python
>>
>> In the config.log this is noted.
>>
>> configure:23419: error: Your python lacks threads support, can not build
>> mod_python
>>
>> Which refers to this check:
>>
>> if test "$python_has_threads" = "no"; then
>> if test "$with_python" = "try"; then :
>> { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your python lacks
>> threads support, can not build mod_python" >&5
>> $as_echo "$as_me: WARNING: Your python lacks threads support, can not
>> build mod_python" >&2;}
>> else
>> as_fn_error $? "Your python lacks threads support, can not build
>> mod_python" "$LINENO" 5
>>
>> I verified that my system python was compiled with thread support through
>> the sysconfig module.
>>
>> CONFIG_ARGS '--with-threads' '--enable-unicode=ucs4' '--enable-ipv6'
>> '--prefix=/usr/local' '--mandir=/usr/local/man'
>> '--infodir=/usr/local/info/' '--build=amd64-portbld-freebsd10.0'
>> 'build_alias=amd64-portbld-freebsd10.0' 'CC=cc' 'CFLAGS=-O2 -pipe
>> -fno-strict-aliasing' 'LDFLAGS= -pthread' 'CPPFLAGS=' 'CPP=cpp'
>>
>>
>> For testing, I have edited the configure file so that it could complete
>> that process however, I still can not build the actual module. I get the
>> following error message:
>>
>> Compiling freeswitch_python.cpp...
>> cc1plus: error: unrecognized command line option "-Wno-unused-result"
>> gmake[1]: *** [freeswitch_python.o] Error 1
>> gmake: *** [all] Error 1
>>
>> Which makes me think that this may be a compiler issue. I am using
>> FreeBSD 10.0 and
>> kern.compiler_version: FreeBSD clang version 3.3 (trunk 178860) 20130405.
>> Attempting to use a different python version during the configure phase
>> gives even weirder responses.
>>
>> checking for python... /usr/local/bin/python3.3
>> checking python version... 3.3.2
>> checking for python distutils... yes
>> checking location of site-packages...
>> /usr/local/lib/python3.3/site-packages
>> checking python libdir... /usr/local/lib
>> checking for main in -lpython3.3... no
>> configure: error: python3.3 is unusable
>>
>> Any ideas on what the cause could be, or possible fix? Any help would be
>> appreciated.
>>
>> Derrick
>>
>>
>>
>>
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org <javascript:_e({}, 'cvml',
>> 'consulting at freeswitch.org');>
>> http://www.freeswitchsolutions.com
>>
>>
>>
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org <javascript:_e({}, 'cvml',
>> '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/20130612/ee0b91c5/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list