[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#288748: marked as done (zgv: FTBFS with gcc-4.0: invalid lvalue in assignment)



Your message dated Sun, 7 Aug 2005 13:51:08 +0200
with message-id <20050807115108.GA3414@andaco.de>
and subject line zgv: #288748-done
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 5 Jan 2005 13:49:29 +0000
>From aj@andaco.de Wed Jan 05 05:49:28 2005
Return-path: <aj@andaco.de>
Received: from c196149.adsl.hansenet.de (localhost.localdomain) [213.39.196.149] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CmBXT-0002vi-00; Wed, 05 Jan 2005 05:49:27 -0800
Received: from aj by localhost.localdomain with local (Exim 4.34)
	id 1CmBd4-0005ZN-RH; Wed, 05 Jan 2005 14:55:14 +0100
To: Debian Bug Tracking System <submit@bugs.debian.org>
From: Andreas Jochens <aj@andaco.de>
Subject: zgv: FTBFS with gcc-4.0: invalid lvalue in assignment
Message-Id: <E1CmBd4-0005ZN-RH@localhost.localdomain>
Date: Wed, 05 Jan 2005 14:55:14 +0100
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: zgv
Severity: normal
Tags: patch

When building 'zgv' with gcc-4.0,
I get the following error:

gcc -O2 -Wall -fomit-frame-pointer -finline-functions -DBACKEND_SVGALIB -DRGB_DB_FILE=\"/usr/X11R6/lib/X11/rgb.txt\"   -c -o font.o font.c
font.c: In function 'vgadrawtext_bmp':
font.c:502: error: invalid lvalue in assignment
make[2]: *** [font.o] Error 1
make[2]: Leaving directory `/zgv-5.7/src'

With the attached patch 'zgv' can be compiled with gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/zgv-5.7/src/font.c ./src/font.c
--- ../tmp-orig/zgv-5.7/src/font.c	2003-04-05 19:41:51.000000000 +0200
+++ ./src/font.c	2005-01-05 14:01:21.974692720 +0100
@@ -498,9 +498,10 @@
 if(vga_getcolors()>256 || squish_x)
   dont_use_lines=1;
 
-if(current_colour!=old_colour && !dont_use_lines)
-  memset(scanbit,old_colour=current_colour,sizeof(scanbit));
-
+if(current_colour!=old_colour && !dont_use_lines) {
+  memset(scanbit,current_colour,sizeof(scanbit));
+  old_colour=current_colour;
+}
 /* pick font to match siz. */
 switch(siz)
   {

---------------------------------------
Received: (at 288748-done) by bugs.debian.org; 7 Aug 2005 11:51:10 +0000
>From aj@andaco.de Sun Aug 07 04:51:10 2005
Return-path: <aj@andaco.de>
Received: from c187147.adsl.hansenet.de (localhost.localdomain) [213.39.187.147] 
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1E1jgL-0002eR-00; Sun, 07 Aug 2005 04:51:10 -0700
Received: from aj by localhost.localdomain with local (Exim 4.51)
	id 1E1jgK-0000t9-78; Sun, 07 Aug 2005 13:51:08 +0200
Date: Sun, 7 Aug 2005 13:51:08 +0200
To: 288748-done@bugs.debian.org
Subject: zgv: #288748-done
Message-ID: <20050807115108.GA3414@andaco.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.9i
From: Andreas Jochens <aj@andaco.de>
Delivered-To: 288748-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
	version=2.60-bugs.debian.org_2005_01_02

This issue has been fixed.



Reply to: