<DIV> I install freeradius-2.1.3 on redhat9, the python version is 2.2</DIV>
<DIV>When I make the freeradius, it reports many error in rlm_python.c file</DIV>
<DIV> </DIV>
<DIV>I paste the error information below</DIV>
<DIV>rlm_python.c: In function `python_error':<BR>rlm_python.c:163: `PyGILState_STATE' undeclared (first use in this function)<BR>rlm_python.c:163: (Each undeclared identifier is reported only once<BR>rlm_python.c:163: for each function it appears in.)<BR>rlm_python.c:163: parse error before "__gstate"<BR>rlm_python.c:181: warning: implicit declaration of function `PyGILState_Release'<BR>rlm_python.c:181: `__gstate' undeclared (first use in this function)<BR>rlm_python.c: In function `python_init':<BR>rlm_python.c:201: warning: passing arg 2 of `PyModule_AddIntConstant' discards qualifiers from pointer target type<BR>rlm_python.c: In function `python_function':<BR>rlm_python.c:338: `PyGILState_STATE' undeclared (first use in this function)<BR>rlm_python.c:338: parse error before "gstate"<BR>rlm_python.c:361: `gstate' undeclared (first use in this function)<BR>rlm_python.c:361: warning: implicit declaration of function `PyGILState_Ensure'<BR>rlm_python.c: In function `python_load_function':<BR>rlm_python.c:470: `PyGILState_STATE' undeclared (first use in this function)<BR>rlm_python.c:470: parse error before "gstate"<BR>rlm_python.c:472: `gstate' undeclared (first use in this function)<BR>rlm_python.c: In function `python_objclear':<BR>rlm_python.c:508: `PyGILState_STATE' undeclared (first use in this function)<BR>rlm_python.c:508: parse error before "__gstate"</DIV>
<DIV> </DIV>
<DIV>Is my python version too old ?</DIV><br><!-- footer --><br><hr/>
<a href="http://www.yeah.net">网易免费邮,全球最大的中文免费邮箱</a>