-   Slackware (
-   -   Slackbuild error - Synergy (

Ratmonkey 01-02-2013 08:45 AM

Slackbuild error - Synergy
Slackware 32-bit 14.0
Trying to install Synergy-Plus from a 13.37 Slack.Build. See errors at the end:

config.status: creating config.h
config.status: executing depfiles commands
make all-recursive
make[1]: Entering directory `/tmp/SBo/synergy-plus-1.3.4'
Making all in lib
make[2]: Entering directory `/tmp/SBo/synergy-plus-1.3.4/lib'
Making all in common
make[3]: Entering directory `/tmp/SBo/synergy-plus-1.3.4/lib/common'
g++ -DHAVE_CONFIG_H -I. -I../.. -O2 -march=i486 -mtune=i686 -g -Wall -Wno-unknown-pragmas -Werror -DSYSAPI_UNIX=1 -DWINAPI_XWINDOWS=1 -pthread -MT Version.o -MD -MP -MF .deps/Version.Tpo -c -o Version.o Version.cpp
mv -f .deps/Version.Tpo .deps/Version.Po
rm -f libcommon.a
ar cru libcommon.a Version.o
ranlib libcommon.a
make[3]: Leaving directory `/tmp/SBo/synergy-plus-1.3.4/lib/common'
Making all in arch
make[3]: Entering directory `/tmp/SBo/synergy-plus-1.3.4/lib/arch'
g++ -DHAVE_CONFIG_H -I. -I../.. -I../../lib/common -O2 -march=i486 -mtune=i686 -g -Wall -Wno-unknown-pragmas -Werror -DSYSAPI_UNIX=1 -DWINAPI_XWINDOWS=1 -pthread -MT CArch.o -MD -MP -MF .deps/CArch.Tpo -c -o CArch.o CArch.cpp
mv -f .deps/CArch.Tpo .deps/CArch.Po
g++ -DHAVE_CONFIG_H -I. -I../.. -I../../lib/common -O2 -march=i486 -mtune=i686 -g -Wall -Wno-unknown-pragmas -Werror -DSYSAPI_UNIX=1 -DWINAPI_XWINDOWS=1 -pthread -MT CArchDaemonNone.o -MD -MP -MF .deps/CArchDaemonNone.Tpo -c -o CArchDaemonNone.o CArchDaemonNone.cpp
mv -f .deps/CArchDaemonNone.Tpo .deps/CArchDaemonNone.Po
g++ -DHAVE_CONFIG_H -I. -I../.. -I../../lib/common -O2 -march=i486 -mtune=i686 -g -Wall -Wno-unknown-pragmas -Werror -DSYSAPI_UNIX=1 -DWINAPI_XWINDOWS=1 -pthread -MT XArch.o -MD -MP -MF .deps/XArch.Tpo -c -o XArch.o XArch.cpp
mv -f .deps/XArch.Tpo .deps/XArch.Po
g++ -DHAVE_CONFIG_H -I. -I../.. -I../../lib/common -O2 -march=i486 -mtune=i686 -g -Wall -Wno-unknown-pragmas -Werror -DSYSAPI_UNIX=1 -DWINAPI_XWINDOWS=1 -pthread -MT CArchConsoleUnix.o -MD -MP -MF .deps/CArchConsoleUnix.Tpo -c -o CArchConsoleUnix.o CArchConsoleUnix.cpp
mv -f .deps/CArchConsoleUnix.Tpo .deps/CArchConsoleUnix.Po
g++ -DHAVE_CONFIG_H -I. -I../.. -I../../lib/common -O2 -march=i486 -mtune=i686 -g -Wall -Wno-unknown-pragmas -Werror -DSYSAPI_UNIX=1 -DWINAPI_XWINDOWS=1 -pthread -MT CArchDaemonUnix.o -MD -MP -MF .deps/CArchDaemonUnix.Tpo -c -o CArchDaemonUnix.o CArchDaemonUnix.cpp
CArchDaemonUnix.cpp: In member function 'virtual int CArchDaemonUnix::daemonize(const char*, IArchDaemon::DaemonFunc)':
CArchDaemonUnix.cpp:41:6: error: variable 'dummy' set but not used [-Werror=unused-but-set-variable]
cc1plus: all warnings being treated as errors
make[3]: *** [CArchDaemonUnix.o] Error 1
make[3]: Leaving directory `/tmp/SBo/synergy-plus-1.3.4/lib/arch'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/SBo/synergy-plus-1.3.4/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/SBo/synergy-plus-1.3.4'
make: *** [all] Error 2

XGizzmo 01-02-2013 09:20 AM

Try adding -Wno-unused-but-set-variable to the $SLCKFLAGS or $CXXFLAGS.

Ratmonkey 01-02-2013 11:24 AM

I would happily try that if I knew how. I used Vi Improved and opened the Synergy-plus.SlackBuild and although I see sections that contain $SLCKFLAGS and $CXXFLAGS, I'm unsure of what to do from there.


XGizzmo 01-02-2013 12:28 PM

CFLAGS="$SLKCFLAGS -Wno-unused-but-set-variable" \
CXXFLAGS="$SLKCFLAGS -Wno-unused-but-set-variable" \

Alien Bob 01-02-2013 01:10 PM

Perhaps it would be better to use "-Wno-unused-but-set-variable" ;-)


Ratmonkey 01-02-2013 02:04 PM

Well I ended up downloading the latest synergy rpm file and converted it and then installed it. Seems to be working.

Thanks guys!

All times are GMT -5. The time now is 01:08 PM.