Problem installing Super Tux on Linux

Problem installing Super Tux on Linux

Postby osama » 03 May 2016, 16:29

Hello,

I am trying to install Super Tux from source on Linux Mint (Ubuntu based). I get the following error:

In file included from /home/osama/Downloads/Compressed/supertux-0.4.0/build/CMakeFiles/CMakeTmp/src.cxx:2:0:
/usr/include/iconv.h:42:15: error: ambiguates old declaration ‘size_t iconv(iconv_t, char**, size_t*, char**, size_t*)’
extern size_t iconv (iconv_t __cd, char **__restrict __inbuf,
^
make[1]: Leaving directory `/home/osama/Downloads/Compressed/supertux-0.4.0/build/CMakeFiles/CMakeTmp'
make[1]: *** [CMakeFiles/cmTryCompileExec2267656386.dir/src.cxx.o] Error 1
make: *** [cmTryCompileExec2267656386/fast] Error 2

Source file was:

#include <iconv.h>
// this declaration will fail when there already exists a non const char** version which returns size_t
double iconv(iconv_t cd, char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft);
int main() { return 0; }


The complete CMakeOutput and CMakeError log files are also attached

Thanks
Attachments
CMakeOutput.log
(114.54 KiB) Downloaded 228 times
CMakeError.log
(4.01 KiB) Downloaded 242 times
osama
 
Posts: 2
Joined: 03 May 2016, 16:23

Re: Problem installing Super Tux on Linux

Postby Tobbi » 04 May 2016, 22:01

SuperTux developer.
User avatar
Tobbi
SuperTux Moderator
 
Posts: 353
Joined: 12 Oct 2013, 13:08

Re: Problem installing Super Tux on Linux

Postby osama » 05 May 2016, 11:01

I am not sure whether it is the same problem. But some solutions didn't work and the others have dead links. I tried to re-install libiconv but had other compilation errors :? :
In file included from progname.c:26:0:
./stdio.h:1010:1: error: ‘gets’ undeclared here (not in a function)
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
^
make[2]: *** [progname.o] Error 1
make[2]: Leaving directory `/home/osama/Downloads/Compressed/libiconv-1.14/srclib'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/osama/Downloads/Compressed/libiconv-1.14/srclib'
make: *** [install] Error 2

It seems that ST is somewhat outdated.
osama
 
Posts: 2
Joined: 03 May 2016, 16:23

Who is online

Users browsing this forum: No registered users and 1 guest