Version 3.0.11 Compile Errors
I have downloaded the 3.0.11 tarball from freeradius.org and confirmed that I have all "BuildRequires" libraries. My platform is RHEL 7.2. "config.log" looks good but when I run "make" these options result in the following errors: "--with-dhcp=no" CC src/modules/proto_dhcp/dhcpclient.c /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o: In function `_start': (.text+0x20): undefined reference to `main' collect2: error: ld returned 1 exit status make: *** [build/bin/local/dhcpclient] Error 1 "--with-tcp=no" CC src/main/client.c src/main/client.c: In function `client_afrom_cs': src/main/client.c:964:6: error: `hs_proto' undeclared (first use in this function) if (hs_proto) { ^ src/main/client.c:964:6: note: each undeclared identifier is reported only once for each function it appears in make: *** [build/objs/src/main/client.lo] Error 1 "--with-ascend-binary=no" CC src/lib/value.c src/lib/value.c: In function `value_data_from_str': src/lib/value.c:654:4: error: label `do_octets' used but not defined goto do_octets; ^ make: *** [build/objs/src/lib/value.lo] Error 1 I would prefer to eliminate unneeded options from the binary. The "--with-vmps=no" option works just fine. Have I done something wrong? Is there anything I can edit to resolve these problems? Doug Wussler Florida State University
On Jul 19, 2016, at 12:51 AM, Wussler, Doug <doug.wussler@fsu.edu> wrote:
I have downloaded the 3.0.11 tarball from freeradius.org and
confirmed that I have all "BuildRequires" libraries. My platform
is RHEL 7.2. "config.log" looks good but when I run "make"
these options result in the following errors:
"--with-dhcp=no"
These are fixed in the v3.0.x branch in git.
I would prefer to eliminate unneeded options from the binary.
Honestly, it doesn't matter. Saving ~20K of disk space is not really worth it. The features you're trying to remove are only used when explicitly enabled in the configuration. Alan DeKok.
On 19-07-16 08:49, Alan DeKok wrote:
On Jul 19, 2016, at 12:51 AM, Wussler, Doug <doug.wussler@fsu.edu> wrote:
"--with-dhcp=no"
These are fixed in the v3.0.x branch in git.
Not completely true, I'm getting the same error when trying the latest v3.0.x. It tries to compile src/modules/proto_dhcp/dhcpclient.c, which is basicly an executable wrapped within a big "#ifdef WITH_DHCP" statement. It can't find a main method here, that causes the build to fail. Easiest fix is probably to add something like this at the bottom of the file #else int main() { fprintf(stderr, "Build without DHCP\n"); return -1; } #endif /* WITH_DHCP */ Cleaner solution (and most likely more work) would be to not build dhcpclient.c with dhcp disabled. v3.1.x also fails: src/lib/dict.c tries to compare something with DHCP_MAGIC_VENDOR. This is defined in src/include/dhcp.h, and only included in this file in case dhcp is enabled.
I would prefer to eliminate unneeded options from the binary.
Honestly, it doesn't matter. Saving ~20K of disk space is not really worth it. The features you're trying to remove are only used when explicitly enabled in the configuration.
It might save you a few seconds compile time too. This would indicate another solution: just remove the config option. It is broken, likely nobody uses it, and the effects of it are close to nothing. -- Herwin Weststrate
On Tue, Jul 19, 2016 at 02:25:36PM +0200, Herwin Weststrate wrote:
Honestly, it doesn't matter. Saving ~20K of disk space is not really worth it. The features you're trying to remove are only used when explicitly enabled in the configuration.
It might save you a few seconds compile time too.
That would be useful. The entire of FreeRADIUS can take up to eight seconds to build here. If I could get that down to two or three seconds I could get a lot of spare time back to do more productive things. Matthew -- Matthew Newton, Ph.D. <mcn4@leicester.ac.uk> Systems Specialist, Infrastructure Services, I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom For IT help contact helpdesk extn. 2253, <ithelp@le.ac.uk>
On Jul 19, 2016, at 2:25 PM, Herwin Weststrate <herwin@quarantainenet.nl> wrote:
Not completely true, I'm getting the same error when trying the latest v3.0.x. It tries to compile src/modules/proto_dhcp/dhcpclient.c, which is basicly an executable wrapped within a big "#ifdef WITH_DHCP" statement.
The better approach is to just skip src/modules/proto_dhcp if there's no DHCP.
v3.1.x also fails: src/lib/dict.c tries to compare something with DHCP_MAGIC_VENDOR. This is defined in src/include/dhcp.h, and only included in this file in case dhcp is enabled.
I've pushed a fix for that. Alan DeKok.
participants (4)
-
Alan DeKok -
Herwin Weststrate -
Matthew Newton -
Wussler, Doug