Issue Building FreeRADIUS 3.2.6 on RedHat 9.4.
Mucci Andrea
Andrea.Mucci at hpecds.com
Wed Oct 9 07:11:04 UTC 2024
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}
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));
This is the message at the end:
Recommends: freeradius-debugsource(x86-64) = 3.2.6-1.el9
Checking for unpackaged file(s): /usr/lib/rpm/check-files /root/rpmbuild/BUILDROOT/freeradius-3.2.6-1.el9.x86_64
error: Installed (but unpackaged) file(s) found:
/etc/raddb/mods-config/python/example.py
/etc/raddb/mods-config/python/radiusd.py
/usr/lib/debug/usr/lib64/freeradius/rlm_python.so-3.2.6-1.el9.x86_64.debug
/usr/lib64/freeradius/rlm_python.so
RPM build errors:
line 52: It's not recommended to have unversioned Obsoletes: Obsoletes: freeradius-devel
line 53: It's not recommended to have unversioned Obsoletes: Obsoletes: freeradius-libs
Macro expanded in comment on line 597: %{_mandir}/man5/rlm_idn.5.gz}
File listed twice: /etc/raddb/certs/bootstrap
File listed twice: /etc/raddb/mods-config/sql/main/mysql/extras
File listed twice: /etc/raddb/mods-config/sql/main/mysql/extras/wimax
File listed twice: /etc/raddb/mods-config/sql/main/mysql/extras/wimax/queries.conf
File listed twice: /etc/raddb/mods-config/sql/main/mysql/extras/wimax/schema.sql
File listed twice: /etc/raddb/mods-config/sql/main/postgresql/extras
File listed twice: /etc/raddb/mods-config/sql/main/postgresql/extras/cisco_h323_db_schema.sql
File listed twice: /etc/raddb/mods-config/sql/main/postgresql/extras/voip-postpaid.conf
Installed (but unpackaged) file(s) found:
/etc/raddb/mods-config/python/example.py
/etc/raddb/mods-config/python/radiusd.py
/usr/lib/debug/usr/lib64/freeradius/rlm_python.so-3.2.6-1.el9.x86_64.debug
/usr/lib64/freeradius/rlm_python.so
I think the problem is that RedHat 9 does not support Python 2.
Anyone have any idea how I can solve this??
Best Regards
Andrea
More information about the Freeradius-Users
mailing list