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

Bug#417460: FTBFS with GCC 4.3: missing #includes



Package: openmovieeditor
Version: 0.0.20061221-2
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.  In GCC 4.3, the C++ header
dependencies have been cleaned up.  The advantage of this is that
programs will compile faster.  The downside is that you actually
need to directly #include everything you use (but you really should
do this anyway, otherwise your program won't work with any compiler
other than GCC).  Some background of this can be found at
http://gcc.gnu.org/PR28080

You can reproduce this problem with gcc-snapshot (20070326-1 or higher)
from unstable.

> Automatic build of openmovieeditor_0.0.20061221-2 on coconut0 by sbuild/ia64 0.49
...
> if ia64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..  -ggdb       -I/usr/lib/gavl/include/   -I/usr/include/lqt   -I/usr/include/ffmpeg   -DAVCODEC -I/usr/include/ffmpeg   -I/usr/include/freetype2 -DINSTALL_PREFIX="\"/usr\"" -I../icons -I../src -I../src/tinyxml -I../src/sl -I/usr/lib/gavl/include/   -I/usr/include/lqt   -I/usr/include/ffmpeg   -DAVCODEC -I/usr/include/ffmpeg   -I/usr/include/freetype2  -g -O2 -MT FolderBrowser.o -MD -MP -MF ".deps/FolderBrowser.Tpo" -c -o FolderBrowser.o FolderBrowser.cxx; \
> 	then mv -f ".deps/FolderBrowser.Tpo" ".deps/FolderBrowser.Po"; else rm -f ".deps/FolderBrowser.Tpo"; exit 1; fi
> FolderBrowser.cxx: In constructor 'nle::FolderBrowser::FolderBrowser(int, int, int, int, const char*)':
> FolderBrowser.cxx:54: error: 'getenv' was not declared in this scope
> FolderBrowser.cxx: In member function 'void nle::FolderBrowser::load(std::string)':
> FolderBrowser.cxx:76: error: 'free' was not declared in this scope
> FolderBrowser.cxx:79: error: 'free' was not declared in this scope
> make[4]: *** [FolderBrowser.o] Error 1

--- src/FolderBrowser.cxx~	2007-04-02 19:59:33.000000000 +0000
+++ src/FolderBrowser.cxx	2007-04-02 19:59:40.000000000 +0000
@@ -19,6 +19,7 @@
 #include <FL/filename.H>
 #include "FolderBrowser.H"
 
+#include <cstdlib>
 #include <iostream>
 
 namespace nle
--- src/MediaBrowser.cxx~	2007-04-02 19:59:50.000000000 +0000
+++ src/MediaBrowser.cxx	2007-04-02 19:59:56.000000000 +0000
@@ -17,6 +17,7 @@
  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#include <cstdlib>
 #include <iostream>
 #include <cstring>
 
--- src/Frei0rFactory.cxx~	2007-04-02 20:01:30.000000000 +0000
+++ src/Frei0rFactory.cxx	2007-04-02 20:01:37.000000000 +0000
@@ -17,6 +17,7 @@
  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#include <cstdlib>
 #include <dirent.h>
 #include <sys/stat.h>
 #include <sys/types.h>

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



Reply to: