Package: synergy
Version: 1.3.1-2
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 (20070326-1 or higher)
from unstable. (Currently not available for i386, but for amd64, powerpc
and ia64. I hope to have i386 binaries in the archive in ~3 weeks.)
> Automatic build of synergy_1.3.1-2 on coconut0 by sbuild/ia64 0.49
...
> FOO=5 depmode=gcc3 /bin/sh ../../config/depcomp \
> ia64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../lib/common
> -g -O2 -g -Wall -Wno-unknown-pragmas -Werror -DSYSAPI_UNIX=1
> -DWINAPI_XWINDOWS=1 -pthread -c -o CArchDaemonUnix.o `test -f
> 'CArchDaemonUnix.cpp' || echo './'`CArchDaemonUnix.cpp
> CArchDaemonUnix.cpp: In member function 'virtual int
> CArchDaemonUnix::daemonize(const char*, int (*)(int, const char**))':
> CArchDaemonUnix.cpp:53: error: 'exit' was not declared in this scope
> make[4]: *** [CArchDaemonUnix.o] Error 1
--- lib/arch/CArchDaemonUnix.cpp~ 2007-04-04 11:49:58.000000000 +0000
+++ lib/arch/CArchDaemonUnix.cpp 2007-04-04 11:50:33.000000000 +0000
@@ -18,6 +18,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
+#include <cstdlib>
#include <errno.h>
//
--- lib/arch/CMultibyte.cpp~ 2007-04-04 11:50:52.000000000 +0000
+++ lib/arch/CMultibyte.cpp 2007-04-04 11:51:17.000000000 +0000
@@ -17,6 +17,7 @@
#include "common.h"
#include "CArch.h"
+#include <cstdlib>
#include <limits.h>
#include <string.h>
#if HAVE_LOCALE_H
--- lib/client/CClient.cpp~ 2007-04-04 12:03:07.000000000 +0000
+++ lib/client/CClient.cpp 2007-04-04 12:03:14.000000000 +0000
@@ -26,6 +26,7 @@
#include "CLog.h"
#include "IEventQueue.h"
#include "TMethodEventJob.h"
+#include <cstdlib>
//
// CClient
--- lib/net/CTCPSocket.cpp~ 2007-04-04 11:53:39.000000000 +0000
+++ lib/net/CTCPSocket.cpp 2007-04-04 11:53:58.000000000 +0000
@@ -23,6 +23,7 @@
#include "IEventJob.h"
#include "CArch.h"
#include "XArch.h"
+#include <cstdlib>
#include <string.h>
//
--- lib/platform/CXWindowsScreen.cpp~ 2007-04-04 12:02:14.000000000 +0000
+++ lib/platform/CXWindowsScreen.cpp 2007-04-04 12:02:25.000000000 +0000
@@ -51,6 +51,7 @@
# endif
#endif
#include "CArch.h"
+#include <cstdlib>
//
--- lib/server/CServer.cpp~ 2007-04-04 12:05:20.000000000 +0000
+++ lib/server/CServer.cpp 2007-04-04 12:05:26.000000000 +0000
@@ -29,6 +29,7 @@
#include "TMethodEventJob.h"
#include "CArch.h"
#include <string.h>
+#include <cstdlib>
//
// CServer
--- lib/synergy/IKeyState.cpp~ 2007-04-04 12:00:26.000000000 +0000
+++ lib/synergy/IKeyState.cpp 2007-04-04 12:00:41.000000000 +0000
@@ -13,6 +13,7 @@
*/
#include "IKeyState.h"
+#include <cstdlib>
#include <string.h>
//
--- lib/synergy/IPrimaryScreen.cpp~ 2007-04-04 12:00:56.000000000 +0000
+++ lib/synergy/IPrimaryScreen.cpp 2007-04-04 12:01:02.000000000 +0000
@@ -13,6 +13,7 @@
*/
#include "IPrimaryScreen.h"
+#include <cstdlib>
//
// IPrimaryScreen
Unfortunately now we fail with:
from CClientTaskBarReceiver.cpp:15:
../../lib/arch/IArchTaskBarReceiver.h:77: error: type qualifiers ignored on
function return type
In file included from CClientTaskBarReceiver.cpp:15:
CClientTaskBarReceiver.h:46: error: type qualifiers ignored on function return
type
--
Martin Michlmayr
http://www.cyrius.com/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]