Errors when building binary RPM on OL9
I have downloaded the 3.2.3 tar file from the freeradius site and trying to build the binary RPM on an Oracle Linux 9 system. I copied the redhat/freeradius.spec file into the SPECS directory but needed to make a couple of changes to get it this far. 1. I got a file not found error on SOURCES/freeradius-tmpfiles-conf. That file is in the redhat/ directory but I couldn't figure out how to change where it is looking for it so just put a copy where it is looking. 2. I have installed postgresql-15 from binary RPM on their site and the paths to the /lib and /include directories don't match the paths searched in the build, now resolved. 3. Now I'm getting: RPM build errors: line 51: It's not recommended to have unversioned Obsoletes: Obsoletes: freeradius-devel line 52: It's not recommended to have unversioned Obsoletes: Obsoletes: freeradius-libs Macro expanded in comment on line 602: %{_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.3-1.el9.x86_64.debug /usr/lib64/freeradius/rlm_python.so It did not create the RPM and I believe the last set of files listed as "Installed (but unpackaged)" need to be resolved. I know there's a way to ignore the error and continue, but that could leave me with a broken RPM. Any help is appreciated. C. Linus Hicks Please access the attached hyperlink for Highstreet’s electronic communications disclaimer: http://www.highstreetit.com/Email_Disclaimer.htm
On Jun 29, 2023, at 4:18 PM, Linus Hicks <linus.hicks@highstreetit.com> wrote:
I have downloaded the 3.2.3 tar file from the freeradius site and trying to build the binary RPM on an Oracle Linux 9 system
$ tar -zxf freeradius-server-3.2.3.tar.gz $ cd freeradius-server-3.2.3 $ make rpm What else is there to do? This is documented on the Wiki, among other places. This is also the process we use to build the RPMs we make available on http://packages.networkradius.com If this issue is specific to Oracle Linux, then we welcome patches to fix it. We don't use Oracle because, well, Oracle. Alan DeKok.
From: Freeradius-Users <freeradius-users-bounces+linus.hicks=highstreetit.com@lists.freeradius.org On Behalf Of Alan DeKok $ tar -zxf freeradius-server-3.2.3.tar.gz $ cd freeradius-server-3.2.3 $ make rpm
What else is there to do? This is documented on the Wiki, among other places.
This is also the process we use to build the RPMs we make available on http://packages.networkradius.com
I had not looked at networkradius.com as I am not looking for commercial support. I have been reading the documentation and found the Wiki here: https://wiki.freeradius.org/Home Saw the link for Pre-built packages that sent me here: https://wiki.freeradius.org/building/Pre-built-Packages Did not see one that looked suitable for RHEL (which seemed strange) in the list of Official packages. Saw the link for Building from source code that sent me here: https://wiki.freeradius.org/building/Home Saw the section on Building Packages. Saw the link for RHEL and Centos platform specific that sent me here: https://wiki.freeradius.org/building/RHEL%20and%20Centos#building-packages Read the section on Building Packages, but it didn't actually tell how to build the package. It just talks about building with Oracle support, Upgrading GCC, and libkqueue. I don't care to include Oracle database support in the freeradius I install; the GCC I'm using is above the minimum stated; and I'm not building a v4 freeradius so none of those sections applies to me. I see nothing on that web page showing what command(s) to run to build an RPM package for freeradius, so for lack of any other directions, plus what I read in the section on Oracle support, I assumed it was a standard rpmbuild. In the section where it talks about building a package with Oracle support, I read the following (although the spec file doesn't actually have that define statement) which suggests using rpmbuild but doesn't explicitly say: " If you have the Oracle header files in a sane location it should be a simple matter of taking the latest FreeRADIUS release tarball and dropping it in /usr/src/packages/SOURCES along with the other files from the suse/ or redhat/ directory inside the tarball with the exception of freeradius.spec which goes in /usr/src/packages/SPECS Then edit /usr/src/packages/SPECS/freeradius.spec and change: %define _oracle_support 0 to: %define _oracle_support 1 " And "make rpm" doesn't work (assuming there's no difference between the gz and bz2 files besides the compression method); [lhicks@radius build]$ tar -xjf freeradius-server-3.2.3.tar.bz2 [lhicks@radius build]$ cd freeradius-server-3.2.3/ [lhicks@radius freeradius-server-3.2.3]$ ls -l total 732 -rw-r--r--. 1 lhicks lhicks 49448 May 26 09:56 config.guess -rw-r--r--. 1 lhicks lhicks 34286 May 26 09:56 config.sub -rwxr-xr-x. 1 lhicks lhicks 426915 May 26 09:56 configure -rw-r--r--. 1 lhicks lhicks 67997 May 26 09:56 configure.ac -rw-r--r--. 1 lhicks lhicks 4985 May 26 09:56 CONTRIBUTING -rw-r--r--. 1 lhicks lhicks 2855 May 26 09:56 COPYRIGHT -rw-r--r--. 1 lhicks lhicks 66 May 26 09:56 CREDITS drwxr-xr-x. 5 lhicks lhicks 4096 May 26 09:56 debian drwxr-xr-x. 12 lhicks lhicks 4096 May 26 09:56 doc -rw-r--r--. 1 lhicks lhicks 7257 May 26 09:56 INSTALL.rst -rwxr-xr-x. 1 lhicks lhicks 5628 May 26 09:56 install-sh -rw-r--r--. 1 lhicks lhicks 18011 May 26 09:56 LICENSE drwxr-xr-x. 2 lhicks lhicks 4096 May 26 09:56 m4 -rw-r--r--. 1 lhicks lhicks 66 May 26 09:56 main.mk -rw-r--r--. 1 lhicks lhicks 12937 May 26 09:56 Makefile -rw-r--r--. 1 lhicks lhicks 4594 May 26 09:56 Make.inc.in drwxr-xr-x. 5 lhicks lhicks 4096 May 26 09:56 man drwxr-xr-x. 2 lhicks lhicks 4096 May 26 09:56 mibs -rwxr-xr-x. 1 lhicks lhicks 6872 May 26 09:56 missing drwxr-xr-x. 8 lhicks lhicks 4096 May 26 09:56 raddb -rw-r--r--. 1 lhicks lhicks 7261 May 26 09:56 README.rst drwxr-xr-x. 2 lhicks lhicks 4096 May 26 09:56 redhat drwxr-xr-x. 19 lhicks lhicks 4096 May 26 09:56 scripts drwxr-xr-x. 2 lhicks lhicks 12288 May 26 09:56 share -rw-r--r--. 1 lhicks lhicks 365 May 26 09:56 site.yml drwxr-xr-x. 7 lhicks lhicks 4096 May 26 09:56 src drwxr-xr-x. 2 lhicks lhicks 4096 May 26 09:56 suse -rw-r--r--. 1 lhicks lhicks 6 May 26 09:56 VERSION [lhicks@radius freeradius-server-3.2.3]$ make rpm make: *** No rule to make target '.git/HEAD', needed by 'freeradius-server-3.2.3.tar.bz2'. Stop. Maybe the web pages need to be updated or something is wrong with the linked pages because I don't see the package build documentation you shared. Please advise. Linus Please access the attached hyperlink for Highstreet’s electronic communications disclaimer: http://www.highstreetit.com/Email_Disclaimer.htm
On Jun 30, 2023, at 12:47 AM, Linus Hicks <linus.hicks@highstreetit.com> wrote:
I had not looked at networkradius.com as I am not looking for commercial support.
At no point did I say anything which could be interpreted as "buy support". What I meant was that the scripts in the redhat/ directory work. We use them *daily* to build RPM packages.
I have been reading the documentation and found the Wiki here: https://wiki.freeradius.org/Home Saw the link for Pre-built packages that sent me here: https://wiki.freeradius.org/building/Pre-built-Packages Did not see one that looked suitable for RHEL (which seemed strange) in the list of Official packages. Saw the link for Building from source code that sent me here: https://wiki.freeradius.org/building/Home Saw the section on Building Packages.
You can type "rpm" into the Wiki search bar. The first link there is extensive instructions for building on RedHat. Since Oracle Linux is based on RedHat, the instructions should work. There's even a link to SRPMs
And "make rpm" doesn't work (assuming there's no difference between the gz and bz2 files besides the compression method);
For now, do: $ tar -zxf freeradius-server-3.2.3.tar.bz2 $ cd freeradius-server-3.2.3 $ cp ../freeradius-server-3.2.3.tar.bz2 . $ make rpm That should work. Alan DeKok.
From: Freeradius-Users <freeradius-users-bounces+linus.hicks=highstreetit.com@lists.freeradius.org On Behalf Of Alan DeKok At no point did I say anything which could be interpreted as "buy support".
I was only saying I did not follow that link when I first saw it because I *assumed* it was intended for people who were looking for commercial support. I can't find it now, but the wording wasn't clear to me, and I now regret not following that link. Is there a build log or something else that shows the options used for building these RPMs?
For now, do:
$ tar -zxf freeradius-server-3.2.3.tar.bz2 $ cd freeradius-server-3.2.3 $ cp ../freeradius-server-3.2.3.tar.bz2 . $ make rpm
Thanks for the clarification. Linus Please access the attached hyperlink for Highstreet’s electronic communications disclaimer: http://www.highstreetit.com/Email_Disclaimer.htm
On Jun 30, 2023, at 10:39 AM, Linus Hicks <linus.hicks@highstreetit.com> wrote:
I was only saying I did not follow that link when I first saw it because I *assumed* it was intended for people who were looking for commercial support.
I really don't understand what the miscommunication is. I used that as an example. There's no need to get lost in irrelevant details which I never brought up. I didn't ask you to buy support. I didn't ask you to follow the links. I didn't say that build logs were available there. I said that we build RPMs daily. Using the scripts in the "redhat" directory.
I can't find it now, but the wording wasn't clear to me, and I now regret not following that link. Is there a build log or something else that shows the options used for building these RPMs?
No. As I said.... Everything used to build the RPMs is shipped with the server. The "redhat" directory contains the RPM scripts we use to build RPMs. i really can't say that any more clearly. Alan DeKok.
participants (2)
-
Alan DeKok -
Linus Hicks