sepp27

Compile error on Solaris 10 SPARC

1 post in this topic

Hello, trying to compile the latest code from GitHub (Commit 8ff44d2) on Solaris 10 SPARC with gcc4 fails with the following error: [code][ 86%] Built target platform [ 86%] Building CXX object src/lib/ipc/CMakeFiles/ipc.dir/IpcServer.cpp.o [ 88%] Building CXX object src/lib/ipc/CMakeFiles/ipc.dir/Ipc.cpp.o [ 89%] Building CXX object src/lib/ipc/CMakeFiles/ipc.dir/IpcMessage.cpp.o [ 89%] Building CXX object src/lib/ipc/CMakeFiles/ipc.dir/IpcServerProxy.cpp.o /root/synergy/src/lib/ipc/IpcServerProxy.cpp: In member function 'void IpcServerProxy::send(const IpcMessage&)': /root/synergy/src/lib/ipc/IpcServerProxy.cpp:98:59: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second: ProtocolUtil::writef(&m_stream, kIpcMsgCommand, &command); ^ In file included from /root/synergy/src/lib/ipc/IpcServerProxy.cpp:23:0: /root/synergy/src/lib/ipc/../synergy/ProtocolUtil.h:82:16: note: candidate 1: static void ProtocolUtil::writef(void*, const char*, va_list) static void writef(void*, const char* fmt, va_list); ^ /root/synergy/src/lib/ipc/../synergy/ProtocolUtil.h:53:16: note: candidate 2: static void ProtocolUtil::writef(synergy::IStream*, const char*, ...) static void writef(synergy::IStream*, ^ /root/synergy/src/lib/ipc/../synergy/ProtocolUtil.h:82:16: error: 'static void ProtocolUtil::writef(void*, const char*, va_list)' is private static void writef(void*, const char* fmt, va_list); ^ /root/synergy/src/lib/ipc/IpcServerProxy.cpp:98:59: error: within this context ProtocolUtil::writef(&m_stream, kIpcMsgCommand, &command); ^ *** Error code 1 The following command caused the error: cd /root/synergy/src/lib/ipc && /opt/csw/bin/c++ -DHAVE_CONFIG_H -DSYSAPI_UNIX=1 -DWINAPI_XWINDOWS=1 -fPIC -I/root/synergy/src/lib/ipc/.. -I/root/synergy/src/lib/ipc/../../.. -o CMakeFiles/ipc.dir/IpcServerProxy.cpp.o -c /root/synergy/src/lib/ipc/IpcServerProxy.cpp make: Fatal error: Command failed for target `src/lib/ipc/CMakeFiles/ipc.dir/IpcServerProxy.cpp.o' Current working directory /root/synergy *** Error code 1 The following command caused the error: make -f src/lib/ipc/CMakeFiles/ipc.dir/build.make src/lib/ipc/CMakeFiles/ipc.dir/build make: Fatal error: Command failed for target `src/lib/ipc/CMakeFiles/ipc.dir/all' Current working directory /root/synergy *** Error code 1 The following command caused the error: cd /root/synergy && make -f CMakeFiles/Makefile2 src/cmd/all make: Fatal error: Command failed for target `all'[/code] [code]# uname -a SunOS sun 5.10 Generic_150400-26 sun4u sparc sun4u # g++ --version g++ (GCC) 4.9.2 Copyright (C) 2014 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.[/code] Exactly the same code compiles fine on Solaris 10 x86 (same patchlevel, same gcc/g++ version). Any help is appreciated.

Share this post


Link to post
Share on other sites
I hope you got this figured out at some point. If so, please post the solution for others to see. In any case, this isn't really the place for development/compiling type discussion, this forum is more for topics relating to using Synergy after compilation (usually by downloading the available package and installing it on a supported OS). I would suggest this sort of topic be raised on the developers mailing list: https://groups.google.com/forum/#!forum/synergy-dev Good luck!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now