From: Laura R. P. <web...@re...> - 2005-10-24 20:17:55
|
Thanks. I'm new to this, how do I apply this patch?=20 Laura. Andreas Fester wrote: >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >Hi, > > =20 > >>xjpg_fix.c: In function =91jpgFix_getActualTraits=92: >>xjpg_fix.c:512: error: invalid lvalue in assignment >>xjpg_fix.c:533: error: invalid lvalue in assignment >>xjpg_fix.c:549: error: invalid lvalue in assignment >>xjpg_fix.c:560: error: invalid lvalue in assignment >>xjpg_fix.c:581: error: invalid lvalue in assignment >>xjpg_fix.c:587: error: invalid lvalue in assignment >>xjpg_fix.c:595: error: invalid lvalue in assignment >>xjpg_fix.c:605: error: invalid lvalue in assignment >>xjpg_fix.c:610: error: invalid lvalue in assignment >>make[1]: *** [xjpg_fix.shared.o] Error 1 >>make[1]: Leaving directory >>`/home/Lioness/Desktop/installs/hpoj-0.91/lib/hpojip'make: *** >>[just_compile] Error 2 >> =20 >> > >this seems to be the same issue with the MYLOCATE macro >reported some days ago. I assume that you are using >gcc4; please try the attached patch, it should fix >the issue. > >Kind Regards, > > Andreas > >- -- >Andreas Fester >mailto:an...@li... >WWW: http://www.littletux.net >ICQ: 326674288 >-----BEGIN PGP SIGNATURE----- >Version: GnuPG v1.4.1 (GNU/Linux) >Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org > >iD8DBQFDXTiIZ3bQVzeW+rsRAumkAJwMPmzxafRzLBhVDbIuk6vgaNIN7wCg2mvZ >iz01nmfF8m8SqpMuUte96Xo=3D >=3DpbdK >-----END PGP SIGNATURE----- > =20 > >------------------------------------------------------------------------ > >--- hpoj-0.91.orig/lib/hpojip/xjpg_fix.c >+++ hpoj-0.91/lib/hpojip/xjpg_fix.c >@@ -389,7 +389,7 @@ > \**********************************************************************= *******/ >=20 >=20 >-#define MYLOCATE(p) (void *)(p)=3D(g->headerBuffer+lenAddedHeader) >+#define MYLOCATE(p) p=3D(g->headerBuffer+lenAddedHeader) > #define MYWRITE(p) lenAddedHeader+=3Dsizeof(*(p)) > #define MYWRITEBUF(data,datalen) \ > do { \ > =20 > |