python error in complie freeradius-2.1.3
I install freeradius-2.1.3 on redhat9, the python version is 2.2. When I make the freeradius, it reports many error in rlm_python.c file. I paste the error information below rlm_python.c: In function `python_error': rlm_python.c:163: `PyGILState_STATE' undeclared (first use in this function) rlm_python.c:163: (Each undeclared identifier is reported only once rlm_python.c:163: for each function it appears in.) rlm_python.c:163: parse error before "__gstate" rlm_python.c:181: warning: implicit declaration of function `PyGILState_Release' rlm_python.c:181: `__gstate' undeclared (first use in this function) rlm_python.c: In function `python_init': rlm_python.c:201: warning: passing arg 2 of `PyModule_AddIntConstant' discards qualifiers from pointer target type rlm_python.c: In function `python_function': rlm_python.c:338: `PyGILState_STATE' undeclared (first use in this function) rlm_python.c:338: parse error before "gstate" rlm_python.c:361: `gstate' undeclared (first use in this function) rlm_python.c:361: warning: implicit declaration of function `PyGILState_Ensure' rlm_python.c: In function `python_load_function': rlm_python.c:470: `PyGILState_STATE' undeclared (first use in this function) rlm_python.c:470: parse error before "gstate" rlm_python.c:472: `gstate' undeclared (first use in this function) rlm_python.c: In function `python_objclear': rlm_python.c:508: `PyGILState_STATE' undeclared (first use in this function) rlm_python.c:508: parse error before "__gstate" Is my python version too old ?
yes the python version is old use the latest python version i also faced the same problem :0) henry1412 <henry1412@163.com> Sent by: freeradius-users-bounces+nayan.gjain=lntinfotech.com@lists.freeradius.org 12/10/2008 12:18 PM Please respond to FreeRadius users mailing list <freeradius-users@lists.freeradius.org> To freeradius-users@lists.freeradius.org cc Subject python error in complie freeradius-2.1.3 I install freeradius-2.1.3 on redhat9, the python version is 2.2 When I make the freeradius, it reports many error in rlm_python.c file I paste the error information below rlm_python.c: In function `python_error': rlm_python.c:163: `PyGILState_STATE' undeclared (first use in this function) rlm_python.c:163: (Each undeclared identifier is reported only once rlm_python.c:163: for each function it appears in.) rlm_python.c:163: parse error before "__gstate" rlm_python.c:181: warning: implicit declaration of function `PyGILState_Release' rlm_python.c:181: `__gstate' undeclared (first use in this function) rlm_python.c: In function `python_init': rlm_python.c:201: warning: passing arg 2 of `PyModule_AddIntConstant' discards qualifiers from pointer target type rlm_python.c: In function `python_function': rlm_python.c:338: `PyGILState_STATE' undeclared (first use in this function) rlm_python.c:338: parse error before "gstate" rlm_python.c:361: `gstate' undeclared (first use in this function) rlm_python.c:361: warning: implicit declaration of function `PyGILState_Ensure' rlm_python.c: In function `python_load_function': rlm_python.c:470: `PyGILState_STATE' undeclared (first use in this function) rlm_python.c:470: parse error before "gstate" rlm_python.c:472: `gstate' undeclared (first use in this function) rlm_python.c: In function `python_objclear': rlm_python.c:508: `PyGILState_STATE' undeclared (first use in this function) rlm_python.c:508: parse error before "__gstate" Is my python version too old ? 网易免费邮,全球最大的中文免费邮箱 ______________________________________________________________________- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html ______________________________________________________________________
henry1412 wrote:
I install freeradius-2.1.3 on redhat9, the python version is 2.2
Is my python version too old ? As was stated numerous times, all your software versions are old and you should upgrade to current versions. RedHat 9 and all the software which came with it is 5 years old. The follow on to RedHat 9 is Fedora and we're already up to the 10th release of Fedora. Please visit www.fedoraproject.org, download the current version of Fedora and install it. I would suggest you don't bother the list with further questions until you're running current versions of all the software components.
-- John Dennis <jdennis@redhat.com>
participants (3)
-
henry1412 -
John Dennis -
Nayan Gjain