ports/126727: Update port: devel/libexecinfo Fix on amd64
Douglas William Thrift
douglas at douglasthrift.net
Fri Aug 22 03:30:02 UTC 2008
>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 at 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:
More information about the freebsd-ports-bugs
mailing list