package labplot
tags 455414 + patch
stop

Hi,

On Monday 10 December 2007 01:04, Martin Michlmayr wrote:
> Your package fails to build with GCC 4.3.

> > Automatic build of labplot_1.5.1.6-2 on em64t by sbuild/amd64 0.53
>
> ...
>
> > LTable.cc: In member function 'void LTable::updateTable()':
> > LTable.cc:21: error: 'realloc' was not declared in this scope

I've rebuilt labplot with gcc-snapshot and found out that this is the only 
error that happens with GCC 4.3. Attached is a trivial patch which fixes this 
FTBFS bug.

Grüße,
Frank
-- 
Anmut bringen wir ins Leben;
 Leget Anmut in das Geben.
diff -u labplot-1.5.1.6/debian/rules labplot-1.5.1.6/debian/rules
--- labplot-1.5.1.6/debian/rules
+++ labplot-1.5.1.6/debian/rules
@@ -5,6 +5,11 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+# Uncomment this to compile with gcc-snapshot.
+#export CC=/usr/lib/gcc-snapshot/bin/gcc
+#export CXX=/usr/lib/gcc-snapshot/bin/g++
+#export CPP=/usr/lib/gcc-snapshot/bin/cpp
+
 #  Useful directories
 tmp = debian/labplot
 pixmaps = $(tmp)/usr/share/pixmaps
only in patch2:
unchanged:
--- labplot-1.5.1.6.orig/src/LTable.cc
+++ labplot-1.5.1.6/src/LTable.cc
@@ -1,5 +1,6 @@
 // LabPlot : LTable.cc
 
+#include <cstdlib>
 #include <qpainter.h>
 #include <kdebug.h>
 #include "LTable.h"

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to