Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Aug 2008 20:20:27 -0700 (PDT)
From:      Douglas William Thrift <douglas@douglasthrift.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/126727: Update port: devel/libexecinfo Fix on amd64
Message-ID:  <200808220320.m7M3KR8g025354@slowhand.douglasthrift.net>
Resent-Message-ID: <200808220330.m7M3U16v018887@freefall.freebsd.org>

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

>Number:         126727
>Category:       ports
>Synopsis:       Update port: devel/libexecinfo Fix on amd64
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 22 03:30:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Douglas William Thrift
>Release:        FreeBSD 7.0-STABLE-jc2 amd64
>Organization:
>Environment:
System: FreeBSD slowhand.douglasthrift.net 7.0-STABLE-jc2 FreeBSD 7.0-STABLE-jc2 #0: Thu Jun 26 21:33:03 PDT 2008 user@jail8.johncompanies.com:/usr/obj/usr/src/sys/jail8 amd64
>Description:
The gcc builtin function __builtin_frame_address seems to need -fno-omit-frame-pointer to allow it to find the top of the stack. Without this libexecinfo can't correctly get a backtrace and instead causes a bus error.
>How-To-Repeat:
>Fix:
This requires the fix for amd64/126543.

--- libexecinfo.patch begins here ---
diff -Nrux .svn -x work /usr/ports/devel/libexecinfo/Makefile libexecinfo/Makefile
--- /usr/ports/devel/libexecinfo/Makefile	2006-06-29 06:21:47.000000000 -0700
+++ libexecinfo/Makefile	2008-08-21 20:00:14.707413640 -0700
@@ -20,6 +20,12 @@
 MAKE_FLAGS=	LIBDIR=${PREFIX}/lib \
 		INCLUDEDIR=${PREFIX}/include
 
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "amd64"
+CFLAGS+=	-fno-omit-frame-pointer
+.endif
+
 PORTDOCS=	README
 
 post-install:
@@ -28,4 +34,4 @@
 	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
--- libexecinfo.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



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