From owner-freebsd-ports@FreeBSD.ORG Mon Mar 31 01:20:48 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 18558F9A; Mon, 31 Mar 2014 01:20:48 +0000 (UTC) Received: from nschwmtas05p.mx.bigpond.com (nschwmtas05p.mx.bigpond.com [61.9.189.149]) by mx1.freebsd.org (Postfix) with ESMTP id 77A68219; Mon, 31 Mar 2014 01:20:46 +0000 (UTC) Received: from nschwcmgw07p ([61.9.190.167]) by nschwmtas05p.mx.bigpond.com with ESMTP id <20140331012038.CHTH14630.nschwmtas05p.mx.bigpond.com@nschwcmgw07p>; Mon, 31 Mar 2014 01:20:38 +0000 Received: from hermes.heuristicsystems.com.au ([121.210.107.100]) by nschwcmgw07p with BigPond Outbound id k1Le1n00C29zwdD011Le8M; Mon, 31 Mar 2014 01:20:38 +0000 X-Authority-Analysis: v=2.0 cv=Os7NOlDt c=1 sm=1 a=SEJ2iDwVkb98DYvesvueMw==:17 a=JipEcVzqA9wA:10 a=LpLis3S5e9UA:10 a=8nJEP1OIZ-IA:10 a=GHIR_BbyAAAA:8 a=6I5d2MoRAAAA:8 a=Kkhir0NpEYkkyTYMN6UA:9 a=wPNLvfGTeEIA:10 a=oWM4DJNSU-0A:10 a=SEJ2iDwVkb98DYvesvueMw==:117 Received: from [10.0.5.3] (ewsw01.hs [10.0.5.3]) (authenticated bits=0) by hermes.heuristicsystems.com.au (8.14.5/8.13.6) with ESMTP id s2V1Jnhk042532 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Mon, 31 Mar 2014 12:19:49 +1100 (EST) (envelope-from dewayne.geraghty@heuristicsystems.com.au) Message-ID: <5338C2B4.40506@heuristicsystems.com.au> Date: Mon, 31 Mar 2014 12:19:48 +1100 From: Dewayne Geraghty User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Dimitry Andric , "freebsd-ports@freebsd.org" Subject: Re: Update of freeradius-2.2.3_1 to freeradius-2.2.4 fails References: <20140330164337.0e6a2950@tiger2008.drpetervoigt.private> <5FB70C38-B89E-40AF-AAD5-5E35B237FF1D@FreeBSD.org> In-Reply-To: <5FB70C38-B89E-40AF-AAD5-5E35B237FF1D@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2014 01:20:48 -0000 On 31/03/2014 5:38 AM, Dimitry Andric wrote: > On 30 Mar 2014, at 16:43, Dr. Peter Voigt 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