Re: HP PSC 1110, Fedora Core 4, hpoj error messages

Laura Rhian Pickard <[email protected]> Mon, 24 Oct 2005 21:17:15 +0100
Newsgroups gmane.linux.drivers.hpofficejet.devel
Organization Refine Ltd
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------060304050807070900050902
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: quoted-printable

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:[email protected]
>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
>

--------------060304050807070900050902
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content=3D"text/html;charset=3Dwindows-1252"
 http-equiv=3D"Content-Type">
  <title></title>
</head>
<body bgcolor=3D"#ffffff" text=3D"#000000">
Thanks.=A0 I'm new to this, how do I apply this patch?=A0 <br>
<br>
Laura.<br>
<br>
Andreas Fester wrote:
<blockquote cite=3D"[email protected]" type=3D"cite">
  <pre wrap=3D"">-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

  </pre>
  <blockquote type=3D"cite">
    <pre wrap=3D"">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
    </pre>
  </blockquote>
  <pre wrap=3D""><!---->
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
<a class=3D"moz-txt-link-freetext" href=3D"mailto:[email protected]">=
mailto:[email protected]</a>
WWW: <a class=3D"moz-txt-link-freetext" href=3D"http://www.littletux.net"=
>http://www.littletux.net</a>
ICQ: 326674288
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - <a class=3D"moz-txt-link-freetext=
" href=3D"http://enigmail.mozdev.org">http://enigmail.mozdev.org</a>

iD8DBQFDXTiIZ3bQVzeW+rsRAumkAJwMPmzxafRzLBhVDbIuk6vgaNIN7wCg2mvZ
iz01nmfF8m8SqpMuUte96Xo=3D
=3DpbdK
-----END PGP SIGNATURE-----
  </pre>
  <pre wrap=3D"">
<hr size=3D"4" width=3D"90%">
--- 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-&gt;headerBuffer+lenAddedHeader)
+#define MYLOCATE(p) p=3D(g-&gt;headerBuffer+lenAddedHeader)
 #define MYWRITE(p) lenAddedHeader+=3Dsizeof(*(p))
 #define MYWRITEBUF(data,datalen) \
     do { \
  </pre>
</blockquote>
</body>
</html>

--------------060304050807070900050902--


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information