tag 455641 patch thanks Martin Michlmayr <[EMAIL PROTECTED]> (10/12/2007): > Package: libsmbios > Version: 0.13.10-1 > Usertags: ftbfs-gcc-4.3
Hi, please find attached a patch to fix this FTBFS. Cheers, -- Cyril Brulebois
--- a/bin-supported/assetTag.cpp
+++ b/bin-supported/assetTag.cpp
@@ -33,6 +33,8 @@
// always include last if included.
#include "smbios/message.h"
+#include <cstring>
+
using namespace std;
struct options opts[] =
--- a/bin-supported/dellBiosUpdate.cpp
+++ b/bin-supported/dellBiosUpdate.cpp
@@ -30,6 +30,8 @@
// always include last if included.
#include "smbios/message.h" // not needed outside of this lib. (mainly for gettext i18n)
+#include <cstring>
+
using namespace std;
struct options opts[] =
--- a/bin-supported/dellLcdBrightness.cpp
+++ b/bin-supported/dellLcdBrightness.cpp
@@ -33,6 +33,8 @@
// always include last if included.
#include "smbios/message.h"
+#include <cstring>
+
using namespace std;
struct options opts[] =
--- a/bin-supported/dellWirelessCtl.cpp
+++ b/bin-supported/dellWirelessCtl.cpp
@@ -33,6 +33,8 @@
// always include last if included.
#include "smbios/message.h"
+#include <cstring>
+
using namespace std;
struct options opts[] =
--- a/bin-supported/propertyTag.cpp
+++ b/bin-supported/propertyTag.cpp
@@ -32,6 +32,8 @@
// always include last if included.
#include "smbios/message.h" // not needed outside of this lib. (mainly for gettext i18n)
+#include <cstring>
+
using namespace std;
struct options opts[] =
--- a/bin-supported/serviceTag.cpp
+++ b/bin-supported/serviceTag.cpp
@@ -33,6 +33,8 @@
// always include last if included.
#include "smbios/message.h" // not needed outside of this lib. (mainly for gettext i18n)
+#include <cstring>
+
using namespace std;
struct options opts[] =
--- a/bin-supported/tokenCtl.cpp
+++ b/bin-supported/tokenCtl.cpp
@@ -48,6 +48,8 @@
// always include last if included.
#include "smbios/message.h" // not needed outside of this lib. (mainly for gettext i18n)
+#include <cstring>
+
using namespace std;
struct options opts[] =
--- a/bin-supported/verifySmiPassword.cpp
+++ b/bin-supported/verifySmiPassword.cpp
@@ -29,6 +29,8 @@
// always include last if included.
#include "smbios/message.h"
+#include <cstring>
+
using namespace std;
struct options opts[] =
--- a/bin-unsupported/ascii2enUS_scancode.cpp
+++ b/bin-unsupported/ascii2enUS_scancode.cpp
@@ -28,6 +28,8 @@
// always include last if included.
#include "smbios/message.h"
+#include <cstring>
+
using namespace std;
struct options opts[] =
--- a/bin-unsupported/dellLEDCtl.cpp
+++ b/bin-unsupported/dellLEDCtl.cpp
@@ -40,6 +40,8 @@
// always include last if included.
#include "smbios/message.h"
+#include <cstring>
+
using namespace std;
#define LIST_DELL_LED_COLORS(_) \
--- a/bin-unsupported/smitest.cpp
+++ b/bin-unsupported/smitest.cpp
@@ -30,6 +30,8 @@
// always include last if included.
#include "smbios/message.h" // not needed outside of this lib. (mainly for gettext i18n)
+#include <cstring>
+
using namespace std;
struct options opts[] =
--- a/libraries/memory/Memory.cpp
+++ b/libraries/memory/Memory.cpp
@@ -28,6 +28,8 @@
// include this file last
#include "smbios/message.h"
+#include <cstring>
+
using namespace std;
namespace memory
--- a/libraries/memory/Memory_Linux.cpp
+++ b/libraries/memory/Memory_Linux.cpp
@@ -29,6 +29,8 @@
// include this last
#include "smbios/message.h"
+#include <cstring>
+
using namespace std;
using namespace factory;
--- a/libraries/smbios/SmbiosItem.cpp
+++ b/libraries/smbios/SmbiosItem.cpp
@@ -26,6 +26,8 @@
// message.h should be included last.
#include "smbios/message.h"
+#include <cstring>
+
using namespace smbiosLowlevel;
using namespace std;
--- a/libraries/smbios/SmbiosStrategy.cpp
+++ b/libraries/smbios/SmbiosStrategy.cpp
@@ -28,6 +28,8 @@
// message.h should be included last.
#include "smbios/message.h"
+#include <cstring>
+
using namespace smbiosLowlevel;
using namespace std;
--- a/libraries/smbios/SmbiosStrategy_Linux.cpp
+++ b/libraries/smbios/SmbiosStrategy_Linux.cpp
@@ -28,6 +28,8 @@
// message.h should be included last.
#include "smbios/message.h"
+#include <cstring>
+
using namespace smbiosLowlevel;
using namespace std;
--- a/libraries/smbios/SmbiosTable.cpp
+++ b/libraries/smbios/SmbiosTable.cpp
@@ -27,6 +27,8 @@
// message.h should be included last.
#include "smbios/message.h"
+#include <cstring>
+
using namespace smbiosLowlevel;
using namespace std;
--- a/libraries/smbios/SmbiosWorkaround.cpp
+++ b/libraries/smbios/SmbiosWorkaround.cpp
@@ -26,6 +26,8 @@
// message.h should be included last.
#include "smbios/message.h"
+#include <cstring>
+
using namespace std;
// convenience function.
--- a/libraries/smi/Smi.cpp
+++ b/libraries/smi/Smi.cpp
@@ -27,6 +27,8 @@
#include "smbios/IToken.h"
#include "TokenLowLevel.h"
+#include <cstring>
+
using namespace std;
#if defined(DEBUG_SMI)
--- a/libraries/smi/Smi_Linux.cpp
+++ b/libraries/smi/Smi_Linux.cpp
@@ -24,6 +24,8 @@
#include "SmiImpl.h"
+#include <cstring>
+
using namespace std;
#define SMI_DATA_FILE "/sys/devices/platform/dcdbas/smi_data"
--- a/libraries/systeminfo/IdByte.cpp
+++ b/libraries/systeminfo/IdByte.cpp
@@ -31,6 +31,8 @@
// should always be included last.
#include "smbios/message.h"
+#include <cstring>
+
using namespace smbios;
using namespace cmos;
using namespace std;
--- a/libraries/systeminfo/System.cpp
+++ b/libraries/systeminfo/System.cpp
@@ -34,6 +34,8 @@
// this always should be included last
#include "smbios/message.h"
+#include <cstring>
+
using namespace smbios;
using namespace cmos;
using namespace std;
--- a/libraries/systeminfo/SystemDetect.cpp
+++ b/libraries/systeminfo/SystemDetect.cpp
@@ -33,6 +33,8 @@
// include this last.
#include "smbios/message.h"
+#include <cstring>
+
using namespace smbios;
using namespace cmos;
using namespace std;
--- a/libraries/token/TokenD4.cpp
+++ b/libraries/token/TokenD4.cpp
@@ -24,6 +24,8 @@
#include "TokenImpl.h"
+#include <cstring>
+
using namespace std;
namespace smbios
--- a/libraries/token/TokenD5.cpp
+++ b/libraries/token/TokenD5.cpp
@@ -25,6 +25,8 @@
#include "TokenImpl.h"
+#include <cstring>
+
using namespace std;
namespace smbios
--- a/libraries/token/TokenD6.cpp
+++ b/libraries/token/TokenD6.cpp
@@ -25,6 +25,8 @@
#include "TokenImpl.h"
+#include <cstring>
+
using namespace std;
namespace smbios
--- a/libraries/token/TokenDA.cpp
+++ b/libraries/token/TokenDA.cpp
@@ -28,6 +28,8 @@
#define TODO do { throw NotImplementedImpl(); } while(0)
+#include <cstring>
+
using namespace std;
#if defined(DEBUG_TOKEN_DA)
--- a/libraries/xml_libxml2/SmbiosXml.cpp
+++ b/libraries/xml_libxml2/SmbiosXml.cpp
@@ -31,6 +31,8 @@
// message.h should be included last.
#include "smbios/message.h"
+#include <cstring>
+
// no trailing ';' because macro already has one
SETUP_XML_NAMESPACE
signature.asc
Description: Digital signature

