ports/131745: makes graphics/libemf buildable on amd64

Tsurutani Naoki turutani at scphys.kyoto-u.ac.jp
Mon Feb 16 13:40:06 UTC 2009


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



More information about the freebsd-ports-bugs mailing list