Martin Michlmayr <[EMAIL PROTECTED]> (09/12/2007):
> Package: nepenthes
> Version: 0.2.0-2
> Usertags: ftbfs-gcc-4.3

Hi,

prospective patch, but I'm not going to fix those (nor to workaround
them):
| cc1plus: warnings being treated as errors
| EventManager.cpp: In member function ‘virtual bool 
nepenthes::EventManager::Init()’:
| EventManager.cpp:73: Error: error: deprecated conversion from string constant 
to ‘char*’
| EventManager.cpp:75: Error: error: deprecated conversion from string constant 
to ‘char*’
| [dozens of lines]

Let me know if you need more gcc-4.3-related help (that is: nothing
related to string constant vs char*).

Cheers,

-- 
Cyril Brulebois
--- a/nepenthes-core/include/Config.hpp
+++ b/nepenthes-core/include/Config.hpp
@@ -52,6 +52,8 @@
 
 #endif
 
+#include <cstring>
+
 using namespace std;
 
 
--- a/nepenthes-core/src/Config.cpp
+++ b/nepenthes-core/src/Config.cpp
@@ -352,7 +352,7 @@
 
 					szHexConv[0] = data->getChar();
 					szHexConv[1] = data->getChar();
-					szHexConv[3] = 0;
+					szHexConv[2] = 0; /* 3 looked like a typo */
 //					printf("uint32_t i is here %i\n",i);
 //					printf("Converting %i %c%c -> %i\n",i, szHexConv[0],szHexConv[1], (unsigned char)strtol(szHexConv,NULL,16) );
 //					strtol(szHexConv,NULL,16);
--- a/nepenthes-core/src/DNSManager.cpp
+++ b/nepenthes-core/src/DNSManager.cpp
@@ -43,6 +43,8 @@
 #include "Nepenthes.hpp"
 #include "LogManager.hpp"
 
+#include <cstring>
+
 using namespace nepenthes;
 
 //extern int32_t errno;
--- a/nepenthes-core/src/DNSResult.cpp
+++ b/nepenthes-core/src/DNSResult.cpp
@@ -33,6 +33,8 @@
 #include "DNSQuery.hpp"
 #include "Utilities.hpp"
 
+#include <cstring>
+
 using namespace nepenthes;
 
 /**
--- a/nepenthes-core/src/DownloadManager.cpp
+++ b/nepenthes-core/src/DownloadManager.cpp
@@ -41,6 +41,8 @@
 #include "SubmitEvent.hpp"
 #include "EventManager.hpp"
 
+#include <cstdlib>
+
 using namespace std;
 using namespace nepenthes;
 
--- a/nepenthes-core/include/DownloadUrl.hpp
+++ b/nepenthes-core/include/DownloadUrl.hpp
@@ -32,6 +32,7 @@
 
 
 #include <string>
+#include <typeinfo>
 
 using namespace std;
 
@@ -39,7 +40,6 @@
 namespace nepenthes
 {
 
-
 	/**
 	 * protocoll/port mapping for various protocols
 	 */
@@ -47,7 +47,7 @@
 	{
 		const char      *protocolName;
 		uint16_t         port;
-	};
+	} foo;
 
 
 	/**
--- a/nepenthes-core/src/Download.cpp
+++ b/nepenthes-core/src/Download.cpp
@@ -33,6 +33,8 @@
 #include "Nepenthes.hpp"
 #include "LogManager.hpp"
 
+#include <cstring>
+
 using namespace nepenthes;
 
 /**
--- a/nepenthes-core/src/DownloadBuffer.cpp
+++ b/nepenthes-core/src/DownloadBuffer.cpp
@@ -33,6 +33,8 @@
 #include "Nepenthes.hpp"
 #include "LogManager.hpp"
 
+#include <cstring>
+
 using namespace nepenthes;
 
 
--- a/nepenthes-core/src/DownloadUrl.cpp
+++ b/nepenthes-core/src/DownloadUrl.cpp
@@ -39,6 +39,8 @@
 #include "Nepenthes.hpp"
 #include "LogManager.hpp"
 
+#include <cstdlib>
+
 using namespace nepenthes;
 
  
--- a/nepenthes-core/src/EventManager.cpp
+++ b/nepenthes-core/src/EventManager.cpp
@@ -34,6 +34,8 @@
 
 #include "LogManager.hpp"
 
+#include <cstdlib>
+
 using namespace nepenthes;
 
 #ifdef STDTAGS 

Attachment: signature.asc
Description: Digital signature

Reply via email to