Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Feb 2009 22:33:46 +0900 (JST)
From:      Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        turutani@scphys.kyoto-u.ac.jp
Subject:   ports/131745: makes graphics/libemf buildable on amd64
Message-ID:  <200902161333.n1GDXksk009802@h120.65.226.10.32118.vlan.kuins.net>
Resent-Message-ID: <200902161340.n1GDe6IA016553@freefall.freebsd.org>

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

>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:



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