Package: libsmbios
Version: 0.13.4-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.  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. (Currently not available for i386, but for amd64, powerpc
and ia64.  I hope to have i386 binaries in the archive in ~3 weeks.)

> Automatic build of libsmbios_0.13.4-1 on em64t by sbuild/amd64 0.53
...
> x86_64-linux-gnu-g++ -DPACKAGE_NAME=\"libsmbios\" 
> -DPACKAGE_TARNAME=\"libsmbios\" -DPACKAGE_VERSION=\"version_not_defined\" 
> "-DPACKAGE_STRING=\"libsmbios version_not_defined\"" -DPACKAGE_BUGREPORT=\"\" 
> -DPACKAGE=\"libsmbios\" -DVERSION=\"version_not_defined\" -DSTDC_HEADERS=1 
> -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 
> -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 
> -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -DHAVE_LIBINTL_H=1 
> -DHAVE_LIMITS_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_FILE_H=1 
> -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_PTRDIFF_T=1 
> -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 
> -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MEMMOVE=1 
> -DHAVE_MEMSET=1 -DHAVE_MUNMAP=1 -DHAVE_STRERROR=1 -DHAVE_STRNDUP=1 
> -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -I. -I. -I../include -I../libraries/common 
> -I../include -I../libraries/common -g -O2 -c smi/Smi.cpp -MT Smi.lo -MD -MP 
> -MF .deps/Smi.TPlo  -fPIC -DPIC -o .libs/Smi.lo
> In file included from ../include/smbios/config.hpp:36,
>                  from ../include/smbios/compat.h:23,
>                  from smi/Smi.cpp:21:
> ../include/smbios/config/compiler/gcc.hpp:99:7: warning: #warning "Unknown 
> compiler version - please run the configure tests and report the results"
> In file included from smi/SmiImpl.h:21,
>                  from smi/Smi.cpp:25:
> ../include/smbios/ISmi.h:62: error: ISO C++ forbids declaration of 'auto_ptr' 
> with no type
> ../include/smbios/ISmi.h:62: error: invalid use of '::'

--- include/smbios/ISmi.h~      2007-04-10 20:08:08.000000000 +0000
+++ include/smbios/ISmi.h       2007-04-10 20:08:30.000000000 +0000
@@ -23,6 +23,7 @@
 #include "smbios/compat.h"
 
 #include <iostream>
+#include <memory>
 
 // types.h should be first user-defined header.
 #include "smbios/types.h"

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

Reply via email to