On Monday 19 September 2005 02:15, houghi wrote:
> On Mon, Sep 19, 2005 at 01:55:23AM +0200, Anders Johansson wrote:
> > On Monday 19 September 2005 01:37, houghi wrote:
> > > No idea if this is SUSE 10.0 RC1 related, perl related or something
> > > else.
> >
> > It's gcc 4 related. In gcc 4 you are no longer allowed to cast an lvalue
> > (basically the left hand side of an assignment). The program needs to be
> > patched to work with gcc 4.x
>
> Darn. So I am stuck till somebody fixes it. I am unable to do that. Will
> mail the authors. Thanks for the feedback.
cd RTjpeg/codec/modules and apply
--- RTb2s.c.orig 2005-09-19 02:07:33.564504000 +0200
+++ RTb2s.c 2005-09-19 02:08:12.290924250 +0200
@@ -2,7 +2,7 @@
{
int ci=1, co=1, tmp;
- (u8)strm[0]=(u8)(data[RTjpeg_ZZ[0]]>254) ? 254:
((data[RTjpeg_ZZ[0]]<0)?0:data[RTjpeg_ZZ[0]]);
+ strm[0]=(u8)(data[RTjpeg_ZZ[0]]>254) ? 254:
((data[RTjpeg_ZZ[0]]<0)?0:data[RTjpeg_ZZ[0]]);
for(ci=1; ci<=bt8; ci++)
if(data[RTjpeg_ZZ[ci]]>0)
--- RTb2s_raw.c.orig 2005-09-19 02:08:45.264985000 +0200
+++ RTb2s_raw.c 2005-09-19 02:09:56.617444250 +0200
@@ -2,7 +2,7 @@
{
int ci=1, co=1, tmp;
- (u8)strm[0]=(u8)(data[RTjpeg_ZZ[0]]>254) ? 254:
((data[RTjpeg_ZZ[0]]<0)?0:data[RTjpeg_ZZ[0]]);
+ strm[0]=(u8)(data[RTjpeg_ZZ[0]]>254) ? 254:
((data[RTjpeg_ZZ[0]]<0)?0:data[RTjpeg_ZZ[0]]);
for(ci=1; ci<=63; ci++)
if(data[RTjpeg_ZZ[ci]]>0)
and then cd RTjpeg and edit the Makefile.PL to make it
codec/RTjpeg.o: codec/RTjpeg.c codec/RTjpeg.h
\$(CCCMD) -fPIC -o \$@ \$<
EOF
}
After that it compiles
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]