Update of freeradius-2.2.3_1 to freeradius-2.2.4 fails

Dewayne Geraghty dewayne.geraghty at heuristicsystems.com.au
Mon Mar 31 01:20:48 UTC 2014

On 31/03/2014 5:38 AM, Dimitry Andric wrote:
> On 30 Mar 2014, at 16:43, Dr. Peter Voigt <pvoigt at uos.de> wrote:
>> I am running 10.0-RELEASE and when trying to upgrade
>> freeradius-2.2.3_1 to freeradius-2.2.4 after the latest update of the
>> ports tree I obtain the following build error:
>> ...
>> libtool: link: cc -pthread
>> -o .libs/rlm_dbm_parser .libs/rlm_dbm_parser.o
>> -L/usr/local/lib /usr/ports/net/freeradius2/work/freeradius-server-2.2.4/src/lib/.libs/libfreeradius-radius.so
>> -lssl -lcrypto -lpthread -pthread  -Wl,-rpath
>> -Wl,/usr/local/lib/freeradius-2.2.4 /usr/ports/net/freeradius2/work/freeradius-server-2.2.4/src/lib/.libs/libfreeradius-radius.so:
>> undefined reference to
>> `backtrace_symbols' /usr/ports/net/freeradius2/work/freeradius-server-2.2.4/src/lib/.libs/libfreeradius-radius.so:
>> undefined reference to `backtrace' cc: error: linker command failed
>> with exit code 1 (use -v to see invocation) gmake[7]: ***
> This probably needs -lexecinfo somewhere in its LDFLAGS.
> -Dimitry

Good suggestion Dimitry.  For freeradius2, this PR may assist:

I applied a similar patch below to freeradius3, but continued to receive
the error message, on 9.2 Stable (r263905).
CC src/modules/rlm_ippool/rlm_ippool_tool.c
build/lib/local/.libs/libfreeradius-radius.so: undefined reference to
build/lib/local/.libs/libfreeradius-radius.so: undefined reference to
gmake: *** [build/bin/local/rlm_ippool_tool] Error 1
*** [do-build] Error code 1

The inclusion of CPPFLAGS silences some preprocessor warnings.

--- Makefile.orig       2014-03-31 11:22:03.000000000 +1100
+++ Makefile    2014-03-31 12:03:42.000000000 +1100
@@ -18,6 +18,7 @@
 LICENSE=       GPLv2

 LIB_DEPENDS=   libgdbm.so:${PORTSDIR}/databases/gdbm \
+               libexecinfo.so:${PORTSDIR}/devel/libexecinfo \

 LOGDIR?=       /var/log
@@ -34,6 +35,8 @@
 CFLAGS+=       -I${LOCALBASE}/include -L${LOCALBASE}/lib
+CPPFLAGS+=     -I${LOCALBASE}/include
+LDFLAGS+=      -L${LOCALBASE}/lib -lexecinfo
 MAKE_JOBS_SAFE=        yes


My "on" configuration options are:
     HEIMDAL=on: With Heimdal Kerberos support
     HEIMDAL_PORT=on: With Heimdal Kerberos from ports
     KERBEROS=on: Kerberos support
     LDAP=on: LDAP support
     PERL=on: Perl scripting language support
     SSL_PORT=on: Use OpenSSL from the ports collection
     USER=on: Run as user freeradius, group freeradius

I suspect more is required, and /usr/local/lib/libexecinfo.so.1 does exist.
Regards, Dewayne

More information about the freebsd-ports mailing list