Issue Building FreeRADIUS 3.2.6 on RedHat 9.4.
Alan DeKok
aland at deployingradius.com
Fri Oct 11 14:31:12 UTC 2024
On Oct 9, 2024, at 3:11 AM, Mucci Andrea via Freeradius-Users <freeradius-users at lists.freeradius.org> wrote:
>
> Hi all,
> I'm trying to build the RPMs for FreeRadius v.3.2.6 on Red Hat Enterprise Linux release 9.4 (Plow). I need to do this because my database is Oracle.
>
> After fixing all dependencies. The "rpmbuild" command returns errors and does not create RPM packages.
>
> Three warning:
> warning: line 52: It's not recommended to have unversioned Obsoletes: Obsoletes: freeradius-devel
> warning: line 53: It's not recommended to have unversioned Obsoletes: Obsoletes: freeradius-libs
> warning: Macro expanded in comment on line 597: %{_mandir}/man5/rlm_idn.5.gz}
These are warnings, and can be ignored.
> One error while compile:
> 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));
If you're not using python2, then just delete the module from the source, or don't build it.
> I think the problem is that RedHat 9 does not support Python 2.
>
> Anyone have any idea how I can solve this??
Delete rlm_python, and try again.
Alan DeKok.
More information about the Freeradius-Users
mailing list