Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Mar 2014 12:19:48 +1100
From:      Dewayne Geraghty <dewayne.geraghty@heuristicsystems.com.au>
To:        Dimitry Andric <dim@freebsd.org>, "freebsd-ports@freebsd.org" <freebsd-ports@freebsd.org>
Subject:   Re: Update of freeradius-2.2.3_1 to freeradius-2.2.4 fails
Message-ID:  <5338C2B4.40506@heuristicsystems.com.au>
In-Reply-To: <5FB70C38-B89E-40AF-AAD5-5E35B237FF1D@FreeBSD.org>
References:  <20140330164337.0e6a2950@tiger2008.drpetervoigt.private> <5FB70C38-B89E-40AF-AAD5-5E35B237FF1D@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On 31/03/2014 5:38 AM, Dimitry Andric wrote:
> On 30 Mar 2014, at 16:43, Dr. Peter Voigt <pvoigt@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:
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/188089

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
`backtrace_symbols'
build/lib/local/.libs/libfreeradius-radius.so: undefined reference to
`backtrace'
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 \
                libtalloc.so:${PORTSDIR}/devel/talloc

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

 PLIST_SUB=     PORTVERSION=${DISTVERSION} LIBVER=0${PORTVERSION:C/\./0/g}

---
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5338C2B4.40506>