People have created several fixes for that problem.
One of them is available by adamh at densi dot com at:
http://gcc.gnu.org/ml/gcc-bugs/2003-02/msg00611.html
Find following lines from xwin.c
pfm = XListPixmapFormats(display, &i);
if (pfm != NULL)
{
/* Use maximum bpp for this depth - this is generally
desirable, e.g. 24 bits->32 bits. */
while (i--)
{
if ((pfm[i].depth == depth) && (pfm[i].bits_per_pixel > bpp))
{
bpp = pfm[i].bits_per_pixel;
}
}
XFree(pfm);
}
if (bpp < 8)
{
error("Less than 8 bpp not currently supported.\n");
XCloseDisplay(display);
return False;
}
Add two lines into that text:
/* Use maximum bpp for this depth - this is generally
desirable, e.g. 24 bits->32 bits. */
+ warning("Real depth: %d, bpp: %d\n", depth, bpp);
while (i--)
{
+ warning("depth %d, bpp %d\n", pfm[i].depth, pfm[i].bits_per_pixel);
if ((pfm[i].depth == depth) && (pfm[i].bits_per_pixel > bpp))
{
bpp = pfm[i].bits_per_pixel;
It worked for me...
There is still one more solution available and it involves mostly in deleting 8bpp part from xwin.c. I cant't get my hands on it right now.