From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Feb 16 13:40:06 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 965891065672 for ; Mon, 16 Feb 2009 13:40:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 674308FC1D for ; Mon, 16 Feb 2009 13:40:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n1GDe6gG016554 for ; Mon, 16 Feb 2009 13:40:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n1GDe6IA016553; Mon, 16 Feb 2009 13:40:06 GMT (envelope-from gnats) Resent-Date: Mon, 16 Feb 2009 13:40:06 GMT Resent-Message-Id: <200902161340.n1GDe6IA016553@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, Tsurutani Naoki Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 268B4106566C for ; Mon, 16 Feb 2009 13:33:53 +0000 (UTC) (envelope-from turutani@scphys.kyoto-u.ac.jp) Received: from m101.mbos.jp (mbos141-201.alpenstock.jp [220.156.141.201]) by mx1.freebsd.org (Postfix) with ESMTP id B06EC8FC12 for ; Mon, 16 Feb 2009 13:33:52 +0000 (UTC) (envelope-from turutani@scphys.kyoto-u.ac.jp) Received: (qmail 17335 invoked from network); 16 Feb 2009 22:33:51 +0900 Received: from softbank218183189199.bbtec.net (HELO h120.65.226.10.32118.vlan.kuins.net) (turutani@mbox.kyoto-inet.or.jp@[218.183.189.199]) (envelope-sender ) by pyongyang.mbos (qmail-ldap-1.03) with SMTP for ; 16 Feb 2009 22:33:51 +0900 Received: from h120.65.226.10.32118.vlan.kuins.net (localhost [127.0.0.1]) by h120.65.226.10.32118.vlan.kuins.net (8.14.3/8.14.3/20071004-1) with ESMTP id n1GDXlKq009803; Mon, 16 Feb 2009 22:33:47 +0900 (JST) (envelope-from turutani@h120.65.226.10.32118.vlan.kuins.net) Received: (from turutani@localhost) by h120.65.226.10.32118.vlan.kuins.net (8.14.3/8.14.3/Submit) id n1GDXksk009802; Mon, 16 Feb 2009 22:33:46 +0900 (JST) (envelope-from turutani) Message-Id: <200902161333.n1GDXksk009802@h120.65.226.10.32118.vlan.kuins.net> Date: Mon, 16 Feb 2009 22:33:46 +0900 (JST) From: Tsurutani Naoki To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: turutani@scphys.kyoto-u.ac.jp Subject: ports/131745: makes graphics/libemf buildable on amd64 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Tsurutani Naoki List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Feb 2009 13:40:06 -0000 >Number: 131745 >Category: ports >Synopsis: makes graphics/libemf buildable on amd64 >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Feb 16 13:40:05 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Tsurutani Naoki >Release: FreeBSD 7.1-STABLE i386 >Organization: >Environment: System: FreeBSD h120.65.226.10.32118.vlan.kuins.net 7.1-STABLE FreeBSD 7.1-STABLE #17: Wed Jan 7 11:14:01 JST 2009 turutani@h120.65.226.10.32118.vlan.kuins.net:/usr/local/work/usr/obj/usr/src/sys/POLYMER i386 >Description: fix a problem on recent amd64. now, libemf is buildable. >How-To-Repeat: >Fix: here is a patch taken from redhat. i do not know why this fix is not adopted until now. if there is any trouble with this patch, please tell me. this patch simply omit the functions that are not used in this library; if any other libraries use this function, errors occurs, but it is the same with the absence of this library in building trouble. --- include/wine/winbase.h.orig 2004-07-29 08:20:38.000000000 +0200 +++ include/wine/winbase.h 2009-02-17 00:00:00.000000000 +0900 @@ -1802,6 +1802,7 @@ VOID WINAPI SetLastError(DWORD); #endif /* __i386__ && __GNUC__ */ +#if !defined(__alpha__) && !defined(__amd64__) && !defined(__ia64__) && !defined(__sparc64__) /* FIXME: should handle platforms where sizeof(void*) != sizeof(long) */ static inline PVOID WINAPI InterlockedCompareExchangePointer( PVOID *dest, PVOID xchg, PVOID compare ) { @@ -1812,6 +1813,7 @@ { return (PVOID)InterlockedExchange( (PLONG)dest, (LONG)val ); } +#endif >Release-Note: >Audit-Trail: >Unformatted: