Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jan 2012 10:28:50 +0800 (CST)
From:      Jyun-Yan You <jyyou@cs.nctu.edu.tw>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        jgh@FreeBSD.org
Subject:   ports/164654: [PATCH] devel/libunwind: fix building errors on 10-CURRENT/amd64
Message-ID:  <201201310228.q0V2SoE8074653@csduty.cs.nctu.edu.tw>
Resent-Message-ID: <201201310230.q0V2U9cR064248@freefall.freebsd.org>

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

>Number:         164654
>Category:       ports
>Synopsis:       [PATCH] devel/libunwind: fix building errors on 10-CURRENT/amd64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 31 02:30:08 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Jyun-Yan You
>Release:        FreeBSD 8.2-RELEASE-p3 amd64
>Organization:
>Environment:
System: FreeBSD csduty.cs.nctu.edu.tw 8.2-RELEASE-p3 FreeBSD 8.2-RELEASE-p3 #0: Tue Sep 27 18:45:57 UTC 2011
>Description:
This is a workaround that makes libunwind can be built on 10-CURRENT/amd64.
A better approach is to change the return type of __getcontextx_size in ucontext.h.
(https://gist.github.com/1708305)

jgh@ wants this.

Added file(s):
- files/patch-src__x86_64__Gos-freebsd.c

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- libunwind-20110911_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/devel/libunwind/Makefile /amd/gcs/98/9855518/src/ports/devel/libunwind/Makefile
--- /usr/ports/devel/libunwind/Makefile	2011-11-18 09:09:28.000000000 +0800
+++ /amd/gcs/98/9855518/src/ports/devel/libunwind/Makefile	2012-01-31 10:02:37.230107000 +0800
@@ -7,6 +7,7 @@
 
 PORTNAME=	libunwind
 PORTVERSION=	20110911	# This is actually official libunwind 1.0.1
+PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	SAVANNAH
 DISTNAME=	${PORTNAME}-1.0.1
diff -ruN --exclude=CVS /usr/ports/devel/libunwind/files/patch-src__x86_64__Gos-freebsd.c /amd/gcs/98/9855518/src/ports/devel/libunwind/files/patch-src__x86_64__Gos-freebsd.c
--- /usr/ports/devel/libunwind/files/patch-src__x86_64__Gos-freebsd.c	1970-01-01 08:00:00.000000000 +0800
+++ /amd/gcs/98/9855518/src/ports/devel/libunwind/files/patch-src__x86_64__Gos-freebsd.c	2012-01-31 10:02:37.210135000 +0800
@@ -0,0 +1,13 @@
+--- src/x86_64/Gos-freebsd.c.orig	2012-01-31 09:27:19.899804763 +0800
++++ src/x86_64/Gos-freebsd.c	2012-01-31 09:30:23.568902767 +0800
+@@ -26,6 +26,10 @@
+ #include "config.h"
+ #endif
+ 
++#if __FreeBSD__ > 9
++#include <sys/types.h>
++#endif
++
+ #include <sys/ucontext.h>
+ #include <machine/sigframe.h>
+ #include <signal.h>
--- libunwind-20110911_1.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?201201310228.q0V2SoE8074653>