LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 08-12-2012, 06:00 AM   #1
vbisis
Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 250

Rep: Reputation: 34
Error compiling Sportwatcher on Slackware current


Hey,

Maybe someone can help. I'm trying to compile Sportwatcher ( http://www.theosys.at/sportwatcher/index.de.html) on Slackware current, but I'm getting the following error:

: /media/daten/Programme/sportwatcher/build # make
[ 0%] Built target gant_automoc
Scanning dependencies of target gant
[ 2%] Building CXX object libgant/CMakeFiles/gant.dir/gant_automoc.o
[ 4%] Building CXX object libgant/CMakeFiles/gant.dir/gant.o
/media/daten/Programme/sportwatcher/libgant/gant.cpp: In member function 'bool ant::get_data(int)':
/media/daten/Programme/sportwatcher/libgant/gant.cpp:352:1: error: control reaches end of non-void function [-Werror=return-type]
/media/daten/Programme/sportwatcher/libgant/gant.cpp: At global scope:
/media/daten/Programme/sportwatcher/libgant/gant.cpp:40:13: warning: 'sendack1' defined but not used [-Wunused-variable]
/media/daten/Programme/sportwatcher/libgant/gant.cpp:47:13: warning: 'sendack2' defined but not used [-Wunused-variable]
/media/daten/Programme/sportwatcher/libgant/gant.cpp:51:13: warning: 'sendack3' defined but not used [-Wunused-variable]
/media/daten/Programme/sportwatcher/libgant/gant.cpp:54:13: warning: 'sendack4' defined but not used [-Wunused-variable]
cc1plus: some warnings being treated as errors
make[2]: *** [libgant/CMakeFiles/gant.dir/gant.o] Error 1
make[1]: *** [libgant/CMakeFiles/gant.dir/all] Error 2
make: *** [all] Error 2

I have installed everything that is needed accoring to the documentation.

Someone an idea?

Best regards
 
Old 08-12-2012, 06:24 AM   #2
hj1967
Member
 
Registered: Jun 2011
Location: Nunspeet, The Netherlands
Distribution: Slackware x64
Posts: 39

Rep: Reputation: Disabled
: /media/daten/Programme/sportwatcher/build # make
[ 0%] Built target gant_automoc
Scanning dependencies of target gant
[ 2%] Building CXX object libgant/CMakeFiles/gant.dir/gant_automoc.o
[ 4%] Building CXX object libgant/CMakeFiles/gant.dir/gant.o
/media/daten/Programme/sportwatcher/libgant/gant.cpp: In member function 'bool ant::get_data(int)':
/media/daten/Programme/sportwatcher/libgant/gant.cpp:352:1: error: control reaches end of non-void function [-Werror=return-type]


I don't have this package but this error is not related to Slackware or a missing dependency but a problem in the source code.
The function ant::get_data(int) is missing a 'return true or return false' according the compiler message.

Best is to contact the maintainer and ask how to change the code.

/media/daten/Programme/sportwatcher/libgant/gant.cpp: At global scope:
/media/daten/Programme/sportwatcher/libgant/gant.cpp:40:13: warning: 'sendack1' defined but not used [-Wunused-variable]
/media/daten/Programme/sportwatcher/libgant/gant.cpp:47:13: warning: 'sendack2' defined but not used [-Wunused-variable]
/media/daten/Programme/sportwatcher/libgant/gant.cpp:51:13: warning: 'sendack3' defined but not used [-Wunused-variable]
/media/daten/Programme/sportwatcher/libgant/gant.cpp:54:13: warning: 'sendack4' defined but not used [-Wunused-variable]

These 4 unused variables should be harmless.
 
  


Reply



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
error while compiling kernel 2.6.36 in slackware 13.1 -current el_jauzaa Slackware 8 08-29-2012 08:36 PM
[SOLVED] Error when compiling Linux-PAM in slackware64-current fakhry Slackware 2 01-02-2012 11:42 AM
[SOLVED] error compiling virtualbox 3.2.10 on current Barx Slackware 4 12-13-2010 05:46 AM
Compiling freetype for Slackware-current slaxnoob Slackware 1 06-14-2004 03:39 AM
COmpiling problems on slackware-current Anibal Slackware 5 04-09-2004 08:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:21 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration