davama

fr_rlm_python_build_output

Jul 18th, 2022
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.29 KB | None | 0 0
  1. CC src/modules/rlm_preprocess/rlm_preprocess.c
  2. LINK build/lib/rlm_preprocess.la
  3. CC src/modules/rlm_python/rlm_python.c
  4. In file included from src/freeradius-devel/radiusd.h:38,
  5. from src/modules/rlm_python/rlm_python.c:33:
  6. src/modules/rlm_python/rlm_python.c: In function 'python_error_log':
  7. src/modules/rlm_python/rlm_python.c:229:26: warning: implicit declaration of function 'PyString_AsString' [-Wimplicit-function-declaration]
  8. 229 | ERROR("%s (%s)", PyString_AsString(p_str_1), PyString_AsString(p_str_2));
  9. | ^~~~~~~~~~~~~~~~~
  10. src/freeradius-devel/log.h:139:55: note: in definition of macro 'ERROR'
  11. 139 | #define ERROR(fmt, ...) radlog(L_ERR, fmt, ## __VA_ARGS__)
  12. | ^~~~~~~~~~~
  13. src/modules/rlm_python/rlm_python.c:229:15: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
  14. 229 | ERROR("%s (%s)", PyString_AsString(p_str_1), PyString_AsString(p_str_2));
  15. | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
  16. | |
  17. | int
  18. src/freeradius-devel/log.h:139:47: note: in definition of macro 'ERROR'
  19. 139 | #define ERROR(fmt, ...) radlog(L_ERR, fmt, ## __VA_ARGS__)
  20. | ^~~
  21. src/modules/rlm_python/rlm_python.c:229:17: note: format string is defined here
  22. 229 | ERROR("%s (%s)", PyString_AsString(p_str_1), PyString_AsString(p_str_2));
  23. | ~^
  24. | |
  25. | char *
  26. | %d
  27. In file included from src/freeradius-devel/radiusd.h:38,
  28. from src/modules/rlm_python/rlm_python.c:33:
  29. src/modules/rlm_python/rlm_python.c:229:15: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
  30. 229 | ERROR("%s (%s)", PyString_AsString(p_str_1), PyString_AsString(p_str_2));
  31. | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
  32. | |
  33. | int
  34. src/freeradius-devel/log.h:139:47: note: in definition of macro 'ERROR'
  35. 139 | #define ERROR(fmt, ...) radlog(L_ERR, fmt, ## __VA_ARGS__)
  36. | ^~~
  37. src/modules/rlm_python/rlm_python.c:229:21: note: format string is defined here
  38. 229 | ERROR("%s (%s)", PyString_AsString(p_str_1), PyString_AsString(p_str_2));
  39. | ~^
  40. | |
  41. | char *
  42. | %d
  43. In file included from src/freeradius-devel/radiusd.h:38,
  44. from src/modules/rlm_python/rlm_python.c:33:
  45. src/modules/rlm_python/rlm_python.c:238:31: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
  46. 238 | ERROR("[%ld] %s:%d at %s()",
  47. | ^~~~~~~~~~~~~~~~~~~~~
  48. 239 | fnum,
  49. 240 | PyString_AsString(cur_frame->f_code->co_filename),
  50. | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  51. | |
  52. | int
  53. src/freeradius-devel/log.h:139:47: note: in definition of macro 'ERROR'
  54. 139 | #define ERROR(fmt, ...) radlog(L_ERR, fmt, ## __VA_ARGS__)
  55. | ^~~
  56. src/modules/rlm_python/rlm_python.c:238:39: note: format string is defined here
  57. 238 | ERROR("[%ld] %s:%d at %s()",
  58. | ~^
  59. | |
  60. | char *
  61. | %d
  62. In file included from src/freeradius-devel/radiusd.h:38,
  63. from src/modules/rlm_python/rlm_python.c:33:
  64. src/modules/rlm_python/rlm_python.c:238:31: warning: format '%s' expects argument of type 'char *', but argument 6 has type 'int' [-Wformat=]
  65. 238 | ERROR("[%ld] %s:%d at %s()",
  66. | ^~~~~~~~~~~~~~~~~~~~~
  67. ......
  68. 242 | PyString_AsString(cur_frame->f_code->co_name)
  69. | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  70. | |
  71. | int
  72. src/freeradius-devel/log.h:139:47: note: in definition of macro 'ERROR'
  73. 139 | #define ERROR(fmt, ...) radlog(L_ERR, fmt, ## __VA_ARGS__)
  74. | ^~~
  75. src/modules/rlm_python/rlm_python.c:238:48: note: format string is defined here
  76. 238 | ERROR("[%ld] %s:%d at %s()",
  77. | ~^
  78. | |
  79. | char *
  80. | %d
  81. src/modules/rlm_python/rlm_python.c: In function 'mod_vptuple':
  82. src/modules/rlm_python/rlm_python.c:304:23: warning: implicit declaration of function 'PyString_CheckExact'; did you mean 'PyLong_CheckExact'? [-Wimplicit-function-declaration]
  83. 304 | if ((!PyString_CheckExact(pStr1)) || (!PyString_CheckExact(pStr2))) {
  84. | ^~~~~~~~~~~~~~~~~~~
  85. | PyLong_CheckExact
  86. src/modules/rlm_python/rlm_python.c:309:20: warning: assignment to 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  87. 309 | s1 = PyString_AsString(pStr1);
  88. | ^
  89. src/modules/rlm_python/rlm_python.c:310:20: warning: assignment to 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  90. 310 | s2 = PyString_AsString(pStr2);
  91. | ^
  92. src/modules/rlm_python/rlm_python.c:315:66: warning: passing argument 2 of 'fr_str2int' makes pointer from integer without a cast [-Wint-conversion]
  93. 315 | if (!(op = fr_str2int(fr_tokens, PyString_AsString(pOp), 0))) {
  94. | ^~~~~~~~~~~~~~~~~~~~~~
  95. | |
  96. | int
  97. In file included from src/freeradius-devel/libradius.h:88,
  98. from src/freeradius-devel/radiusd.h:29,
  99. from src/modules/rlm_python/rlm_python.c:33:
  100. src/freeradius-devel/token.h:81:57: note: expected 'const char *' but argument is of type 'int'
  101. 81 | int fr_str2int(FR_NAME_NUMBER const *table, char const *name, int def);
  102. | ~~~~~~~~~~~~^~~~
  103. In file included from src/freeradius-devel/radiusd.h:38,
  104. from src/modules/rlm_python/rlm_python.c:33:
  105. src/modules/rlm_python/rlm_python.c:316:47: warning: format '%s' expects argument of type 'char *', but argument 6 has type 'int' [-Wformat=]
  106. 316 | ERROR("%s - Invalid operator %s:%s %s %s, falling back to '='",
  107. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  108. 317 | funcname, list_name, s1, PyString_AsString(pOp), s2);
  109. | ~~~~~~~~~~~~~~~~~~~~~~
  110. | |
  111. | int
  112. src/freeradius-devel/log.h:139:47: note: in definition of macro 'ERROR'
  113. 139 | #define ERROR(fmt, ...) radlog(L_ERR, fmt, ## __VA_ARGS__)
  114. | ^~~
  115. src/modules/rlm_python/rlm_python.c:316:77: note: format string is defined here
  116. 316 | ERROR("%s - Invalid operator %s:%s %s %s, falling back to '='",
  117. | ~^
  118. | |
  119. | char *
  120. | %d
  121. src/modules/rlm_python/rlm_python.c:320:36: warning: implicit declaration of function 'PyInt_Check'; did you mean 'PySet_Check'? [-Wimplicit-function-declaration]
  122. 320 | } else if (PyInt_Check(pOp)) {
  123. | ^~~~~~~~~~~
  124. | PySet_Check
  125. src/modules/rlm_python/rlm_python.c:321:43: warning: implicit declaration of function 'PyInt_AsLong'; did you mean 'PyLong_AsLong'? [-Wimplicit-function-declaration]
  126. 321 | op = PyInt_AsLong(pOp);
  127. | ^~~~~~~~~~~~
  128. | PyLong_AsLong
  129. src/modules/rlm_python/rlm_python.c: In function 'mod_populate_vptuple':
  130. src/modules/rlm_python/rlm_python.c:384:24: warning: implicit declaration of function 'PyString_FromFormat'; did you mean 'PyBytes_FromFormat'? [-Wimplicit-function-declaration]
  131. 384 | pStr = PyString_FromFormat("%s:%d", vp->da->name, vp->tag);
  132. | ^~~~~~~~~~~~~~~~~~~
  133. | PyBytes_FromFormat
  134. src/modules/rlm_python/rlm_python.c:384:22: warning: assignment to 'PyObject *' {aka 'struct _object *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
  135. 384 | pStr = PyString_FromFormat("%s:%d", vp->da->name, vp->tag);
  136. | ^
  137. src/modules/rlm_python/rlm_python.c:386:24: warning: implicit declaration of function 'PyString_FromString'; did you mean 'PyLong_FromString'? [-Wimplicit-function-declaration]
  138. 386 | pStr = PyString_FromString(vp->da->name);
  139. | ^~~~~~~~~~~~~~~~~~~
  140. | PyLong_FromString
  141. src/modules/rlm_python/rlm_python.c:386:22: warning: assignment to 'PyObject *' {aka 'struct _object *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
  142. 386 | pStr = PyString_FromString(vp->da->name);
  143. | ^
  144. src/modules/rlm_python/rlm_python.c:395:14: warning: assignment to 'PyObject *' {aka 'struct _object *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
  145. 395 | pStr = PyString_FromString(buf);
  146. | ^
  147. src/modules/rlm_python/rlm_python.c: In function 'do_python_single':
  148. src/modules/rlm_python/rlm_python.c:546:21: warning: implicit declaration of function 'PyInt_CheckExact'; did you mean 'PyDict_CheckExact'? [-Wimplicit-function-declaration]
  149. 546 | if (PyInt_CheckExact(pRet)) ret = PyInt_AsLong(pRet);
  150. | ^~~~~~~~~~~~~~~~
  151. | PyDict_CheckExact
  152. src/modules/rlm_python/rlm_python.c: In function 'python_interpreter_free':
  153. src/modules/rlm_python/rlm_python.c:649:9: warning: 'PyEval_AcquireLock' is deprecated [-Wdeprecated-declarations]
  154. 649 | PyEval_AcquireLock();
  155. | ^~~~~~~~~~~~~~~~~~
  156. In file included from /usr/local/include/python3.9/Python.h:140,
  157. from src/modules/rlm_python/rlm_python.c:37:
  158. /usr/local/include/python3.9/ceval.h:135:37: note: declared here
  159. 135 | Py_DEPRECATED(3.2) PyAPI_FUNC(void) PyEval_AcquireLock(void);
  160. | ^~~~~~~~~~~~~~~~~~
  161. src/modules/rlm_python/rlm_python.c:652:9: warning: 'PyEval_ReleaseLock' is deprecated [-Wdeprecated-declarations]
  162. 652 | PyEval_ReleaseLock();
  163. | ^~~~~~~~~~~~~~~~~~
  164. In file included from /usr/local/include/python3.9/Python.h:140,
  165. from src/modules/rlm_python/rlm_python.c:37:
  166. /usr/local/include/python3.9/ceval.h:136:37: note: declared here
  167. 136 | Py_DEPRECATED(3.2) PyAPI_FUNC(void) PyEval_ReleaseLock(void);
  168. | ^~~~~~~~~~~~~~~~~~
  169. src/modules/rlm_python/rlm_python.c: In function 'python_parse_config':
  170. src/modules/rlm_python/rlm_python.c:886:30: warning: assignment to 'PyObject *' {aka 'struct _object *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
  171. 886 | pKey = PyString_FromString(key);
  172. | ^
  173. src/modules/rlm_python/rlm_python.c:909:30: warning: assignment to 'PyObject *' {aka 'struct _object *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
  174. 909 | pKey = PyString_FromString(key);
  175. | ^
  176. src/modules/rlm_python/rlm_python.c:910:32: warning: assignment to 'PyObject *' {aka 'struct _object *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
  177. 910 | pValue = PyString_FromString(value);
  178. | ^
  179. src/modules/rlm_python/rlm_python.c: In function 'python_interpreter_init':
  180. src/modules/rlm_python/rlm_python.c:1011:77: warning: passing argument 2 of 'Py_DecodeLocale' makes pointer from integer without a cast [-Wint-conversion]
  181. 1011 | inst->wide_name = Py_DecodeLocale(main_config.name, strlen(main_config.name));
  182. | ^~~~~~~~~~~~~~~~~~~~~~~~
  183. | |
  184. | size_t {aka long unsigned int}
  185. In file included from /usr/local/include/python3.9/Python.h:154,
  186. from src/modules/rlm_python/rlm_python.c:37:
  187. /usr/local/include/python3.9/fileutils.h:10:13: note: expected 'size_t *' {aka 'long unsigned int *'} but argument is of type 'size_t' {aka 'long unsigned int'}
  188. 10 | size_t *size);
  189. | ~~~~~~~~^~~~
  190. src/modules/rlm_python/rlm_python.c:1024:17: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
  191. 1024 | PyEval_InitThreads(); /* This also grabs a lock (which we then need to release) */
  192. | ^~~~~~~~~~~~~~~~~~
  193. In file included from /usr/local/include/python3.9/Python.h:140,
  194. from src/modules/rlm_python/rlm_python.c:37:
  195. /usr/local/include/python3.9/ceval.h:130:37: note: declared here
  196. 130 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
  197. | ^~~~~~~~~~~~~~~~~~
  198. src/modules/rlm_python/rlm_python.c:1068:57: warning: passing argument 2 of 'PyList_Append' makes pointer from integer without a cast [-Wint-conversion]
  199. 1068 | PyList_Append(sys_path, PyString_FromString(path));
  200. | ^~~~~~~~~~~~~~~~~~~~~~~~~
  201. | |
  202. | int
  203. In file included from /usr/local/include/python3.9/Python.h:102,
  204. from src/modules/rlm_python/rlm_python.c:37:
  205. /usr/local/include/python3.9/listobject.h:34:43: note: expected 'PyObject *' {aka 'struct _object *'} but argument is of type 'int'
  206. 34 | PyAPI_FUNC(int) PyList_Append(PyObject *, PyObject *);
  207. | ^~~~~~~~~~
  208. src/modules/rlm_python/rlm_python.c:1079:32: warning: implicit declaration of function 'Py_InitModule3' [-Wimplicit-function-declaration]
  209. 1079 | inst->module = Py_InitModule3("radiusd", module_methods, "FreeRADIUS python module");
  210. | ^~~~~~~~~~~~~~
  211. src/modules/rlm_python/rlm_python.c:1079:30: warning: assignment to 'PyObject *' {aka 'struct _object *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
  212. 1079 | inst->module = Py_InitModule3("radiusd", module_methods, "FreeRADIUS python module");
  213. | ^
  214. LINK build/lib/rlm_python.la
  215.  
Advertisement
Add Comment
Please, Sign In to add comment