Bug#552577: kmchart: FTBFS with GCC 4.4 and eglibc 2.10

2009-10-28 Thread Nathan Scott
Thanks Simon.  A while ago, the "kmchart" package was renamed
to "pcp-gui".  This fix has been applied there awhile back too.
I guess I need to figure out how to properly mark a package as
deprecated in the Debian archive - not too sure whats involved
there though.

cheers.

-- 
Nathan



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#552577: kmchart: FTBFS with GCC 4.4 and eglibc 2.10

2009-10-27 Thread Simon Olofsson
Package: kmchart
Version: 1.2.9
Severity: important
Tags: patch
Justification: fails to build from source
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu karmic ubuntu-patch



*** /tmp/tmp8B6rwu
In Ubuntu, we've applied the attached patch to achieve the following:

  [ Simon Olofsson ]
  * src/libqmc/qmc_indom.cpp: Fix FTBFS with GCC 4.4 and eglibc 2.10
(LP: #459143) because of invalid const char * to char * conversion

  [ Fabrice Coutadeur ]
  * src/chart/view.cpp: Fix FTBFS with GCC 4.4 and eglibc 2.10 because of
invalid const char * to char * conversion

We thought you might be interested in doing the same. 


-- System Information:
Debian Release: squeeze/sid
  APT prefers karmic-updates
  APT policy: (500, 'karmic-updates'), (500, 'karmic-security'), (500, 
'karmic-proposed'), (500, 'karmic-backports'), (500, 'karmic')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31-14-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru kmchart-1.2.9/src/chart/view.cpp kmchart-1.2.9ubuntu1/src/chart/view.cpp
--- kmchart-1.2.9/src/chart/view.cpp	2009-01-27 12:59:52.0 +0100
+++ kmchart-1.2.9ubuntu1/src/chart/view.cpp	2009-10-27 06:10:25.0 +0100
@@ -1201,7 +1201,7 @@
 
 void SaveViewDialog::saveChart(FILE *f, Chart *cp, bool hostDynamic)
 {
-const char	*p;
+char	*p;
 char	*q, *qend;
 double	ymin, ymax;
 bool	autoscale;
diff -Nru kmchart-1.2.9/src/libqmc/qmc_indom.cpp kmchart-1.2.9ubuntu1/src/libqmc/qmc_indom.cpp
--- kmchart-1.2.9/src/libqmc/qmc_indom.cpp	2009-01-29 04:04:35.0 +0100
+++ kmchart-1.2.9ubuntu1/src/libqmc/qmc_indom.cpp	2009-10-24 08:44:41.0 +0200
@@ -110,7 +110,7 @@
 QmcIndom::lookup(QString const &name)
 {
 int i;
-char *p = NULL;
+const char *p = NULL;
 const char *q = NULL;
 
 for (i = 0; i < my.instances.size(); i++) {