Re: a2jmidid build failure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 05, 2009 at 07:54:41PM +0200, alex stone wrote:

> Build failed
> Task failed (error #129) : (bld://home/alex/a2jmidid-4/sigsegv_1.o)
> ../sigsegv.c.95: error: 'union uc_regs_ptr' has no member named 'gregs'
> 
> This is occuring in Ubuntu Hardy PPC.

Ok, I can confirm this on my QS21.

Find attached a patch which fixes this issue, at least on this 64bit
system (IBM CellBlade).


There seems to be a difference between 32 and 64bit PPC, but I haven't
checked the details, so the patch might not catch your actual
configuration.

If this patch doesn't work for you, just rip off the whole for-statement
around line 95, you don't need it. (it's only needed in case of
segfaults, and I guess you don't want to get one of those ;)


HTH

-- 
mail: adi@xxxxxxx  	http://adi.thur.de	PGP/GPG: key via keyserver

Begehst du gerne selbst 'nen Mord, dann rauche kraeftig, aber Lord.
--- sigsegv.c	2008-08-03 16:37:21.000000000 +0200
+++ sigsegv.c.new	2009-02-05 19:19:05.000000000 +0100
@@ -92,7 +92,13 @@
     a2j_error("info.si_code  = %d (%s)", info->si_code, si_codes[info->si_code]);
     a2j_error("info.si_addr  = %p", info->si_addr);
     for(i = 0; i < NGREG; i++)
-        a2j_error("reg[%02d]       = 0x" REGFORMAT, i, ucontext->uc_mcontext.gregs[i]);
+        a2j_error("reg[%02d]       = 0x" REGFORMAT, i, 
+#if defined(__powerpc__)
+                ucontext->uc_mcontext.uc_regs
+#else
+                ucontext->uc_mcontext.gregs[i]
+#endif
+                 );
 
 #if defined(SIGSEGV_STACK_X86) || defined(SIGSEGV_STACK_IA64)
 # if defined(SIGSEGV_STACK_IA64)
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@xxxxxxxxxxxxxxxxxxxx
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user

[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux