LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-02-2013, 08:45 AM   #1
Ratmonkey
Member
 
Registered: Jul 2012
Location: Notre Dame, Indiana
Distribution: Slackware
Posts: 57

Rep: Reputation: Disabled
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:aemonFunc)':
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
 
Old 01-02-2013, 09:20 AM   #2
XGizzmo
Member
 
Registered: Mar 2007
Distribution: Slackware
Posts: 264

Rep: Reputation: 68
Try adding -Wno-unused-but-set-variable to the $SLCKFLAGS or $CXXFLAGS.

Last edited by XGizzmo; 01-02-2013 at 02:23 PM.
 
Old 01-02-2013, 11:24 AM   #3
Ratmonkey
Member
 
Registered: Jul 2012
Location: Notre Dame, Indiana
Distribution: Slackware
Posts: 57

Original Poster
Rep: Reputation: Disabled
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.

Thanks,

Last edited by Ratmonkey; 01-02-2013 at 11:50 AM.
 
Old 01-02-2013, 12:28 PM   #4
XGizzmo
Member
 
Registered: Mar 2007
Distribution: Slackware
Posts: 264

Rep: Reputation: 68
CFLAGS="$SLKCFLAGS -Wno-unused-but-set-variable" \
CXXFLAGS="$SLKCFLAGS -Wno-unused-but-set-variable" \

Last edited by XGizzmo; 01-02-2013 at 02:22 PM. Reason: Fixed typo, thanks Eric.
 
Old 01-02-2013, 01:10 PM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,223

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

Eric
 
Old 01-02-2013, 02:04 PM   #6
Ratmonkey
Member
 
Registered: Jul 2012
Location: Notre Dame, Indiana
Distribution: Slackware
Posts: 57

Original Poster
Rep: Reputation: Disabled
Well I ended up downloading the latest synergy rpm file and converted it and then installed it. Seems to be working.

Thanks guys!
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slackbuild error {HELP} -Fay- Slackware 6 03-02-2012 02:26 PM
Slackbuild handbrake error-[gtk.install] Error 2 Swift&Smart Slackware 8 08-17-2010 03:42 PM
Configure: error: You must have the XTest library to build synergy cucolin@ Linux - Software 2 12-12-2009 09:17 AM
Xtest error compiling Synergy bpottle Linux - Software 1 12-12-2009 09:09 AM
Synergy/Synergy+ - "@" key problem eponymous Linux - Software 1 12-08-2009 07:24 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration