Re: Compiling using gcc4
Andreas Fester <[email protected]> Sat, 22 Oct 2005 13:52:06 +0200
| Newsgroups | gmane.linux.drivers.hpofficejet.devel |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. --------------050304030504060202060806 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Mike, the Debian package applies the attached patch to xjpg_fix.c. It seems that this might fix your problem. Regards, Andreas Mike Greubel wrote: > Hello list, > > I have problems compiling hpoj with gcc4. I analyzed it and have no > solution for this: > > cc -O -Wall -g -I/usr/src/hpoj-0.91/include [...] > It seems that gcc4 changed its behavior in makro-handling, because its > the #define MYLOCATE. [...] - -- 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 iD8DBQFDWifmZ3bQVzeW+rsRAjllAJ9ijsxXYKNCbNXxOy8dIuoDjKJkrQCgv7i2 X1grGjsjWsDdWlFEMoP3ILs= =6p+x -----END PGP SIGNATURE----- --------------050304030504060202060806 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 { \ --------------050304030504060202060806-- ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl