SUMMARY: compiling xpaint under Solaris 2.x/Openwindows?

From: Christopher L. Barnard (
Date: Thu Feb 13 1997 - 09:11:18 CST

I asked:

> I have been unable to compile xpaint version 2.1.1 (I'm pretty sure
> thats the latest version) under Solaris 2.5.1 using either Sun's
> cc or gcc version 2.7.2. In either case it dies in the libtiff
> subdirectory on the mkg3states file.
> The error that I get, either with gcc or cc, indicates a problem
> with the stdio.h and/or unistd.h header files (and with gcc, the
> string.h header file as well), not with the xpaint source. I'm at
> a bit of a loss at this point- I certainly shouldn't have to edit
> these files to get xpaint to compile...
> This is an example of what happens with gcc.
> [irrelevant, now]
> If anyone can give me some suggestions on what to try next, I'd be
> most appreciative; the sun-managers archives didn't turn up anything
> helpful when I did a search on "xpaint". Thanks much.

The answer:

Although version 2.1.1 is the most recent version released by David
Koblas (the original author of Xpaint), a more recent version is now
available from Torsten Martinsen. I obtained version 2.4.8 from

and it compiled without a hitch. My thanks to

David Kinney <>
Davin Milun <milun@cs.Buffalo.EDU>
Casper Dik <casper@holland.Sun.COM>
Rachel Polanskis <>
and of course Torsten Martinsen, for maintaining the xpaint program.

Casper Dik wins the extra credit points for correctly identifying
that the code snippet I included was generated with xmkmf for the Sun
CC compiler, but I did a make with CC=gcc to generate my example for
this email. You can't fool the folks on this mailing list! ;^)

| Christopher L. Barnard O When I was a boy I was told that |
| / \ anybody could become president. |
| (312) 347-4901 O---O Now I'm beginning to believe it. |
| --Clarence Darrow |
+----------PGP public key available via finger or PGP keyserver---------+

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:46 CDT