Package: gloox
Version: 0.8.6~sic-1
Usertags: ftbfs-gcc-4.3
Tags: patch

Your package fails to build with GCC 4.3.  Version 4.3 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning.  In GCC 4.3, the C++ header
dependencies have been cleaned up.  The advantage of this is that
programs will compile faster.  The downside is that you actually
need to directly #include everything you use (but you really should
do this anyway, otherwise your program won't work with any compiler
other than GCC).  Some background of this can be found at
http://gcc.gnu.org/PR28080

You can reproduce this problem with gcc-snapshot from unstable.

> Automatic build of gloox_0.8.6~sic-1 on coconut0 by sbuild/ia64 0.49
...
>  ia64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -Wall -pedantic -pipe -W 
> -Wfloat-equal -Wcast-align -Wsign-compare -Wpointer-arith -Wswitch 
> -Wunknown-pragmas -Wconversion -Wundef -Wcast-qual -ansi -g -O2 -MT 
> connection.lo -MD -MP -MF .deps/connection.Tpo -c connection.cpp  -fPIC -DPIC 
> -o .libs/connection.o
> In file included from connection.cpp:19:
> dns.h:121: warning: 'typedef' was ignored in this declaration
> connection.cpp: In constructor 'gloox::Connection::Connection(gloox::Parser*, 
> const gloox::LogSink&, const std::string&, short unsigned int)':
> connection.cpp:56: error: 'calloc' was not declared in this scope
> connection.cpp: In destructor 'virtual gloox::Connection::~Connection()':
> connection.cpp:65: error: 'free' was not declared in this scope
...

and:

> roster_test.cpp:141: error: second argument of 'int main(int, char*)' should 
> be 'char **'


--- src/tests/disco_test.cpp~   2007-04-01 19:52:06.000000000 +0000
+++ src/tests/disco_test.cpp    2007-04-01 19:52:19.000000000 +0000
@@ -77,7 +77,7 @@
     Client *j;
 };
 
-int main( int /*argc*/, char* /*argv[]*/ )
+int main( int /*argc*/, char** /*argv*/ )
 {
   DiscoTest *r = new DiscoTest();
   r->start();
--- src/tests/adhoc_test.cpp~   2007-04-01 19:52:33.000000000 +0000
+++ src/tests/adhoc_test.cpp    2007-04-01 19:52:42.000000000 +0000
@@ -70,7 +70,7 @@
     Adhoc *a;
 };
 
-int main( int /*argc*/, char* /*argv[]*/ )
+int main( int /*argc*/, char** /*argv*/ )
 {
   AdhocTest *b = new AdhocTest();
   b->start();
--- src/tests/roster_test.cpp~  2007-04-01 19:52:53.000000000 +0000
+++ src/tests/roster_test.cpp   2007-04-01 19:53:00.000000000 +0000
@@ -138,7 +138,7 @@
     Client *j;
 };
 
-int main( int /*argc*/, char* /*argv[]*/ )
+int main( int /*argc*/, char** /*argv*/ )
 {
   RosterTest *r = new RosterTest();
   r->start();
--- src/tests/privatexml_test.cpp~      2007-04-01 19:53:15.000000000 +0000
+++ src/tests/privatexml_test.cpp       2007-04-01 19:53:25.000000000 +0000
@@ -72,7 +72,7 @@
     PrivateXML *p;
 };
 
-int main( int /*argc*/, char* /*argv[]*/ )
+int main( int /*argc*/, char** /*argv*/ )
 {
   PrivateXMLTest *r = new PrivateXMLTest();
   r->start();
--- src/tests/vcard_test.cpp~   2007-04-01 19:53:34.000000000 +0000
+++ src/tests/vcard_test.cpp    2007-04-01 19:53:40.000000000 +0000
@@ -122,7 +122,7 @@
     int m_count;
 };
 
-int main( int /*argc*/, char* /*argv[]*/ )
+int main( int /*argc*/, char** /*argv*/ )
 {
   VCardTest *v = new VCardTest();
   v->start();
--- src/tests/privacylist_test.cpp~     2007-04-01 19:53:43.000000000 +0000
+++ src/tests/privacylist_test.cpp      2007-04-01 19:53:51.000000000 +0000
@@ -105,7 +105,7 @@
     PrivacyManager *p;
 };
 
-int main( int /*argc*/, char* /*argv[]*/ )
+int main( int /*argc*/, char** /*argv*/ )
 {
   PLTest *t = new PLTest();
   t->start();
--- src/tests/message_test.cpp~ 2007-04-01 19:53:54.000000000 +0000
+++ src/tests/message_test.cpp  2007-04-01 19:53:59.000000000 +0000
@@ -167,7 +167,7 @@
     ChatStateFilter *m_chatStateFilter;
 };
 
-int main( int /*argc*/, char* /*argv[]*/ )
+int main( int /*argc*/, char** /*argv*/ )
 {
   MessageTest *r = new MessageTest();
   r->start();
--- src/tests/ibb_test.cpp~     2007-04-01 19:54:03.000000000 +0000
+++ src/tests/ibb_test.cpp      2007-04-01 19:54:09.000000000 +0000
@@ -219,7 +219,7 @@
     bool m_send;
 };
 
-int main( int /*argc*/, char* /*argv[]*/ )
+int main( int /*argc*/, char** /*argv*/ )
 {
   IBBTest *r = new IBBTest();
   r->start();
--- src/tests/flexoff_test.cpp~ 2007-04-01 19:54:12.000000000 +0000
+++ src/tests/flexoff_test.cpp  2007-04-01 19:54:18.000000000 +0000
@@ -152,7 +152,7 @@
     FlexibleOffline *f;
 };
 
-int main( int /*argc*/, char* /*argv[]*/ )
+int main( int /*argc*/, char** /*argv*/ )
 {
   FlexOffTest *r = new FlexOffTest();
   r->start();
--- src/tests/component_test.cpp~       2007-04-01 19:54:22.000000000 +0000
+++ src/tests/component_test.cpp        2007-04-01 19:54:28.000000000 +0000
@@ -72,7 +72,7 @@
     Component *j;
 };
 
-int main( int /*argc*/, char* /*argv[]*/ )
+int main( int /*argc*/, char** /*argv*/ )
 {
   ComponentTest *r = new ComponentTest();
   r->start();
--- src/tests/bookmarkstorage_test.cpp~ 2007-04-01 19:54:31.000000000 +0000
+++ src/tests/bookmarkstorage_test.cpp  2007-04-01 19:54:36.000000000 +0000
@@ -103,7 +103,7 @@
     BookmarkStorage *b;
 };
 
-int main( int /*argc*/, char* /*argv[]*/ )
+int main( int /*argc*/, char** /*argv*/ )
 {
   BookmarkStorageTest *t = new BookmarkStorageTest();
   t->start();
--- src/tests/annotations_test.cpp~     2007-04-01 19:54:39.000000000 +0000
+++ src/tests/annotations_test.cpp      2007-04-01 19:54:45.000000000 +0000
@@ -84,7 +84,7 @@
     Annotations *a;
 };
 
-int main( int /*argc*/, char* /*argv[]*/ )
+int main( int /*argc*/, char** /*argv*/ )
 {
   AnnotationsTest *t = new AnnotationsTest();
   t->start();
--- src/connection.cpp~ 2007-04-01 19:40:35.000000000 +0000
+++ src/connection.cpp  2007-04-01 19:40:44.000000000 +0000
@@ -40,6 +40,7 @@
 
 #include <time.h>
 
+#include <cstdlib>
 #include <string>
 #include <sstream>
 
--- src/clientbase.cpp~ 2007-04-01 19:41:06.000000000 +0000
+++ src/clientbase.cpp  2007-04-01 19:41:11.000000000 +0000
@@ -18,6 +18,7 @@
 #include "config.h"
 #endif
 
+#include <cstdlib>
 #include "clientbase.h"
 #include "connection.h"
 #include "messagesessionhandler.h"
--- src/stanza.cpp~     2007-04-01 19:42:28.000000000 +0000
+++ src/stanza.cpp      2007-04-01 19:42:37.000000000 +0000
@@ -13,6 +13,7 @@
 
 #include "stanza.h"
 #include "jid.h"
+#include <cstdlib>
 
 namespace gloox
 {
--- src/prep.cpp~       2007-04-01 19:43:06.000000000 +0000
+++ src/prep.cpp        2007-04-01 19:43:12.000000000 +0000
@@ -19,6 +19,7 @@
 
 #include "prep.h"
 
+#include <cstdlib>
 #include <string>
 
 #ifdef HAVE_LIBIDN
--- src/component.cpp~  2007-04-01 19:43:41.000000000 +0000
+++ src/component.cpp   2007-04-01 19:43:47.000000000 +0000
@@ -20,6 +20,8 @@
 
 #include <iksemel.h>
 
+#include <cstdlib>
+
 namespace gloox
 {
 
--- src/lastactivity.cpp~       2007-04-01 19:47:02.000000000 +0000
+++ src/lastactivity.cpp        2007-04-01 19:47:12.000000000 +0000
@@ -18,6 +18,7 @@
 #include "client.h"
 #include "lastactivityhandler.h"
 
+#include <cstdlib>
 #include <sstream>
 
 namespace gloox
--- src/flexoff.cpp~    2007-04-01 19:47:37.000000000 +0000
+++ src/flexoff.cpp     2007-04-01 19:47:42.000000000 +0000
@@ -11,6 +11,7 @@
 */
 
 
+#include <cstdlib>
 #include "flexoff.h"
 #include "dataform.h"
 

-- 
Martin Michlmayr
http://www.cyrius.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to