Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to build 0.6.1 in Ubuntu #1280

Closed
PandaJim opened this issue Dec 16, 2019 · 1 comment
Closed

failed to build 0.6.1 in Ubuntu #1280

PandaJim opened this issue Dec 16, 2019 · 1 comment

Comments

@PandaJim
Copy link

Hi, just tried to build Supertux 0.6.1 in Ubuntu 18.04 but got following error. Anyone help?

Performing C++ SOURCE FILE Test HAVE_ICONV_CONST failed with the following output:
Change Dir: /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_f461a/fast"
make[2]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp'
/usr/bin/make -f CMakeFiles/cmTC_f461a.dir/build.make CMakeFiles/cmTC_f461a.dir/build
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_f461a.dir/src.cxx.o
/usr/bin/c++    -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_ICONV_CONST   -o CMakeFiles/cmTC_f461a.dir/src.cxx.o -c /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp/src.cxx
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp/src.cxx:4:9: error: ambiguating new declaration of ‘double iconv(iconv_t, char**, size_t*, char**, size_t*)’
  double iconv(iconv_t cd,  char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft);
         ^~~~~
In file included from /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp/src.cxx:2:
/usr/include/iconv.h:42:15: note: old declaration ‘size_t iconv(iconv_t, char**, size_t*, char**, size_t*)’
 extern size_t iconv (iconv_t __cd, char **__restrict __inbuf,
               ^~~~~
make[3]: *** [CMakeFiles/cmTC_f461a.dir/build.make:66: CMakeFiles/cmTC_f461a.dir/src.cxx.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp'
make[2]: *** [Makefile:121: cmTC_f461a/fast] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp'

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; }
	
@PandaJim PandaJim changed the title fail building 0.6.1 in Ubuntu failed to build 0.6.1 in Ubuntu Dec 16, 2019
@tobbi
Copy link
Member

tobbi commented Dec 16, 2019

This check should not cause the build to fail from what I can tell. Can you check whether it compiles nonetheless or give me a complete build output?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants