Hello All!
Since GCC 4.3 there was a major change in GCC behaviour - it doesn't
include so many header files by default as earlier. As a result
developers should explicitly include all necessary headers to avoid
some cryptic messages such as:

 'div_t' was not declared in this scope
 'exit' was not declared in this scope
 'free' was not declared in this scope
 'malloc' was not declared in this scope
 'num' was not declared in this scope
 'random' was not declared in this scope
 'strerror' was not declared in this scope

(Full log here: http://peter.fedorapeople.org/sems--build.log )

Necessary patch included.

-- 
With best regards!
Index: apps/voicemail/AmSmtpClient.cpp
===================================================================
--- apps/voicemail/AmSmtpClient.cpp	(revision 1006)
+++ apps/voicemail/AmSmtpClient.cpp	(working copy)
@@ -32,6 +32,7 @@
 #include <netinet/in.h>
 #include <arpa/inet.h>
 #include <time.h>
+#include <string.h>
 
 #include "AmSmtpClient.h"
 #include "AmUtils.h"
Index: core/AmSipMsg.cpp
===================================================================
--- core/AmSipMsg.cpp	(revision 1006)
+++ core/AmSipMsg.cpp	(working copy)
@@ -1,4 +1,5 @@
-
+#include <string.h>
+#include <stdlib.h>
 #include "AmSipMsg.h"
 
 
Index: core/plug-in/stats/query_stats.c
===================================================================
--- core/plug-in/stats/query_stats.c	(revision 1006)
+++ core/plug-in/stats/query_stats.c	(working copy)
@@ -6,6 +6,7 @@
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
+#include <stdlib.h>
 
 #include <map>
 #include <string>
Index: core/AmArg.h
===================================================================
--- core/AmArg.h	(revision 1006)
+++ core/AmArg.h	(working copy)
@@ -30,6 +30,7 @@
 
 #include <assert.h>
 #include <string.h>
+#include <stdlib.h>
 
 #include <vector>
 using std::vector;
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to