<div dir="ltr">     Hi,<div style>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 style><br></div><div style><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 style>In the config.log this is noted.</div><div style><br></div><div style>configure:23419: error: Your python lacks threads support, can not build mod_python<br></div><div style><br></div><div style>
Which refers to this check:</div><div style><br></div><div style><div>if test &quot;$python_has_threads&quot; = &quot;no&quot;; then</div><div>                                if test &quot;$with_python&quot; = &quot;try&quot;; then :</div>
<div>  { $as_echo &quot;$as_me:${as_lineno-$LINENO}: WARNING: Your python lacks threads support, can not build mod_python&quot; &gt;&amp;5</div><div>$as_echo &quot;$as_me: WARNING: Your python lacks threads support, can not build mod_python&quot; &gt;&amp;2;}</div>
<div>else</div><div>  as_fn_error $? &quot;Your python lacks threads support, can not build mod_python&quot; &quot;$LINENO&quot; 5</div><div><br></div><div style>I verified that my system python was compiled with thread support through the sysconfig module.</div>
<div style><br></div><div style><div>CONFIG_ARGS &#39;--with-threads&#39; &#39;--enable-unicode=ucs4&#39; &#39;--enable-ipv6&#39; &#39;--prefix=/usr/local&#39; &#39;--mandir=/usr/local/man&#39; &#39;--infodir=/usr/local/info/&#39; &#39;--build=amd64-portbld-freebsd10.0&#39; &#39;build_alias=amd64-portbld-freebsd10.0&#39; &#39;CC=cc&#39; &#39;CFLAGS=-O2 -pipe  -fno-strict-aliasing&#39; &#39;LDFLAGS= -pthread&#39; &#39;CPPFLAGS=&#39; &#39;CPP=cpp&#39;</div>
<div><br></div></div><div><br></div><div style>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 style><br></div><div style><div>Compiling freeswitch_python.cpp...</div><div>cc1plus: error: unrecognized command line option &quot;-Wno-unused-result&quot;</div><div>gmake[1]: *** [freeswitch_python.o] Error 1</div>
<div>gmake: *** [all] Error 1</div></div><div><br></div><div style>Which makes me think that this may be a compiler issue. I am using FreeBSD 10.0 and </div><div style>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 style><br></div><div style><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 style>Any ideas on what the cause could be, or possible fix? Any help would be appreciated.</div>
<div style><br></div><div style>Derrick</div></div><div><br></div><div><br></div></div><div style><br></div><div style><br></div><div style><br></div></div></div>