From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Mar 30 16:30:01 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 15F2BF53 for ; Sun, 30 Mar 2014 16:30:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E160DF0B for ; Sun, 30 Mar 2014 16:30:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s2UGU0O1083789 for ; Sun, 30 Mar 2014 16:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s2UGU0o7083776; Sun, 30 Mar 2014 16:30:00 GMT (envelope-from gnats) Resent-Date: Sun, 30 Mar 2014 16:30:00 GMT Resent-Message-Id: <201403301630.s2UGU0o7083776@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Lawrence "The Dreamer" Chen Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AC38EF41 for ; Sun, 30 Mar 2014 16:28:50 +0000 (UTC) Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7B23AF01 for ; Sun, 30 Mar 2014 16:28:50 +0000 (UTC) Received: from ip70-179-144-228.fv.ks.cox.net ([70.179.144.228] helo=zen.lhaven.homeip.net) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1WUIbJ-0001Om-6B for FreeBSD-gnats-submit@freebsd.org; Sun, 30 Mar 2014 16:28:49 +0000 Received: from zen.lhaven.homeip.net (localhost [127.0.0.1]) by zen.lhaven.homeip.net (8.14.8/8.14.7) with ESMTP id s2UGRV7f079428; Sun, 30 Mar 2014 11:27:31 -0500 (CDT) (envelope-from lchen@zen.lhaven.homeip.net) Received: (from lchen@localhost) by zen.lhaven.homeip.net (8.14.8/8.14.7/Submit) id s2UGRQQO079427; Sun, 30 Mar 2014 11:27:26 -0500 (CDT) (envelope-from lchen) Message-Id: <201403301627.s2UGRQQO079427@zen.lhaven.homeip.net> Date: Sun, 30 Mar 2014 11:27:26 -0500 (CDT) From: Lawrence "The Dreamer" Chen To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: ports/188089: [patch] net/freeradius2: fails to build if devel/libexecinfo is installed X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Lawrence The Dreamer Chen List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Mar 2014 16:30:01 -0000 >Number: 188089 >Category: ports >Synopsis: [patch] net/freeradius2: fails to build if devel/libexecinfo is installed >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Mar 30 16:30:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Lawrence "The Dreamer" Chen >Release: FreeBSD 9.2-RELEASE-p3 amd64 >Organization: >Environment: System: FreeBSD zen.lhaven.homeip.net 9.2-RELEASE-p3 FreeBSD 9.2-RELEASE-p3 #0: Sat Jan 11 03:25:02 UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: Links fail with: /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' Noticed this during the configure: configure: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: execinfo.h: proceeding with the compiler's result But, its not linking against libexecinfo.so. From the release notes, this is probably related to the feature improvement where a "panic_action" that can be set to have the server dump a gdb log (backtrace/backtrace_symbols?) >How-To-Repeat: >Fix: configure doesn't have a control for this auto-activation, so * Make devel/libexecinfo an explicit dependency * add -I$(LOCALBASE)/include to CPPFLAGS * make -lexecinfo library dependency for libfreeradius-radius.so --- patch begins here --- --- Makefile.orig 2014-03-29 10:26:34.000000000 -0500 +++ Makefile 2014-03-30 10:31:07.000000000 -0500 @@ -16,7 +16,8 @@ LICENSE= GPLv2 -LIB_DEPENDS= libgdbm.so:${PORTSDIR}/databases/gdbm +LIB_DEPENDS= libgdbm.so:${PORTSDIR}/databases/gdbm \ + libexecinfo.so:${PORTSDIR}/devel/libexecinfo LOGDIR?= /var/log KRB5_CONFIG?= /usr/bin/krb5-config --libs @@ -31,7 +32,8 @@ USE_BZIP2= yes USE_OPENSSL= yes MAKE_ARGS+= LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" -CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib +CPPFLAGS+= -I${LOCALBASE}/include +CFLAGS+= -I${LOCALBASE}/include MAKE_JOBS_UNSAFE= yes PLIST_SUB= PORTVERSION=${DISTVERSION} LIBVER=0${PORTVERSION:C/\./0/g} @@ -386,6 +388,10 @@ @cd ${WRKSRC}/src/modules/rlm_perl && ${AUTOCONF} -I ${WRKSRC} @cd ${WRKSRC}/src/modules/rlm_python && ${AUTOCONF} -I ${WRKSRC} +post-configure: + @${REINPLACE_CMD} -e "s:(LDFLAGS):(LDFLAGS) -lexecinfo:" \ + ${WRKSRC}/src/lib/Makefile + pre-install: # Run pkg-install PRE-INSTALL @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} \ --- patch ends here --- Ref: ports/83905 >Release-Note: >Audit-Trail: >Unformatted: