Advertisement
snadge

supertux 0.4 ubuntu 15.10 iconv issue

Dec 22nd, 2015
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.08 KB | None | 0 0
  1. snadge@octokang:/usr/src/supertux-0.4.0/build$ cat CMakeFiles/CMakeError.log
  2. Determining if the system is big endian passed with the following output:
  3. Change Dir: /usr/src/supertux-0.4.0/build/CMakeFiles/CMakeTmp
  4.  
  5. Run Build Command:"/usr/bin/make" "cmTryCompileExec1264574968/fast"
  6. /usr/bin/make -f CMakeFiles/cmTryCompileExec1264574968.dir/build.make CMakeFiles/cmTryCompileExec1264574968.dir/build
  7. make[1]: Entering directory '/usr/src/supertux-0.4.0/build/CMakeFiles/CMakeTmp'
  8. /usr/bin/cmake -E cmake_progress_report /usr/src/supertux-0.4.0/build/CMakeFiles/CMakeTmp/CMakeFiles 1
  9. Building C object CMakeFiles/cmTryCompileExec1264574968.dir/TestEndianess.c.o
  10. /usr/bin/cc -o CMakeFiles/cmTryCompileExec1264574968.dir/TestEndianess.c.o -c /usr/src/supertux-0.4.0/build/CMakeFiles/CMakeTmp/TestEndianess.c
  11. Linking C executable cmTryCompileExec1264574968
  12. /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1264574968.dir/link.txt --verbose=1
  13. /usr/bin/cc CMakeFiles/cmTryCompileExec1264574968.dir/TestEndianess.c.o -o cmTryCompileExec1264574968 -rdynamic
  14. make[1]: Leaving directory '/usr/src/supertux-0.4.0/build/CMakeFiles/CMakeTmp'
  15.  
  16. TestEndianess.c:
  17. /* A 16 bit integer is required. */
  18. typedef unsigned short cmakeint16;
  19.  
  20. /* On a little endian machine, these 16bit ints will give "THIS IS LITTLE ENDIAN."
  21. On a big endian machine the characters will be exchanged pairwise. */
  22. const cmakeint16 info_little[] = {0x4854, 0x5349, 0x4920, 0x2053, 0x494c, 0x5454, 0x454c, 0x4520, 0x444e, 0x4149, 0x2e4e, 0x0000};
  23.  
  24. /* on a big endian machine, these 16bit ints will give "THIS IS BIG ENDIAN."
  25. On a little endian machine the characters will be exchanged pairwise. */
  26. const cmakeint16 info_big[] = {0x5448, 0x4953, 0x2049, 0x5320, 0x4249, 0x4720, 0x454e, 0x4449, 0x414e, 0x2e2e, 0x0000};
  27.  
  28. #ifdef __CLASSIC_C__
  29. int main(argc, argv) int argc; char *argv[];
  30. #else
  31. int main(int argc, char *argv[])
  32. #endif
  33. {
  34. int require = 0;
  35. require += info_little[argc];
  36. require += info_big[argc];
  37. (void)argv;
  38. return require;
  39. }
  40.  
  41.  
  42. Performing C++ SOURCE FILE Test HAVE_ICONV_CONST failed with the following output:
  43. Change Dir: /usr/src/supertux-0.4.0/build/CMakeFiles/CMakeTmp
  44.  
  45. Run Build Command:"/usr/bin/make" "cmTryCompileExec1852920673/fast"
  46. /usr/bin/make -f CMakeFiles/cmTryCompileExec1852920673.dir/build.make CMakeFiles/cmTryCompileExec1852920673.dir/build
  47. make[1]: Entering directory '/usr/src/supertux-0.4.0/build/CMakeFiles/CMakeTmp'
  48. /usr/bin/cmake -E cmake_progress_report /usr/src/supertux-0.4.0/build/CMakeFiles/CMakeTmp/CMakeFiles 1
  49. Building CXX object CMakeFiles/cmTryCompileExec1852920673.dir/src.cxx.o
  50. /usr/bin/c++ -DHAVE_ICONV_CONST -o CMakeFiles/cmTryCompileExec1852920673.dir/src.cxx.o -c /usr/src/supertux-0.4.0/build/CMakeFiles/CMakeTmp/src.cxx
  51. /usr/src/supertux-0.4.0/build/CMakeFiles/CMakeTmp/src.cxx:4:98: error: ambiguating new declaration of β€˜double iconv(iconv_t, char**, size_t*, char**, size_t*)’
  52. double iconv(iconv_t cd, char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft);
  53. ^
  54. In file included from /usr/src/supertux-0.4.0/build/CMakeFiles/CMakeTmp/src.cxx:2:0:
  55. /usr/include/iconv.h:42:15: note: old declaration β€˜size_t iconv(iconv_t, char**, size_t*, char**, size_t*)’
  56. extern size_t iconv (iconv_t __cd, char **__restrict __inbuf,
  57. ^
  58. CMakeFiles/cmTryCompileExec1852920673.dir/build.make:57: recipe for target 'CMakeFiles/cmTryCompileExec1852920673.dir/src.cxx.o' failed
  59. make[1]: Leaving directory '/usr/src/supertux-0.4.0/build/CMakeFiles/CMakeTmp'
  60. make[1]: *** [CMakeFiles/cmTryCompileExec1852920673.dir/src.cxx.o] Error 1
  61. Makefile:117: recipe for target 'cmTryCompileExec1852920673/fast' failed
  62. make: *** [cmTryCompileExec1852920673/fast] Error 2
  63.  
  64. Source file was:
  65.  
  66. #include <iconv.h>
  67. // this declaration will fail when there already exists a non const char** version which returns size_t
  68. double iconv(iconv_t cd, char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft);
  69. int main() { return 0; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement