Hello.
The latest glibc 2.8 doesn't include limits.h automatically and there
are some other inclusions of header files missing needed to compile
the licq with latest 4.x gcc without errors. Attaching the patch. Can
you add it into the svn, please?
 Regards Ladislav.
--- include/licq_buffer.h
+++ include/licq_buffer.h
@@ -3,6 +3,7 @@
 
 #include <map>
 #include <vector>
+#include <cstring>
 
 #include <boost/shared_array.hpp>
 #include <boost/shared_ptr.hpp>
--- include/licq_icqd.h
+++ include/licq_icqd.h
@@ -28,6 +28,19 @@
 #include "licq_color.h"
 #include "licq_protoplugind.h"
 
+// Declaration of friend functions in CICQDaemon from src/icqd-threads.cpp
+// Declaration needed by new gcc >= 4.1
+
+void *ProcessRunningEvent_Client_tep(void *p);
+void *ReverseConnectToUser_tep(void *v);
+void *Ping_tep(void *p);
+void *MonitorSockets_tep(void *p);
+void *Shutdown_tep(void *p);
+void *UpdateUsers_tep(void *p);
+void *ProcessRunningEvent_Server_tep(void *p);
+void *ConnectToServer_tep(void *s);
+// END Declaration of friend classes in CICQDaemon
+
 using std::string;
 
 class CProtoPlugin;
--- plugins/auto-reply/src/autoreply.cpp
+++ plugins/auto-reply/src/autoreply.cpp
@@ -12,6 +12,7 @@
 #include <stdlib.h>
 #include <sys/wait.h>
 #include <signal.h>
+#include <limits.h>
 #ifdef HAVE_ERRNO_H
 #include <errno.h>
 #else
--- plugins/email/src/forwarder.cpp
+++ plugins/email/src/forwarder.cpp
@@ -9,6 +9,7 @@
 #include <string.h>
 #include <ctype.h>
 #include <stdio.h>
+#include <limits.h>
 #ifdef HAVE_ERRNO_H
 #include <errno.h>
 #else
--- plugins/rms/src/rms.cpp
+++ plugins/rms/src/rms.cpp
@@ -9,6 +9,7 @@
 #include <string.h>
 #include <ctype.h>
 #include <stdio.h>
+#include <limits.h>
 #ifdef HAVE_ERRNO_H
 #include <errno.h>
 #else
--- src/fifo.cpp
+++ src/fifo.cpp
@@ -30,6 +30,7 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <ctype.h>
+#include <limits.h>
 #include "time-fix.h"
 
 #ifdef HAVE_ERRNO_H
--- src/icqd-srv.cpp
+++ src/icqd-srv.cpp
@@ -10,6 +10,7 @@
 #include "config.h"
 #endif
 
+#include <cassert>
 #include <stdio.h>
 #include <string.h>
 #include <sys/types.h>
--- src/icqd.cpp
+++ src/icqd.cpp
@@ -10,6 +10,7 @@
 #include "config.h"
 #endif
 
+#include <cassert>
 #include <string.h>
 #include <sys/types.h>
 #include <unistd.h>
--- src/socket.cpp
+++ src/socket.cpp
@@ -12,6 +12,7 @@
 #include "config.h"
 #endif
 
+#include <cassert>
 #include <stdio.h>
 #include <sys/types.h>
 #include <sys/socket.h>

Reply via email to