[Bug 16695] Wine broken on PowerPC

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Jan 10 01:20:49 CST 2009


http://bugs.winehq.org/show_bug.cgi?id=16695





--- Comment #1 from Austin English <austinenglish at gmail.com>  2009-01-10 01:20:48 ---
Seems to be related to this compiler error:

ccache gcc -c -I. -I. -I../include -I../include  -D__WINESRC__  -Wall -pipe
-fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings
-Wtype-limits -Wpointer-arith  -g -O2  -o context_powerpc.o context_powerpc.c
context_powerpc.c:268: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘get_context_ip’
make: *** [context_powerpc.o] Error 1

This patch fixes it:
diff --git a/server/context_powerpc.c b/server/context_powerpc.c
index 9825a4a..d41b451 100644
--- a/server/context_powerpc.c
+++ b/server/context_powerpc.c
@@ -265,7 +265,7 @@ void copy_context( CONTEXT *to, const CONTEXT *from,
unsigned int flags )
 }

 /* retrieve the current instruction pointer of a context */
-client_ptr_t get_context_ip( const CONTEXT *context )
+unsigned int get_context_ip( const CONTEXT *context )
 {
     return context->Iar;
 }

and 'wine notepad' runs! :-)

This is pretty lowlevel stuff, and removing client_ptr_t doesn't seem quite
right to me. Looking at the history of the file, Alexandre just added that a
week ago, "server: Replace EXCEPTION_RECORD by an explicit definition in debug
events." - 9f365e7705e137a9d6058abd6486cdf67e491eb0.


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the wine-bugs mailing list