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

Bug#461675: FTBFS with GCC 4.3: uses (removed) pre-iso c++ headers



Package: kdegraphics
Version: 4:3.5.8-2
Usertags: ftbfs-gcc-4.3

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, pre-iso c++ headers
will no longer be present, but your application makes use of them.

You can reproduce this problem with gcc-4.3 or gcc-snapshot from
unstable.

> Automatic build of kdegraphics_4:3.5.8-2 on em64t by sbuild/amd64 0.53
...
>  g++ -DHAVE_CONFIG_H -I. -I/build/tbm/kdegraphics-3.5.8/./kviewshell/plugins/djvu/libdjvu -I../../../.. -I/build/tbm/kdegraphics-3.5.8/. -I/usr/include/kde -I/usr/share/qt3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -D_LARGE_FILES=1 -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -g -Wall -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c /build/tbm/kdegraphics-3.5.8/./kviewshell/plugins/djvu/libdjvu/Arrays.cpp  -fPIC -DPIC -o .libs/Arrays.o
> In file included from /build/tbm/kdegraphics-3.5.8/./kviewshell/plugins/djvu/libdjvu/GException.h:122,
>                  from /build/tbm/kdegraphics-3.5.8/./kviewshell/plugins/djvu/libdjvu/Arrays.h:66,
>                  from /build/tbm/kdegraphics-3.5.8/./kviewshell/plugins/djvu/libdjvu/Arrays.cpp:64:
> /build/tbm/kdegraphics-3.5.8/./kviewshell/plugins/djvu/libdjvu/DjVuGlobal.h:73:18: error: new.h: No such file or directory
^^
> In file included from /build/tbm/kdegraphics-3.5.8/./kviewshell/plugins/djvu/libdjvu/Arrays.h:67,
>                  from /build/tbm/kdegraphics-3.5.8/./kviewshell/plugins/djvu/libdjvu/Arrays.cpp:64:
> /build/tbm/kdegraphics-3.5.8/./kviewshell/plugins/djvu/libdjvu/GSmartPointer.h:117: error: expected ',' or '...' before 'n'
> /build/tbm/kdegraphics-3.5.8/./kviewshell/plugins/djvu/libdjvu/GSmartPointer.h:117: error: ISO C++ forbids declaration of 'size_t' with no type
> /build/tbm/kdegraphics-3.5.8/./kviewshell/plugins/djvu/libdjvu/GSmartPointer.h:119: error: expected ',' or '...' before 'n'
> /build/tbm/kdegraphics-3.5.8/./kviewshell/plugins/djvu/libdjvu/GSmartPointer.h:119: error: ISO C++ forbids declaration of 'size_t' with no type
> /build/tbm/kdegraphics-3.5.8/./kviewshell/plugins/djvu/libdjvu/GSmartPointer.h:120: error: expected ',' or '...' before 'n'
> /build/tbm/kdegraphics-3.5.8/./kviewshell/plugins/djvu/libdjvu/GSmartPointer.h:120: error: ISO C++ forbids declaration of 'size_t' with no type
> /build/tbm/kdegraphics-3.5.8/./kviewshell/plugins/djvu/libdjvu/GSmartPointer.h:121: error: expected ',' or '...' before 't'
> /build/tbm/kdegraphics-3.5.8/./kviewshell/plugins/djvu/libdjvu/GSmartPointer.h:121: error: ISO C++ forbids declaration of 'size_t' with no type
> /build/tbm/kdegraphics-3.5.8/./kviewshell/plugins/djvu/libdjvu/GSmartPointer.h:126: error: 'size_t' does not name a type
> /build/tbm/kdegraphics-3.5.8/./kviewshell/plugins/djvu/libdjvu/GSmartPointer.h: In member function 'GPBufferBase::operator int() const':
> /build/tbm/kdegraphics-3.5.8/./kviewshell/plugins/djvu/libdjvu/GSmartPointer.h:123: error: 'num' was not declared in this scope
> /build/tbm/kdegraphics-3.5.8/./kviewshell/plugins/djvu/libdjvu/GSmartPointer.h: At global scope:
> /build/tbm/kdegraphics-3.5.8/./kviewshell/plugins/djvu/libdjvu/GSmartPointer.h:133: error: expected ',' or '...' before 'n'
> /build/tbm/kdegraphics-3.5.8/./kviewshell/plugins/djvu/libdjvu/GSmartPointer.h:133: error: ISO C++ forbids declaration of 'size_t' with no type
> /build/tbm/kdegraphics-3.5.8/./kviewshell/plugins/djvu/libdjvu/GSmartPointer.h:134: error: expected ',' or '...' before 'n'
> /build/tbm/kdegraphics-3.5.8/./kviewshell/plugins/djvu/libdjvu/GSmartPointer.h:134: error: ISO C++ forbids declaration of 'size_t' with no type
> /build/tbm/kdegraphics-3.5.8/./kviewshell/plugins/djvu/libdjvu/GSmartPointer.h: In constructor 'GPBuffer<TYPE>::GPBuffer(TYPE*&, int)':
> /build/tbm/kdegraphics-3.5.8/./kviewshell/plugins/djvu/libdjvu/GSmartPointer.h:133: error: 'n' was not declared in this scope
> /build/tbm/kdegraphics-3.5.8/./kviewshell/plugins/djvu/libdjvu/GSmartPointer.h: In member function 'void GPBuffer<TYPE>::resize(int)':
> /build/tbm/kdegraphics-3.5.8/./kviewshell/plugins/djvu/libdjvu/GSmartPointer.h:134: error: 'n' was not declared in this scope
> /build/tbm/kdegraphics-3.5.8/./kviewshell/plugins/djvu/libdjvu/GSmartPointer.h: At global scope:
> /build/tbm/kdegraphics-3.5.8/./kviewshell/plugins/djvu/libdjvu/GSmartPointer.h:341: warning: unused parameter 'obj'
...

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



Reply to: