Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CC src/modules/rlm_preprocess/rlm_preprocess.c
- LINK build/lib/rlm_preprocess.la
- CC src/modules/rlm_python/rlm_python.c
- In file included from src/freeradius-devel/radiusd.h:38,
- from src/modules/rlm_python/rlm_python.c:33:
- src/modules/rlm_python/rlm_python.c: In function 'python_error_log':
- src/modules/rlm_python/rlm_python.c:229:26: warning: implicit declaration of function 'PyString_AsString' [-Wimplicit-function-declaration]
- 229 | ERROR("%s (%s)", PyString_AsString(p_str_1), PyString_AsString(p_str_2));
- | ^~~~~~~~~~~~~~~~~
- src/freeradius-devel/log.h:139:55: note: in definition of macro 'ERROR'
- 139 | #define ERROR(fmt, ...) radlog(L_ERR, fmt, ## __VA_ARGS__)
- | ^~~~~~~~~~~
- src/modules/rlm_python/rlm_python.c:229:15: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
- 229 | ERROR("%s (%s)", PyString_AsString(p_str_1), PyString_AsString(p_str_2));
- | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
- | |
- | int
- src/freeradius-devel/log.h:139:47: note: in definition of macro 'ERROR'
- 139 | #define ERROR(fmt, ...) radlog(L_ERR, fmt, ## __VA_ARGS__)
- | ^~~
- src/modules/rlm_python/rlm_python.c:229:17: note: format string is defined here
- 229 | ERROR("%s (%s)", PyString_AsString(p_str_1), PyString_AsString(p_str_2));
- | ~^
- | |
- | char *
- | %d
- In file included from src/freeradius-devel/radiusd.h:38,
- from src/modules/rlm_python/rlm_python.c:33:
- src/modules/rlm_python/rlm_python.c:229:15: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
- 229 | ERROR("%s (%s)", PyString_AsString(p_str_1), PyString_AsString(p_str_2));
- | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
- | |
- | int
- src/freeradius-devel/log.h:139:47: note: in definition of macro 'ERROR'
- 139 | #define ERROR(fmt, ...) radlog(L_ERR, fmt, ## __VA_ARGS__)
- | ^~~
- src/modules/rlm_python/rlm_python.c:229:21: note: format string is defined here
- 229 | ERROR("%s (%s)", PyString_AsString(p_str_1), PyString_AsString(p_str_2));
- | ~^
- | |
- | char *
- | %d
- In file included from src/freeradius-devel/radiusd.h:38,
- from src/modules/rlm_python/rlm_python.c:33:
- src/modules/rlm_python/rlm_python.c:238:31: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
- 238 | ERROR("[%ld] %s:%d at %s()",
- | ^~~~~~~~~~~~~~~~~~~~~
- 239 | fnum,
- 240 | PyString_AsString(cur_frame->f_code->co_filename),
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- | |
- | int
- src/freeradius-devel/log.h:139:47: note: in definition of macro 'ERROR'
- 139 | #define ERROR(fmt, ...) radlog(L_ERR, fmt, ## __VA_ARGS__)
- | ^~~
- src/modules/rlm_python/rlm_python.c:238:39: note: format string is defined here
- 238 | ERROR("[%ld] %s:%d at %s()",
- | ~^
- | |
- | char *
- | %d
- In file included from src/freeradius-devel/radiusd.h:38,
- from src/modules/rlm_python/rlm_python.c:33:
- src/modules/rlm_python/rlm_python.c:238:31: warning: format '%s' expects argument of type 'char *', but argument 6 has type 'int' [-Wformat=]
- 238 | ERROR("[%ld] %s:%d at %s()",
- | ^~~~~~~~~~~~~~~~~~~~~
- ......
- 242 | PyString_AsString(cur_frame->f_code->co_name)
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- | |
- | int
- src/freeradius-devel/log.h:139:47: note: in definition of macro 'ERROR'
- 139 | #define ERROR(fmt, ...) radlog(L_ERR, fmt, ## __VA_ARGS__)
- | ^~~
- src/modules/rlm_python/rlm_python.c:238:48: note: format string is defined here
- 238 | ERROR("[%ld] %s:%d at %s()",
- | ~^
- | |
- | char *
- | %d
- src/modules/rlm_python/rlm_python.c: In function 'mod_vptuple':
- src/modules/rlm_python/rlm_python.c:304:23: warning: implicit declaration of function 'PyString_CheckExact'; did you mean 'PyLong_CheckExact'? [-Wimplicit-function-declaration]
- 304 | if ((!PyString_CheckExact(pStr1)) || (!PyString_CheckExact(pStr2))) {
- | ^~~~~~~~~~~~~~~~~~~
- | PyLong_CheckExact
- 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]
- 309 | s1 = PyString_AsString(pStr1);
- | ^
- 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]
- 310 | s2 = PyString_AsString(pStr2);
- | ^
- 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]
- 315 | if (!(op = fr_str2int(fr_tokens, PyString_AsString(pOp), 0))) {
- | ^~~~~~~~~~~~~~~~~~~~~~
- | |
- | int
- In file included from src/freeradius-devel/libradius.h:88,
- from src/freeradius-devel/radiusd.h:29,
- from src/modules/rlm_python/rlm_python.c:33:
- src/freeradius-devel/token.h:81:57: note: expected 'const char *' but argument is of type 'int'
- 81 | int fr_str2int(FR_NAME_NUMBER const *table, char const *name, int def);
- | ~~~~~~~~~~~~^~~~
- In file included from src/freeradius-devel/radiusd.h:38,
- from src/modules/rlm_python/rlm_python.c:33:
- src/modules/rlm_python/rlm_python.c:316:47: warning: format '%s' expects argument of type 'char *', but argument 6 has type 'int' [-Wformat=]
- 316 | ERROR("%s - Invalid operator %s:%s %s %s, falling back to '='",
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 317 | funcname, list_name, s1, PyString_AsString(pOp), s2);
- | ~~~~~~~~~~~~~~~~~~~~~~
- | |
- | int
- src/freeradius-devel/log.h:139:47: note: in definition of macro 'ERROR'
- 139 | #define ERROR(fmt, ...) radlog(L_ERR, fmt, ## __VA_ARGS__)
- | ^~~
- src/modules/rlm_python/rlm_python.c:316:77: note: format string is defined here
- 316 | ERROR("%s - Invalid operator %s:%s %s %s, falling back to '='",
- | ~^
- | |
- | char *
- | %d
- src/modules/rlm_python/rlm_python.c:320:36: warning: implicit declaration of function 'PyInt_Check'; did you mean 'PySet_Check'? [-Wimplicit-function-declaration]
- 320 | } else if (PyInt_Check(pOp)) {
- | ^~~~~~~~~~~
- | PySet_Check
- src/modules/rlm_python/rlm_python.c:321:43: warning: implicit declaration of function 'PyInt_AsLong'; did you mean 'PyLong_AsLong'? [-Wimplicit-function-declaration]
- 321 | op = PyInt_AsLong(pOp);
- | ^~~~~~~~~~~~
- | PyLong_AsLong
- src/modules/rlm_python/rlm_python.c: In function 'mod_populate_vptuple':
- src/modules/rlm_python/rlm_python.c:384:24: warning: implicit declaration of function 'PyString_FromFormat'; did you mean 'PyBytes_FromFormat'? [-Wimplicit-function-declaration]
- 384 | pStr = PyString_FromFormat("%s:%d", vp->da->name, vp->tag);
- | ^~~~~~~~~~~~~~~~~~~
- | PyBytes_FromFormat
- 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]
- 384 | pStr = PyString_FromFormat("%s:%d", vp->da->name, vp->tag);
- | ^
- src/modules/rlm_python/rlm_python.c:386:24: warning: implicit declaration of function 'PyString_FromString'; did you mean 'PyLong_FromString'? [-Wimplicit-function-declaration]
- 386 | pStr = PyString_FromString(vp->da->name);
- | ^~~~~~~~~~~~~~~~~~~
- | PyLong_FromString
- 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]
- 386 | pStr = PyString_FromString(vp->da->name);
- | ^
- 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]
- 395 | pStr = PyString_FromString(buf);
- | ^
- src/modules/rlm_python/rlm_python.c: In function 'do_python_single':
- src/modules/rlm_python/rlm_python.c:546:21: warning: implicit declaration of function 'PyInt_CheckExact'; did you mean 'PyDict_CheckExact'? [-Wimplicit-function-declaration]
- 546 | if (PyInt_CheckExact(pRet)) ret = PyInt_AsLong(pRet);
- | ^~~~~~~~~~~~~~~~
- | PyDict_CheckExact
- src/modules/rlm_python/rlm_python.c: In function 'python_interpreter_free':
- src/modules/rlm_python/rlm_python.c:649:9: warning: 'PyEval_AcquireLock' is deprecated [-Wdeprecated-declarations]
- 649 | PyEval_AcquireLock();
- | ^~~~~~~~~~~~~~~~~~
- In file included from /usr/local/include/python3.9/Python.h:140,
- from src/modules/rlm_python/rlm_python.c:37:
- /usr/local/include/python3.9/ceval.h:135:37: note: declared here
- 135 | Py_DEPRECATED(3.2) PyAPI_FUNC(void) PyEval_AcquireLock(void);
- | ^~~~~~~~~~~~~~~~~~
- src/modules/rlm_python/rlm_python.c:652:9: warning: 'PyEval_ReleaseLock' is deprecated [-Wdeprecated-declarations]
- 652 | PyEval_ReleaseLock();
- | ^~~~~~~~~~~~~~~~~~
- In file included from /usr/local/include/python3.9/Python.h:140,
- from src/modules/rlm_python/rlm_python.c:37:
- /usr/local/include/python3.9/ceval.h:136:37: note: declared here
- 136 | Py_DEPRECATED(3.2) PyAPI_FUNC(void) PyEval_ReleaseLock(void);
- | ^~~~~~~~~~~~~~~~~~
- src/modules/rlm_python/rlm_python.c: In function 'python_parse_config':
- 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]
- 886 | pKey = PyString_FromString(key);
- | ^
- 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]
- 909 | pKey = PyString_FromString(key);
- | ^
- 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]
- 910 | pValue = PyString_FromString(value);
- | ^
- src/modules/rlm_python/rlm_python.c: In function 'python_interpreter_init':
- 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]
- 1011 | inst->wide_name = Py_DecodeLocale(main_config.name, strlen(main_config.name));
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- | |
- | size_t {aka long unsigned int}
- In file included from /usr/local/include/python3.9/Python.h:154,
- from src/modules/rlm_python/rlm_python.c:37:
- /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'}
- 10 | size_t *size);
- | ~~~~~~~~^~~~
- src/modules/rlm_python/rlm_python.c:1024:17: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
- 1024 | PyEval_InitThreads(); /* This also grabs a lock (which we then need to release) */
- | ^~~~~~~~~~~~~~~~~~
- In file included from /usr/local/include/python3.9/Python.h:140,
- from src/modules/rlm_python/rlm_python.c:37:
- /usr/local/include/python3.9/ceval.h:130:37: note: declared here
- 130 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
- | ^~~~~~~~~~~~~~~~~~
- 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]
- 1068 | PyList_Append(sys_path, PyString_FromString(path));
- | ^~~~~~~~~~~~~~~~~~~~~~~~~
- | |
- | int
- In file included from /usr/local/include/python3.9/Python.h:102,
- from src/modules/rlm_python/rlm_python.c:37:
- /usr/local/include/python3.9/listobject.h:34:43: note: expected 'PyObject *' {aka 'struct _object *'} but argument is of type 'int'
- 34 | PyAPI_FUNC(int) PyList_Append(PyObject *, PyObject *);
- | ^~~~~~~~~~
- src/modules/rlm_python/rlm_python.c:1079:32: warning: implicit declaration of function 'Py_InitModule3' [-Wimplicit-function-declaration]
- 1079 | inst->module = Py_InitModule3("radiusd", module_methods, "FreeRADIUS python module");
- | ^~~~~~~~~~~~~~
- 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]
- 1079 | inst->module = Py_InitModule3("radiusd", module_methods, "FreeRADIUS python module");
- | ^
- LINK build/lib/rlm_python.la
Advertisement
Add Comment
Please, Sign In to add comment