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

Bug#300867: marked as done (kmatplot: FTBFS (amd64/gcc-4.0): invalid cast from type 'double' to type 'QSGFill::Style')



Your message dated Sat, 21 Jan 2006 20:58:21 +0100
with message-id <87fynh4ale.fsf@diziet.irb.hr>
and subject line Fixed in kmatplot 0.4-7.1
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; 22 Mar 2005 11:55:20 +0000
>From aj@andaco.de Tue Mar 22 03:55:20 2005
Return-path: <aj@andaco.de>
Received: from c223012.adsl.hansenet.de (localhost.localdomain) [213.39.223.12] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DDhyh-0007ql-00; Tue, 22 Mar 2005 03:55:19 -0800
Received: from aj by localhost.localdomain with local (Exim 4.44)
	id 1DDhyg-0006NG-4N; Tue, 22 Mar 2005 12:55:18 +0100
To: Debian Bug Tracking System <submit@bugs.debian.org>
From: Andreas Jochens <aj@andaco.de>
Subject: kmatplot: FTBFS (amd64/gcc-4.0): invalid cast from type 'double' to type 'QSGFill::Style'
Message-Id: <E1DDhyg-0006NG-4N@localhost.localdomain>
Date: Tue, 22 Mar 2005 12:55:18 +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: kmatplot
Severity: normal
Tags: patch

When building 'kmatplot' on amd64 with gcc-4.0,
I get the following error:

g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/share/qt3/include -I.  -DQT_THREAD_SUPPORT -pthread  -O0 -g -Wall -O2 -fno-exceptions -fno-check-new  -c qsruler.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/share/qt3/include -I.  -DQT_THREAD_SUPPORT -pthread  -O0 -g -Wall -O2 -fno-exceptions -fno-check-new  -c qsgraphicaldata.cpp
qsgraphicaldata.cpp: In static member function 'static QSGFill QSGraphicalData::fillFromData(QSMatrix*, int, int, const QSGFill&)':
qsgraphicaldata.cpp:227: error: invalid cast from type 'double' to type 'QSGFill::Style'
qsgraphicaldata.cpp: In static member function 'static QSGLine QSGraphicalData::lineFromData(QSMatrix*, int, int, const QSGLine&)':
qsgraphicaldata.cpp:240: error: invalid cast from type 'double' to type 'QSGLine::Style'
qsgraphicaldata.cpp: In static member function 'static QSGPoint QSGraphicalData::pointFromData(QSMatrix*, int, int, const QSGPoint&)':
qsgraphicaldata.cpp:254: error: invalid cast from type 'double' to type 'QSGPoint::Style'
qsgraphicaldata.cpp:255: error: invalid cast from type 'double' to type 'QSGPoint::Fill'
qsgraphicaldata.cpp: In static member function 'static QSGArrow QSGraphicalData::arrowFromData(QSMatrix*, int, int, const QSGArrow&)':
qsgraphicaldata.cpp:269: error: invalid cast from type 'double' to type 'QSGArrow::Style'
make[4]: *** [qsgraphicaldata.o] Error 1
make[4]: Leaving directory `/kmatplot-0.4/kmatplot/widgets'

With the attached patch 'kmatplot' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/kmatplot-0.4/kmatplot/widgets/qsgraphicaldata.cpp ./kmatplot/widgets/qsgraphicaldata.cpp
--- ../tmp-orig/kmatplot-0.4/kmatplot/widgets/qsgraphicaldata.cpp	2002-01-24 17:48:51.000000000 +0100
+++ ./kmatplot/widgets/qsgraphicaldata.cpp	2005-03-22 12:16:33.000000000 +0100
@@ -224,7 +224,7 @@
   QSGFill result = default_value;
   if ( source && source->rows() > row ) {
 	int cols = source->cols() - start_col;
-	if ( cols>0 && !source->string(row,start_col+0).isEmpty() ) result.style  = (QSGFill::Style )source->value(row,start_col+0);
+	if ( cols>0 && !source->string(row,start_col+0).isEmpty() ) result.style  = (QSGFill::Style )(long)source->value(row,start_col+0);
         result.color = colorFromData( source, row, start_col+1, result.color );
 	}
   return result;
@@ -237,7 +237,7 @@
   QSGLine result = default_value;
   if ( source && source->rows() > row ) {	
 	int cols = source->cols() - start_col;
-	if ( cols>0 && !source->string(row,start_col+0).isEmpty() ) result.style  = (QSGLine::Style )source->value(row,start_col+0);
+	if ( cols>0 && !source->string(row,start_col+0).isEmpty() ) result.style  = (QSGLine::Style )(long)source->value(row,start_col+0);
 	if ( cols>1 && !source->string(row,start_col+1).isEmpty() ) result.width  = (int )source->value(row,start_col+1);
         result.color = colorFromData( source, row, start_col+2, result.color );
 	}
@@ -251,8 +251,8 @@
   QSGPoint result = default_value;
   if ( source && source->rows() > row ) {	
 	int cols = source->cols() - start_col;
-	if ( cols>0 && !source->string(row,start_col+0).isEmpty() ) result.style  = (QSGPoint::Style )source->value(row,start_col+0);
-	if ( cols>1 && !source->string(row,start_col+1).isEmpty() ) result.fill   = (QSGPoint::Fill  )source->value(row,start_col+1);
+	if ( cols>0 && !source->string(row,start_col+0).isEmpty() ) result.style  = (QSGPoint::Style )(long)source->value(row,start_col+0);
+	if ( cols>1 && !source->string(row,start_col+1).isEmpty() ) result.fill   = (QSGPoint::Fill  )(long)source->value(row,start_col+1);
 	if ( cols>2 && !source->string(row,start_col+2).isEmpty() ) result.size   = (int )source->value(row,start_col+2);
         result.color = colorFromData( source, row, start_col+3, result.color );
 	}
@@ -266,7 +266,7 @@
    QSGArrow result = default_value;
    if ( source && source->rows() > row ) {	
    	int cols = source->cols() - start_col;
-   	if ( cols>0 && !source->string(row,start_col+0).isEmpty() ) result.style  = (QSGArrow::Style )source->value(row,start_col+0);
+   	if ( cols>0 && !source->string(row,start_col+0).isEmpty() ) result.style  = (QSGArrow::Style )(long)source->value(row,start_col+0);
    	if ( cols>1 && !source->string(row,start_col+1).isEmpty() ) result.size  = (int )source->value(row,start_col+1);
 	}
    return result;
diff -urN ../tmp-orig/kmatplot-0.4/configure ./configure
--- ../tmp-orig/kmatplot-0.4/configure	2005-03-22 12:35:05.585336075 +0100
+++ ./configure	2005-03-22 12:22:27.000000000 +0100
@@ -1015,7 +1015,7 @@
 fi
 
 
-    CFLAGS=" $CFLAGS"
+    CFLAGS=" $CFLAGS -fPIC"
 
   # Extract the first word of "gcc", so it can be a program name with args.
 set dummy gcc; ac_word=$2


---------------------------------------
Received: (at 300867-done) by bugs.debian.org; 21 Jan 2006 19:58:28 +0000
>From mvela@irb.hr Sat Jan 21 11:58:28 2006
Return-path: <mvela@irb.hr>
Received: from mail.irb.hr ([161.53.22.8] ident=UNKNOWN)
	by spohr.debian.org with esmtp (Exim 4.50)
	id 1F0OsV-0002nQ-Hw; Sat, 21 Jan 2006 11:58:28 -0800
Received: from diziet.irb.hr (diziet.irb.hr [161.53.22.31])
	by mail.irb.hr (8.13.4/8.13.4/Debian-3) with ESMTP id k0LJwA1s028068;
	Sat, 21 Jan 2006 20:58:10 +0100
Received: from diziet.irb.hr (localhost [127.0.0.1])
	by diziet.irb.hr (8.13.5/8.13.5/Debian-3) with ESMTP id k0LJwLRH019593;
	Sat, 21 Jan 2006 20:58:21 +0100
Received: (from mvela@localhost)
	by diziet.irb.hr (8.13.5/8.13.5/Submit) id k0LJwLq8019591;
	Sat, 21 Jan 2006 20:58:21 +0100
From: Matej Vela <vela@debian.org>
To: 286533-done@bugs.debian.org, 300867-done@bugs.debian.org,
        326338-done@bugs.debian.org, 327980-done@bugs.debian.org
Subject: Fixed in kmatplot 0.4-7.1
Date: Sat, 21 Jan 2006 20:58:21 +0100
Message-ID: <87fynh4ale.fsf@diziet.irb.hr>
User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Scanned-By: MIMEDefang 2.51 on 161.53.22.8
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
X-CrossAssassin-Score: 2

Source: kmatplot
Source-Version: 0.4-7.1

Now that kmatplot is orphaned, NMU-fixed bugs can be closed.
The original .changes file follows.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sat, 17 Dec 2005 15:43:54 +0100
Source: kmatplot
Binary: kmatplot
Architecture: source i386
Version: 0.4-7.1
Distribution: unstable
Urgency: low
Maintainer: Hugo van der Merwe <hvdm@debian.org>
Changed-By: Aurelien Jarno <aurel32@debian.org>
Description: 
 kmatplot   - A Gnuplot-like tool for plotting data sets in 2D or 3D
Closes: 286533 300867 326338 327980
Changes: 
 kmatplot (0.4-7.1) unstable; urgency=low
 .
   * 0-day NMU during BSP.
   * Rebuild for the Qt/KDE transition (closes: bug#327980).
   * Rebuilt for libreadline transition (closes: bug#326338).
   * Applied a patch from Andreas Jochen to make the package buildable with
     gcc-4.0 (closes: bug#300867).
   * Build the shared libraries with -fPIC (closes: bug#286533).
   * Added support for GNU/kFreeBSD.
Files: 
 8b56850043f9183f2ed8fcb859bb834e 650 math optional kmatplot_0.4-7.1.dsc
 f38868ce5e1a6484517dc01822544a9e 48352 math optional kmatplot_0.4-7.1.diff.gz
 04ec30eefa63174c956d6a66175b8962 735440 math optional kmatplot_0.4-7.1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDpCkZw3ao2vG823MRApELAJ4g+4vg3CSLixVxvCE1lFyrROzQSwCdHZF7
EnWbHdZ9pE2Y5TPMyISpflI=
=xjME
-----END PGP SIGNATURE-----



Reply to: