Package: libsmbios
Version: 2.0.3.dfsg-1
User: [EMAIL PROTECTED]
Usertags: ftbfs-gcc-4.4
Tags: patch
Your package fails to build with the upcoming GCC 4.4. Version 4.4
has not been released yet but I'm building with a snapshot in order
to find errors and give people an advance warning.
GCC 4.4 cleaned up some more C++ headers. You always have to #include
headers directly and cannot rely for things to be included indirectly.
You can reproduce this problem with gcc-snapshot from unstable.
> Automatic build of libsmbios_2.0.3.dfsg-1 on em64t by sbuild/amd64 0.53
...
> g++ -DPACKAGE_NAME=\"libsmbios\" -DPACKAGE_TARNAME=\"libsmbios\"
> -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libsmbios\" -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 -DVERSION=\"2.0.3\"
> -DPACKAGE_VERSION=\"2.0.3\" "-DPACKAGE_STRING=\"libsmbios 2.0.3\"" -I.
> -I./include -I./include -I./libraries/common -I./libraries/common -g -O2 -MT
> libraries/cmos/libraries_libsmbios_la-CmosRW.lo -MD -MP -MF
> libraries/cmos/.deps/libraries_libsmbios_la-CmosRW.Tpo -c
> libraries/cmos/CmosRW.cpp -fPIC -DPIC -o
> libraries/cmos/.libs/libraries_libsmbios_la-CmosRW.o
> In file included from ./include/smbios/config.hpp:36,
> from ./include/smbios/compat.h:23,
> from libraries/cmos/CmosRW.cpp:21:
> ./include/smbios/config/compiler/gcc.hpp:99:7: warning: #warning "Unknown
> compiler version - please run the configure tests and report the results"
> libraries/cmos/CmosRW.cpp: In member function 'virtual u8
> cmos::CmosRWFile::readByte(u32, u32, u32) const':
> libraries/cmos/CmosRW.cpp:125: error: 'fopen' was not declared in this scope
> libraries/cmos/CmosRW.cpp:129: error: 'fseek' was not declared in this scope
> libraries/cmos/CmosRW.cpp:130: error: 'fread' was not declared in this scope
> libraries/cmos/CmosRW.cpp:131: error: 'fclose' was not declared in this scope
> libraries/cmos/CmosRW.cpp: In member function 'virtual void
> cmos::CmosRWFile::writeByte(u32, u32, u32, u8) const':
> libraries/cmos/CmosRW.cpp:147: error: 'fopen' was not declared in this scope
> libraries/cmos/CmosRW.cpp:151: error: 'fseek' was not declared in this scope
> libraries/cmos/CmosRW.cpp:152: error: 'fwrite' was not declared in this scope
> libraries/cmos/CmosRW.cpp:153: error: 'fclose' was not declared in this scope
> libraries/cmos/CmosRW.cpp:154: error: 'fflush' was not declared in this scope
> make[2]: *** [libraries/cmos/libraries_libsmbios_la-CmosRW.lo] Error 1
> make[2]: Leaving directory `/build/tbm/libsmbios-2.0.3.dfsg'
--- libraries/smi/SmiImpl.h~ 2008-11-13 18:48:27.000000000 +0000
+++ libraries/smi/SmiImpl.h 2008-11-13 18:48:32.000000000 +0000
@@ -22,6 +22,8 @@
#include "SmiLowLevel.h"
#include "ExceptionImpl.h"
+#include <cstdio>
+
namespace smi
{
// define our exceptions
--- libraries/smbios/SmbiosStrategy_Linux.cpp~ 2008-11-13 18:47:29.000000000
+0000
+++ libraries/smbios/SmbiosStrategy_Linux.cpp 2008-11-13 18:47:34.000000000
+0000
@@ -20,6 +20,7 @@
#define LIBSMBIOS_SOURCE
#include "smbios/compat.h"
+#include <cstdio>
#include <sstream>
#include <string.h>
--- libraries/memory/Memory_Linux.cpp~ 2008-11-13 18:46:18.000000000 +0000
+++ libraries/memory/Memory_Linux.cpp 2008-11-13 18:46:25.000000000 +0000
@@ -22,6 +22,7 @@
#include <errno.h>
#include <sys/mman.h> /* mmap */
+#include <stdio.h>
#include <unistd.h> /* getpagesize */
#include <string.h> /* memcpy etc. */
--- libraries/cmos/CmosRW.cpp~ 2008-11-13 18:45:18.000000000 +0000
+++ libraries/cmos/CmosRW.cpp 2008-11-13 18:45:25.000000000 +0000
@@ -19,6 +19,7 @@
// compat header should always be first header if including system headers
#define LIBSMBIOS_SOURCE
#include "smbios/compat.h"
+#include <stdio.h>
#include <errno.h>
#include <string.h>
#include "CmosRWImpl.h"
--
Martin Michlmayr
http://www.cyrius.com/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]