From: Laura R. P. <web...@re...> - 2005-10-23 23:04:03
|
Hi all, I am running Fedora Core 4 (64 bit) and am trying to set up my HP PSC=20 1110. When I try to install hpoj, I get error messages as below. The=20 install doesn't seem to complete successfully, as I cannot run ptal-init=20 and xsane cannot detect any scanners. Any suggestions of how to get around this much appreciated. Btw, I have=20 hplip installed and can print fine, but would like to be able to scan too= . Thanks very much, Laura Rhian Pickard. 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=20 `/home/Lioness/Desktop/installs/hpoj-0.91/lib/hpojip'make: ***=20 [just_compile] Error 2 |
From: Andreas F. <And...@gm...> - 2005-10-24 19:40:11
Attachments:
patch
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, > xjpg_fix.c: In function ‘jpgFix_getActualTraits’: > 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 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= =pbdK -----END PGP SIGNATURE----- |
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 > |
From: Andreas F. <And...@gm...> - 2005-10-24 20:30:12
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Laura Rhian Pickard wrote: > Thanks. I'm new to this, how do I apply this patch? simply save it to some location, e.g. /tmp Then change to the directory containing the hpoj sources, e.g. /tmp/hpoj-0.91 and use the cat(1) and the patch(1) commands to apply the patch: $ cat /tmp/patch | patch -p1 patching file lib/hpojip/xjpg_fix.c Of course, you could also apply this simple patch manually (the "-" line denotes lines which have been removed, the "+" lines those which have been added, so effectively the patch replaces #define MYLOCATE(p) (void *)(p)=(g->headerBuffer+lenAddedHeader) with #define MYLOCATE(p) p=(g->headerBuffer+lenAddedHeader) ), but this becomes more difficult with more complicated patches of course ;-) Best 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 iD8DBQFDXURHZ3bQVzeW+rsRAl4YAKCJYLDNLXreV2XK10JFybbK8XfpAACcD/X2 3HmsGzuMjOe/LJ8REcbKg9o= =uaHY -----END PGP SIGNATURE----- |