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

Andreas Fester <[email protected]> Mon, 24 Oct 2005 21:39:52 +0200
Newsgroups gmane.linux.drivers.hpofficejet.devel
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------010805080908010703050105
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

> 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

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-----

--------------010805080908010703050105
Content-Type: text/plain;
 name="patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="patch"

--- hpoj-0.91.orig/lib/hpojip/xjpg_fix.c
+++ hpoj-0.91/lib/hpojip/xjpg_fix.c
@@ -389,7 +389,7 @@
 \*****************************************************************************/
 
 
-#define MYLOCATE(p) (void *)(p)=(g->headerBuffer+lenAddedHeader)
+#define MYLOCATE(p) p=(g->headerBuffer+lenAddedHeader)
 #define MYWRITE(p) lenAddedHeader+=sizeof(*(p))
 #define MYWRITEBUF(data,datalen) \
     do { \

--------------010805080908010703050105--


-------------------------------------------------------
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