Package: labplot
Version: 1.5.1-1
Usertags: ftbfs-gcc-4.3
Tags: patch

Your package fails to build with GCC 4.3.  Version 4.3 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning.  A patch for this problem is
below.

There are two problems:

1) an autoconf check fails to compile.  Basically, you have this in
configure.in:
  AC_DEFINE(LVERSION_DATE,"Mar 27, 2006",[LabPlot release date])
and this gets expanded to:
  #define LVERSION_DATE "Mar 27
which then leads to a compilation error:
  conftest.cpp:8:23: error: missing terminating " character
Steve Langasek says that "quotes aren't significant to m4, it'll break
at the first comma".

2) You're missing an #include; GCC 4.3 is more strict about this
because it cleaned up header depenencies.


> Automatic build of labplot_1.5.1-1 on em64t by sbuild/amd64 0.53
...
> checking if C++ programs can be compiled... no
> configure: error: Your Installation isn't able to compile simple C++ programs.
> Check config.log for details - if you're using a Linux distribution you might 
> miss
> a package named similiar to libstd++-dev.
> make: *** [config.status] Error 1

and later:

> LTable.cc:21: error: 'realloc' was not declared in this scope

--- src/LTable.cc~      2007-03-29 19:02:03.000000000 +0000
+++ src/LTable.cc       2007-03-29 19:02:49.000000000 +0000
@@ -1,5 +1,6 @@
 // LabPlot : LTable.cc
 
+#include <cstdlib>
 #include <qpainter.h>
 #include <kdebug.h>
 #include "LTable.h"
--- configure.in~       2007-03-29 18:42:34.000000000 +0000
+++ configure.in        2007-03-29 18:45:48.000000000 +0000
@@ -9,7 +9,7 @@
 AM_INIT_AUTOMAKE(LabPlot-1.5.1,0,0)
 AM_MAINTAINER_MODE
 AC_DEFINE(LVERSION,"1.5.1",[LabPlot version])
-AC_DEFINE(LVERSION_DATE,"Mar 27, 2006",[LabPlot release date])
+AC_DEFINE(LVERSION_DATE,["Mar 27, 2006"],[LabPlot release date])
 
 KDE_SET_PREFIX
 

(You obviously need to regenerate configure)

-- 
Martin Michlmayr
http://www.cyrius.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to