Bug#386673: patch

2006-09-22 Thread Alexis Sukrieh

Hi,

The patched 2.6.8 version has hit debian unstable yesterday. It did 
build fine on ppc, great. Though, a user reported that when launching 
electricsheep (on ppc), he got the following error:


$ electricsheep
X Error of failed request:  BadMatch (invalid parameter attributes)
   Major opcode of failed request:  141 (XVideo)
   Minor opcode of failed request:  19 ()
   Serial number of failed request:  91
   Current serial number in output stream:  91
[1]5535 terminated  electricsheep

But when he launches electricsheep with `--mplayer 1' it did work.

As I don't have a sid ppc box, I cannot test that issue, thus I welcome 
very much ideas and tests.


Cheers,

--
Alexis Sukrieh



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#386673: patch

2006-09-21 Thread Steinar H. Gunderson
On Mon, Sep 18, 2006 at 09:05:44AM +0200, Alexis Sukrieh wrote:
 Hmm, after applying your patch to the sources, I've built the package on 
 my ppc (which is sarge actually) and I got the following assembly error 
 messages:

It builds fine in bruckner's sid dchroot, so I assume this is a problem with
sarge, not the patch.

/* Steinar */
-- 
Homepage: http://www.sesse.net/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#386673: patch

2006-09-21 Thread Alexis Sukrieh

[ I CC Spot, the upstream author ]

Steinar H. Gunderson wrote:

On Mon, Sep 18, 2006 at 09:05:44AM +0200, Alexis Sukrieh wrote:
Hmm, after applying your patch to the sources, I've built the package on 
my ppc (which is sarge actually) and I got the following assembly error 
messages:


It builds fine in bruckner's sid dchroot, so I assume this is a problem with
sarge, not the patch.


Great news, I'll apply the patch as soon as I can then.

Thanks!


--
Alexis Sukrieh



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Processed: Re: Bug#386673: patch

2006-09-18 Thread Debian Bug Tracking System
Processing commands for [EMAIL PROTECTED]:

 tags 386673 + moreinfo
Bug#386673: electricsheep: FTBFS on powerpc: undefined reference to `constants'
Tags were: confirmed
Tags added: moreinfo

 thanks
Stopping processing here.

Please contact me if you need assistance.

Debian bug tracking system administrator
(administrator, Debian Bugs database)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#386673: patch

2006-09-18 Thread Alexis Sukrieh

tags 386673 + moreinfo
thanks

[EMAIL PROTECTED] wrote:
Hi, 

The attached patch works around the problem. 


Hmm, after applying your patch to the sources, I've built the package on 
my ppc (which is sarge actually) and I got the following assembly error 
messages:


Making all in libmpeg2
make[4]: Entering directory `/tmp/electricsheep-2.6.8/mpeg2dec/libmpeg2'
powerpc-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include 
-I../include-Wall -g -O2 -c decode.c
powerpc-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include 
-I../include-Wall -g -O2 -c header.c
powerpc-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include 
-I../include-Wall -g -O2 -c stats.c
powerpc-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include 
-I../include-Wall -g -O2 -c cpu_state.c

/tmp/cchbUeuW.s: Assembler messages:
/tmp/cchbUeuW.s:47: Error: Unrecognized opcode: `stvx'
/tmp/cchbUeuW.s:49: Error: Unrecognized opcode: `stvx'
/tmp/cchbUeuW.s:51: Error: Unrecognized opcode: `stvx'
/tmp/cchbUeuW.s:53: Error: Unrecognized opcode: `stvx'
/tmp/cchbUeuW.s:55: Error: Unrecognized opcode: `stvx'
/tmp/cchbUeuW.s:57: Error: Unrecognized opcode: `stvx'
/tmp/cchbUeuW.s:59: Error: Unrecognized opcode: `stvx'
/tmp/cchbUeuW.s:61: Error: Unrecognized opcode: `stvx'
/tmp/cchbUeuW.s:63: Error: Unrecognized opcode: `stvx'
/tmp/cchbUeuW.s:65: Error: Unrecognized opcode: `stvx'
/tmp/cchbUeuW.s:67: Error: Unrecognized opcode: `stvx'
/tmp/cchbUeuW.s:68: Error: Unrecognized opcode: `stvx'
/tmp/cchbUeuW.s:83: Error: Unrecognized opcode: `lvx'
/tmp/cchbUeuW.s:85: Error: Unrecognized opcode: `lvx'
/tmp/cchbUeuW.s:87: Error: Unrecognized opcode: `lvx'
/tmp/cchbUeuW.s:89: Error: Unrecognized opcode: `lvx'
/tmp/cchbUeuW.s:91: Error: Unrecognized opcode: `lvx'
/tmp/cchbUeuW.s:93: Error: Unrecognized opcode: `lvx'
/tmp/cchbUeuW.s:95: Error: Unrecognized opcode: `lvx'
/tmp/cchbUeuW.s:97: Error: Unrecognized opcode: `lvx'
/tmp/cchbUeuW.s:99: Error: Unrecognized opcode: `lvx'
/tmp/cchbUeuW.s:101: Error: Unrecognized opcode: `lvx'
/tmp/cchbUeuW.s:103: Error: Unrecognized opcode: `lvx'
/tmp/cchbUeuW.s:104: Error: Unrecognized opcode: `lvx'
make[4]: *** [cpu_state.o] Error 1
make[4]: Leaving directory `/tmp/electricsheep-2.6.8/mpeg2dec/libmpeg2'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/tmp/electricsheep-2.6.8/mpeg2dec'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/electricsheep-2.6.8'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/electricsheep-2.6.8'
make: *** [build-stamp] Error 2

It looks like the patch introduced some unknown opcode. Do you manage to 
build the package on a ppc architecture?



Regards,

--
Alexis Sukrieh



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#386673: patch

2006-09-17 Thread p2
Hi, 

The attached patch works around the problem. A better fix would be to
use an input constraint or to just use the C doe and have the compiler
generate altivec code. Is there a reason the gcc 2.95 generated altivec
code needs to be used ?

Thanks,

Peter (p2).

-- 
Goa is a state of mind
--- electricsheep-2.6.8/mpeg2dec/libmpeg2/idct_altivec.c2002-12-12 
09:33:31.0 +
+++ electricsheep-2.6.8.new/mpeg2dec/libmpeg2/idct_altivec.c2006-09-17 
20:38:29.401074200 +
@@ -58,411 +58,413 @@
 void mpeg2_idct_copy_altivec (int16_t * block, uint8_t * dest, int stride)
 {
 asm ( \n
-   #  stwu%r1,  -128(%r1) \n
-   #  mflr%r0 \n
-   #  stw %r0,  132(%r1)  \n
-   #  addi%r0,  %r1,  128 \n
+   #  stwu%%r1,  -128(%%r1)   \n
+   #  mflr%%r0\n
+   #  stw %%r0,  132(%%r1)\n
+   #  addi%%r0,  %%r1,  128   \n
#  bl  _savev25\n
 
-  addi%r9,  %r3,  112 \n
-  vspltish%v25, 4 \n
-  vxor%v13, %v13, %v13\n
-  lis %r10, [EMAIL PROTECTED] \n
-  lvx %v1,  0,%r9 \n
-  la  %r10, [EMAIL PROTECTED](%r10) \n
-  lvx %v5,  0,%r3 \n
-  addi%r9,  %r3,  16  \n
-  lvx %v8,  0,%r10\n
-  addi%r11, %r10, 32  \n
-  lvx %v12, 0,%r9 \n
-  lvx %v6,  0,%r11\n
-  addi%r8,  %r3,  48  \n
-  vslh%v1,  %v1,  %v25\n
-  addi%r9,  %r3,  80  \n
-  lvx %v11, 0,%r8 \n
-  vslh%v5,  %v5,  %v25\n
-  lvx %v0,  0,%r9 \n
-  addi%r11, %r10, 64  \n
-  vsplth  %v3,  %v8,  2   \n
-  lvx %v7,  0,%r11\n
-  addi%r9,  %r3,  96  \n
-  vslh%v12, %v12, %v25\n
-  vmhraddshs  %v27, %v1,  %v6,  %v13  \n
-  addi%r8,  %r3,  32  \n
-  vsplth  %v2,  %v8,  5   \n
-  lvx %v1,  0,%r9 \n
-  vslh%v11, %v11, %v25\n
-  addi%r3,  %r3,  64  \n
-  lvx %v9,  0,%r8 \n
-  addi%r9,  %r10, 48  \n
-  vslh%v0,  %v0,  %v25\n
-  lvx %v4,  0,%r9 \n
-  vmhraddshs  %v31, %v12, %v6,  %v13  \n
-  addi%r10, %r10, 16  \n
-  vmhraddshs  %v30, %v0,  %v7,  %v13  \n
-  lvx %v10, 0,%r3 \n
-  vsplth  %v19, %v8,  3   \n
-  vmhraddshs  %v15, %v11, %v7,  %v13  \n
-  lvx %v12, 0,%r10\n
-  vsplth  %v6,  %v8,  4   \n
-  vslh%v1,  %v1,  %v25\n
-  vsplth  %v11, %v8,  1   \n
-  li  %r9,  4 \n
-  vslh%v9,  %v9,  %v25\n
-  vsplth  %v7,  %v8,  0   \n
-  vmhraddshs  %v18, %v1,  %v4,  %v13  \n
-  vspltw  %v8,  %v8,  3   \n
-  vsubshs %v0,  %v13, %v27\n
-  vmhraddshs  %v1,  %v9,  %v4,  %v13  \n
-  vmhraddshs  %v17, %v3,  %v31, %v0   \n
-  vmhraddshs  %v4,  %v2,  %v15, %v30  \n
-  vslh%v10, %v10, %v25\n
-  vmhraddshs  %v9,  %v5,  %v12, %v13  \n
-  vspltish%v25, 6 \n
-  vmhraddshs  %v5,  %v10, %v12, %v13  \n
-  vmhraddshs  %v28, %v19, %v30, %v15  \n
-  vmhraddshs  %v27, %v3,  %v27, %v31  \n
-  vsubshs %v0,  %v13, %v18\n
-  vmhraddshs  %v18, %v11, %v18, %v1   \n
-  vaddshs %v30, %v17, %v4 \n
-  vmhraddshs  %v12, %v11, %v1,  %v0   \n
-  vsubshs %v4,  %v17, %v4 \n
-  vaddshs %v10, %v9,  %v5 \n
-  vsubshs %v17, %v27, %v28\n
-