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

Bug#259822: marked as done (simplecdrx: FTBFS with gcc-3.4: ISO C++ forbids cast to non-reference type used as lvalue)



Your message dated Thu, 13 Jan 2005 05:17:36 -0500
with message-id <E1Cp22q-0006gP-00@newraff.debian.org>
and subject line Bug#259822: fixed in simplecdrx 1.3.2-3
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; 16 Jul 2004 20:52:41 +0000
>From aj@andaco.de Fri Jul 16 13:52:41 2004
Return-path: <aj@andaco.de>
Received: from c147165.adsl.hansenet.de (localhost) [213.39.147.165] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BlZhA-0003u4-00; Fri, 16 Jul 2004 13:52:40 -0700
Received: from aj by localhost with local (Exim 4.34)
	id 1BlZh9-0003HR-5h; Fri, 16 Jul 2004 22:52:39 +0200
To: Debian Bug Tracking System <submit@bugs.debian.org>
From: Andreas Jochens <aj@andaco.de>
Subject: simplecdrx: FTBFS with gcc-3.4: ISO C++ forbids cast to non-reference type used as lvalue
Message-Id: <E1BlZh9-0003HR-5h@localhost>
Date: Fri, 16 Jul 2004 22:52:39 +0200
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(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_2004_03_25
X-Spam-Level: 

Package: simplecdrx
Severity: normal
Tags: patch

When building 'simplecdrx' with gcc-3.4 I get the following error:

fi
callbacks.c: In function `void on_delete_clicked(GtkButton*, void*)':
callbacks.c:699: error: ISO C++ forbids cast to non-reference type used as lvalue
callbacks.c: In function `void on_delete_file_clicked(GtkButton*, void*)':
callbacks.c:957: error: ISO C++ forbids cast to non-reference type used as lvalue
callbacks.c: In function `void on_rip_info_clicked(GtkButton*, void*)':
callbacks.c:2251: warning: cast to pointer from integer of different size
callbacks.c:2262: warning: cast to pointer from integer of different size
callbacks.c: In function `void sf_cd_play_button_clicked(GtkWidget*, void*)':
callbacks.c:2325: warning: cast from pointer to integer of different size
callbacks.c: In function `void on_rip_scan_cd_clicked(GtkButton*, void*)':
callbacks.c:2481: warning: cast to pointer from integer of different size
callbacks.c:2492: warning: cast to pointer from integer of different size
make[3]: *** [callbacks.o] Error 1
make[3]: Leaving directory `/simplecdrx-1.3.2/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/simplecdrx-1.3.2'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/simplecdrx-1.3.2'
make: *** [build-stamp] Error 2

With the attached patch 'simplecdrx' can be compiled using gcc-3.4.

Regards
Andreas Jochens

diff -urN ../tmp-orig/simplecdrx-1.3.2/src/callbacks.c ./src/callbacks.c
--- ../tmp-orig/simplecdrx-1.3.2/src/callbacks.c	2003-12-26 06:04:49.000000000 +0100
+++ ./src/callbacks.c	2004-07-16 22:38:10.026577988 +0200
@@ -696,7 +696,7 @@
     return;
   gtk_clist_get_text (GTK_CLIST (get_widget (main_win, "audio_list")), r, 0,
 		      &temp[0]);
-  (gchar *) temp_ = temp[0];
+  temp_ = temp[0];
   filename_ = temp_;
 
   if (int (filename_.find (".mp3")) != -1
@@ -954,7 +954,7 @@
 // Initializing localized lists 
   gtk_clist_get_text (GTK_CLIST (get_widget (main_win, "data_master_list")),
 		      r1, 0, &temp_file[0]);
-  (gchar *) temp_ = temp_file[0];
+  temp_ = temp_file[0];
   
   tmp_file = temp_;
   tmp_dir = current_dir;
diff -urN ../tmp-orig/simplecdrx-1.3.2/src/datacdops.cpp ./src/datacdops.cpp
--- ../tmp-orig/simplecdrx-1.3.2/src/datacdops.cpp	2003-12-26 06:04:49.000000000 +0100
+++ ./src/datacdops.cpp	2004-07-16 22:39:17.994509250 +0200
@@ -443,7 +443,7 @@
       gtk_clist_get_text (GTK_CLIST
 			  (get_widget (main_win, "dir_master_list")), r, 0,
 			  &temp[0]);
-      (gchar *) temp_ = temp[0];
+      temp_ = temp[0];
       tmp = temp_;
       if (tmp != "/" && tmp != "..")
 	tmp = current_dir + tmp + "/";
@@ -798,7 +798,7 @@
 	  r = count - 1;
 	  gtk_clist_get_text (GTK_CLIST (get_widget (main_win, "audio_list")),
 			      r, 0, &temp[0]);
-	  (gchar *) temp_ = temp[0];
+	  temp_ = temp[0];
 	  tmp = temp_;
 	  cont =
 	    master_aud.convertTracklist (count, tracks, tmp, setupData1,
@@ -935,7 +935,7 @@
 // Initializing localized lists and clearing file list
   gtk_clist_get_text (GTK_CLIST (get_widget (main_win, "dir_master_list")),
 		      rowtemp, 0, &temp_dir[0]);
-  (gchar *) temp__ = temp_dir[0];
+  temp__ = temp_dir[0];
 
   tmp_dir = temp__;
   if (tmp_dir == "/")

---------------------------------------
Received: (at 259822-close) by bugs.debian.org; 13 Jan 2005 10:23:51 +0000
>From katie@ftp-master.debian.org Thu Jan 13 02:23:51 2005
Return-path: <katie@ftp-master.debian.org>
Received: from newraff.debian.org [208.185.25.31] (mail)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1Cp28t-0003lM-00; Thu, 13 Jan 2005 02:23:51 -0800
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1Cp22q-0006gP-00; Thu, 13 Jan 2005 05:17:36 -0500
From: Stephen Quinney <stephen@jadevine.org.uk>
To: 259822-close@bugs.debian.org
X-Katie: $Revision: 1.54 $
Subject: Bug#259822: fixed in simplecdrx 1.3.2-3
Message-Id: <E1Cp22q-0006gP-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Thu, 13 Jan 2005 05:17:36 -0500
Delivered-To: 259822-close@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=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Source: simplecdrx
Source-Version: 1.3.2-3

We believe that the bug you reported is fixed in the latest version of
simplecdrx, which is due to be installed in the Debian FTP archive:

simplecdrx_1.3.2-3.diff.gz
  to pool/main/s/simplecdrx/simplecdrx_1.3.2-3.diff.gz
simplecdrx_1.3.2-3.dsc
  to pool/main/s/simplecdrx/simplecdrx_1.3.2-3.dsc
simplecdrx_1.3.2-3_i386.deb
  to pool/main/s/simplecdrx/simplecdrx_1.3.2-3_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 259822@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stephen Quinney <stephen@jadevine.org.uk> (supplier of updated simplecdrx package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


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

Format: 1.7
Date: Thu, 13 Jan 2005 09:48:43 +0000
Source: simplecdrx
Binary: simplecdrx
Architecture: source i386
Version: 1.3.2-3
Distribution: unstable
Urgency: low
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Stephen Quinney <stephen@jadevine.org.uk>
Description: 
 simplecdrx - SimpleCDR-X is a frontend for CD writing and mastering
Closes: 259822
Changes: 
 simplecdrx (1.3.2-3) unstable; urgency=low
 .
   * QA Upload.
   * Backported fixes from upstream 1.3.3 to resolve important bug "FTBFS
     with gcc-3.4: ISO C++ forbids cast to non-reference type used as
     lvalue", closes: 259822. This patch is slightly different from the one
     given in the bug report but I feel it is a better solution.
Files: 
 031da878e4b718bdd95953d6aee1183b 613 utils extra simplecdrx_1.3.2-3.dsc
 b115c3d0d9e788d3adc1a90e3e7ae735 62764 utils extra simplecdrx_1.3.2-3.diff.gz
 ad111db3025fbc71f3171e7da77180b9 207868 utils extra simplecdrx_1.3.2-3_i386.deb

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

iD8DBQFB5kezITGblEwaW+URAhMKAKCH9p1BereiHegFspe2GhrWwpiblQCg44xh
kLg/QCL7adOwiDvAix6OMEg=
=S9eX
-----END PGP SIGNATURE-----



Reply to: