Check Config.log, it tries building a simple c program to see if <span style="font-family:'.HelveticaNeueUI';font-size:14px;line-height:18px;white-space:nowrap">pythread_init_thread exists. Any build failure will detect 'no' so yes could be an issue using clang on freebsd<span></span></span><br>
<br>On Wednesday, June 12, 2013, Brian Foster wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Which version of FS are you currently running?</p>
<p dir="ltr">- BDF</p>
<div class="gmail_quote">On Jun 12, 2013 12:27 AM, "derrick edwards" <<a href="javascript:_e({}, 'cvml', 'dantavious313@gmail.com');" target="_blank">dantavious313@gmail.com</a>> wrote:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"> Hi,<div>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.</div>
<div><br></div><div><div>checking for python... /usr/local/bin/python</div><div>checking python version... 2.7.5</div><div>checking for python distutils... yes</div><div>checking location of site-packages... /usr/local/lib/python2.7/site-packages</div>
<div>checking python libdir... /usr/local/lib</div><div>checking for main in -lpython2.7... yes</div><div>checking for PyThread_init_thread... no</div><div>configure: error: Your python lacks threads support, can not build mod_python</div>
<div><br></div><div>In the config.log this is noted.</div><div><br></div><div>configure:23419: error: Your python lacks threads support, can not build mod_python<br></div><div><br></div><div>
Which refers to this check:</div><div><br></div><div><div>if test "$python_has_threads" = "no"; then</div><div> if test "$with_python" = "try"; then :</div>
<div> { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your python lacks threads support, can not build mod_python" >&5</div><div>$as_echo "$as_me: WARNING: Your python lacks threads support, can not build mod_python" >&2;}</div>
<div>else</div><div> as_fn_error $? "Your python lacks threads support, can not build mod_python" "$LINENO" 5</div><div><br></div><div>I verified that my system python was compiled with thread support through the sysconfig module.</div>
<div><br></div><div><div>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'</div>
<div><br></div></div><div><br></div><div>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: </div>
<div><br></div><div><div>Compiling freeswitch_python.cpp...</div><div>cc1plus: error: unrecognized command line option "-Wno-unused-result"</div><div>gmake[1]: *** [freeswitch_python.o] Error 1</div>
<div>gmake: *** [all] Error 1</div></div><div><br></div><div>Which makes me think that this may be a compiler issue. I am using FreeBSD 10.0 and </div><div>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. <br>
</div><div><br></div><div><div>checking for python... /usr/local/bin/python3.3</div><div>checking python version... 3.3.2</div><div>checking for python distutils... yes</div><div>checking location of site-packages... /usr/local/lib/python3.3/site-packages</div>
<div>checking python libdir... /usr/local/lib</div><div>checking for main in -lpython3.3... no</div><div>configure: error: python3.3 is unusable</div><div><br></div><div>Any ideas on what the cause could be, or possible fix? Any help would be appreciated.</div>
<div><br></div><div>Derrick</div></div><div><br></div><div><br></div></div><div><br></div><div><br></div><div><br></div></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="javascript:_e({}, 'cvml', 'consulting@freeswitch.org');" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="javascript:_e({}, 'cvml', 'FreeSWITCH-users@lists.freeswitch.org');" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div>
</blockquote>