免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2403 | 回复: 0
打印 上一主题 下一主题

PyGILState_STATE undeclared 错误 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-12-10 14:59 |只看该作者 |倒序浏览
我在编译802.1x认证服务器freeradius-2.1.3的时候,里面要编译一个python的程序,文件名为rlm_python.c,出现了很多变量未声明的错误。此文件引入了#include <Python.h>文件
python用的是redhat9自带的python-2.2,不知是不是版本太低了。

那位帮忙看一下,错误如下,

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"
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP