Hi, I tried to build freeradius from rel 3.2.2 package but could not find 3.2.2 freeradius-devel online. Where can I download it? Thanks Peter
On Mar 9, 2023, at 3:05 PM, Peter Lee <peterli2005@gmail.com> wrote:
I tried to build freeradius from rel 3.2.2 package but could not find 3.2.2 freeradius-devel online. Where can I download it? Thanks
Pre-built packages are on http://packages.networkradius.com If you want to build your own packages, just grab a "tar" file of 3.2.2, and do "make deb" or "make rpm". The source is available as a "tar" file, so there's no need to provide source RPMs. The process to build custom packages is very OS-dependent. So it would help to say which OS you're trying to build packages for. Alan DeKok.
On Thu, Mar 9, 2023 at 3:19 PM Alan DeKok <aland@deployingradius.com> wrote:
On Mar 9, 2023, at 3:05 PM, Peter Lee <peterli2005@gmail.com> wrote:
I tried to build freeradius from rel 3.2.2 package but could not find 3.2.2 freeradius-devel online. Where can I download it? Thanks
Pre-built packages are on http://packages.networkradius.com
If you want to build your own packages, just grab a "tar" file of 3.2.2, and do "make deb" or "make rpm". The source is available as a "tar" file, so there's no need to provide source RPMs.
It would be to have the src.rpms though since they are easier to incorporate into a build pipeline process and they don't cost anything extra to produce while building the rpms for distribution. Pretty please ?
On Mar 10, 2023, at 10:29 AM, BuzzSaw Code <buzzsaw.code@gmail.com> wrote:
It would be to have the src.rpms though since they are easier to incorporate into a build pipeline process and they don't cost anything extra to produce while building the rpms for distribution. Pretty please ?
From the FreeRADIUS tar file: $ rpmbuild -bs redhat/freeradius.spec That should build the source RPMs. We can take a look at adding this to our CI pipeline, but it's not a priority. Alan DeKok.
Hi Alan, I need to build 3.2.2 on CentOS7 because we will need to do a little customization. But before integrating our stuff yet, I got 3.2.2 compiling errors like "src/modules/rlm_eap/types/rlm_eap_pwd/rlm_eap_pwd.c:293:40: error: 'PW_EAP_PWD_PASSWORD_PREP' undeclared (first use in this function" and so on. So to build from 3.2.2 release tar file on CentOS 7 probably requires updates of freeradius-devel that contains header files for these attribute names? Thanks. Peter Date: Thu, 9 Mar 2023 15:19:33 -0500 From: Alan DeKok <aland@deployingradius.com> To: FreeRadius users mailing list <freeradius-users@lists.freeradius.org> Subject: Re: release 3.2.2 devel Message-ID: <FE935638-27C6-4BBE-AF52-4F9C7B66B95B@deployingradius.com> Content-Type: text/plain; charset=us-ascii On Mar 9, 2023, at 3:05 PM, Peter Lee <peterli2005@gmail.com> wrote:
I tried to build freeradius from rel 3.2.2 package but could not find 3.2.2 freeradius-devel online. Where can I download it? Thanks
Pre-built packages are on http://packages.networkradius.com If you want to build your own packages, just grab a "tar" file of 3.2.2, and do "make deb" or "make rpm". The source is available as a "tar" file, so there's no need to provide source RPMs. The process to build custom packages is very OS-dependent. So it would help to say which OS you're trying to build packages for. Alan DeKok. On Thu, Mar 9, 2023 at 2:05 PM Peter Lee <peterli2005@gmail.com> wrote:
Hi,
I tried to build freeradius from rel 3.2.2 package but could not find 3.2.2 freeradius-devel online. Where can I download it? Thanks
Peter
On Mar 10, 2023, at 6:30 PM, Peter Lee <peterli2005@gmail.com> wrote:
I need to build 3.2.2 on CentOS7 because we will need to do a little customization. But before integrating our stuff yet, I got 3.2.2 compiling errors like
"src/modules/rlm_eap/types/rlm_eap_pwd/rlm_eap_pwd.c:293:40: error: 'PW_EAP_PWD_PASSWORD_PREP' undeclared (first use in this function" and so on.
That's because you're not using the standard build system. It processes dictionaries and creates C macro names from them. See the difference between "git grep", which looks for strings in checked-in files, and "grep -r", which looks for files in the local file system: $ git grep PW_EAP_PWD_PASSWORD_PREP src/modules/rlm_eap/types/rlm_eap_pwd/rlm_eap_pwd.c: vp = fr_pair_afrom_num(fake->packet, PW_EAP_PWD_PASSWORD_PREP, 0); src/modules/rlm_eap/types/rlm_eap_pwd/rlm_eap_pwd.c: vp = fr_pair_find_by_num(fake->config, PW_EAP_PWD_PASSWORD_PREP, 0, TAG_ANY); $ grep -r PW_EAP_PWD_PASSWORD_PREP src/ src//include/attributes.h:#define PW_EAP_PWD_PASSWORD_PREP 1222 src//modules/rlm_eap/types/rlm_eap_pwd/rlm_eap_pwd.c: vp = fr_pair_afrom_num(fake->packet, PW_EAP_PWD_PASSWORD_PREP, 0); src//modules/rlm_eap/types/rlm_eap_pwd/rlm_eap_pwd.c: vp = fr_pair_find_by_num(fake->config, PW_EAP_PWD_PASSWORD_PREP, 0, TAG_ANY); The "src/include/attributes.h" file is auto-generated by the build system from the dictionaries.
So to build from 3.2.2 release tar file on CentOS 7 probably requires updates of freeradius-devel that contains header files for these attribute names? Thanks.
No. It requires you to use the build system included with FreeRADIUS. You're using some other build system, which you haven't described. Or, you've change the default build system (again in a way you haven't described), and broken it. i.e. If the build works for everyone else and not for you, then something on your local system is broken. Alan DeKok.
participants (3)
-
Alan DeKok -
BuzzSaw Code -
Peter Lee