LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Error compiling Sportwatcher on Slackware current (http://www.linuxquestions.org/questions/slackware-14/error-compiling-sportwatcher-on-slackware-current-4175421681/)

vbisis 08-12-2012 06:00 AM

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

hj1967 08-12-2012 06:24 AM

: /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.


All times are GMT -5. The time now is 09:00 AM.