v3.2.x - installing rlm_python3 attempts to install rlm_python

Dave Macias davama at gmail.com
Mon Jul 18 18:22:20 UTC 2022


Thank you Alan

$ rm -rf src/modules/rlm_python
> $ ./configure ...
> $ make
> $ make install
>

Unfortunately, that didnt install rlm_pytohn3 (with flags
--with-rlm_python3
--with-rlm-python3-config-bin=/usr/local/bin/psython3-config )

bash-5.1#  ls -al /usr/lib/freeradius/rlm_python*
ls: /usr/lib/freeradius/rlm_python*: No such file or directory

Adding --with-rlm_python didnt work either, im guessing because the
rlm_python directory didnt exist.
But doing this got rlm_python3 installed but with some errors:

$ rm -rf src/modules/rlm_python \
$ cp -r src/modules/rlm_python3 src/modules/rlm_python \
$ ./configure ... \
--with-rlm_python3
...
...
CC src/modules/rlm_python/rlm_python3.c
src/modules/rlm_python/rlm_python3.c:1033:1: warning: 'visibility'
attribute ignored [-Wattributes]
 1033 | {
      | ^
src/modules/rlm_python/rlm_python3.c: In function 'python_interpreter_init':
src/modules/rlm_python/rlm_python3.c:1136:17: warning: 'PyEval_InitThreads'
is deprecated [-Wdeprecated-declarations]
 1136 |                 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_python3.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);
      |                                     ^~~~~~~~~~~~~~~~~~
LINK build/lib/rlm_python3.la


What could I be doing wrong?


More information about the Freeradius-Users mailing list