public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/9699: rdesktop CVS compiles but exits with "ERROR: Less than 8 bpp not currently supported."
@ 2003-04-01 21:55 bangerth
0 siblings, 0 replies; 3+ messages in thread
From: bangerth @ 2003-04-01 21:55 UTC (permalink / raw)
To: adamh, gcc-bugs, gcc-prs, nobody
Synopsis: rdesktop CVS compiles but exits with "ERROR: Less than 8 bpp not currently supported."
State-Changed-From-To: feedback->closed
State-Changed-By: bangerth
State-Changed-When: Tue Apr 1 21:55:07 2003
State-Changed-Why:
On request of submitter
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9699
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c/9699: rdesktop CVS compiles but exits with "ERROR: Less than 8 bpp not currently supported."
@ 2003-02-15 0:01 bangerth
0 siblings, 0 replies; 3+ messages in thread
From: bangerth @ 2003-02-15 0:01 UTC (permalink / raw)
To: adamh, gcc-bugs, gcc-prs, nobody
Synopsis: rdesktop CVS compiles but exits with "ERROR: Less than 8 bpp not currently supported."
State-Changed-From-To: open->feedback
State-Changed-By: bangerth
State-Changed-When: Sat Feb 15 00:01:26 2003
State-Changed-Why:
I think we need a little bit more information in order to
find out who's at fault here. Please take a look at
http://gcc.gnu.org/bugs.html
to see what we need.
Thanks
Wolfgang
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9699
^ permalink raw reply [flat|nested] 3+ messages in thread
* c/9699: rdesktop CVS compiles but exits with "ERROR: Less than 8 bpp not currently supported."
@ 2003-02-14 0:56 adamh
0 siblings, 0 replies; 3+ messages in thread
From: adamh @ 2003-02-14 0:56 UTC (permalink / raw)
To: gcc-gnats
>Number: 9699
>Category: c
>Synopsis: rdesktop CVS compiles but exits with "ERROR: Less than 8 bpp not currently supported."
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Feb 14 00:56:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: adamh@densi.com
>Release: gcc-3_3-branch
>Organization:
>Environment:
Linux 2.4.20, gcc-3.3 compiled from CVS today (2-13-03)
glibc-2.3.1, XFree86 Version 3.2.1
Athlon XP 1600+, 256MB RAM
>Description:
So it looks like an rdesktop bug.
So I went in to debug. I added a couple of lines of the source code to print out various warnings, compiled again, and it can connect to the server. I removed the warnings, recompiled, and it exits with the error, "ERROR: Less than 8 bpp not currently supported."
I barely know C, so I apologize for not being able to think up a little example snippet of code. But I hope I've given enough information in the 'how-to-repeat' -- I for one can reproduce this behavior 100% of the time.
I'll bet this is some kind of one-in-a-million thing, but here's the relevant snippet of code (in xwin.c, around line 525).
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;
}
>How-To-Repeat:
$ export CVSROOT=:pserver:anonymous@cvs.rdesktop.sourceforge.net:/cvsroot/rdesktop
$ cvs co rdesktop
$ cd rdesktop
$ ./configure
$ make
$ su -c 'make install'
$ rdesktop www.example.com
The program will exit with "ERROR: Less than 8 bpp not currently supported."
Apply the following patch (to CVS checkout of 2-13-03):
-------------------------------------------------------
diff -u -3 -p -r1.97 xwin.c
--- xwin.c 10 Feb 2003 13:02:57 -0000 1.97
+++ xwin.c 14 Feb 2003 00:47:03 -0000
@@ -527,8 +527,10 @@ ui_init(void)
{
/* 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;
-------------------------------------------------------
$ make
$ su -c 'make install'
$ rdesktop www.example.com
This time rdesktop will time out looking up www.example.com, which is what it should do.
>Fix:
I haven't a clue. This is my first bug report and I have a feeling it's a lousy one. I apologize in advance, and I'm aware that it's probably not a compiler bug, but I just can't see what else it could be when adding two harmless lines of code changes the program's behavior.
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-04-01 21:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-01 21:55 c/9699: rdesktop CVS compiles but exits with "ERROR: Less than 8 bpp not currently supported." bangerth
-- strict thread matches above, loose matches on Subject: below --
2003-02-15 0:01 bangerth
2003-02-14 0:56 adamh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).