Advertisement
Guest User

stereograph make fail

a guest
Oct 24th, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.00 KB | None | 0 0
  1. shawn@shawn-VGN-CR120E:~/stereograph-0.30a$ make
  2. gcc -Wall -O2 -Dlinux -c -o stereograph.o stereograph.c
  3. stereograph.c: In function ‘parse_args’:
  4. stereograph.c:358:11: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration]
  5. if(!strcmp(argv[++z], "png"))
  6. ^~~~~~
  7. gcc -Wall -O2 -Dlinux -c -o renderer.o renderer.c
  8. renderer.c: In function ‘NormalScan’:
  9. renderer.c:317:2: warning: implicit declaration of function ‘memcpy’ [-Wimplicit-function-declaration]
  10. memcpy(stereo_data + Renderer.startx, texture_data, Texture.Width * sizeof(int));
  11. ^~~~~~
  12. renderer.c:317:2: warning: incompatible implicit declaration of built-in function ‘memcpy’
  13. renderer.c:317:2: note: include ‘<string.h>’ or provide a declaration of ‘memcpy’
  14. renderer.c: In function ‘ZoomScan’:
  15. renderer.c:454:3: warning: incompatible implicit declaration of built-in function ‘memcpy’
  16. memcpy(stereo_data + Stereo.Width*a, stereo_data, Stereo.Width * sizeof(int));
  17. ^~~~~~
  18. renderer.c:454:3: note: include ‘<string.h>’ or provide a declaration of ‘memcpy’
  19. renderer.c: In function ‘ZoomAAScan’:
  20. renderer.c:523:3: warning: incompatible implicit declaration of built-in function ‘memcpy’
  21. memcpy(stereo_data + Stereo.Width*a, stereo_data, Stereo.Width*sizeof(int));
  22. ^~~~~~
  23. renderer.c:523:3: note: include ‘<string.h>’ or provide a declaration of ‘memcpy’
  24. gcc -Wall -O2 -Dlinux -c -o gfxio.o gfxio.c
  25. gfxio.c: In function ‘Resize_GFX’:
  26. gfxio.c:104:4: warning: implicit declaration of function ‘memcpy’ [-Wimplicit-function-declaration]
  27. memcpy(temp_gfx + y * width, gfx->Data + gfx->Width * y, width*sizeof(int));
  28. ^~~~~~
  29. gfxio.c:104:4: warning: incompatible implicit declaration of built-in function ‘memcpy’
  30. gfxio.c:104:4: note: include ‘<string.h>’ or provide a declaration of ‘memcpy’
  31. gfxio.c: In function ‘Write_Gfx_File’:
  32. gfxio.c:237:7: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
  33. if(strlen(file_name) >= 4) {
  34. ^~~~~~
  35. gfxio.c:237:7: warning: incompatible implicit declaration of built-in function ‘strlen’
  36. gfxio.c:237:7: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
  37. gfxio.c:238:9: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration]
  38. if(!strcmp(file_name + strlen(file_name) - 4, ".tga"))
  39. ^~~~~~
  40. gfxio.c: In function ‘Read_PPM’:
  41. gfxio.c:331:4: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation]
  42. while(isspace(a = fgetc(ifile))); ungetc(a, ifile);
  43. ^~~~~
  44. gfxio.c:331:38: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘while’
  45. while(isspace(a = fgetc(ifile))); ungetc(a, ifile);
  46. ^~~~~~
  47. gfxio.c:333:4: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation]
  48. while(isspace(a = fgetc(ifile))); ungetc(a, ifile);
  49. ^~~~~
  50. gfxio.c:333:38: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘while’
  51. while(isspace(a = fgetc(ifile))); ungetc(a, ifile);
  52. ^~~~~~
  53. gfxio.c:335:4: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation]
  54. while(isspace(a = fgetc(ifile))); ungetc(a, ifile);
  55. ^~~~~
  56. gfxio.c:335:38: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘while’
  57. while(isspace(a = fgetc(ifile))); ungetc(a, ifile);
  58. ^~~~~~
  59. gfxio.c:339:3: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation]
  60. while(isspace(a = fgetc(ifile))); ungetc(a, ifile);
  61. ^~~~~
  62. gfxio.c:339:37: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘while’
  63. while(isspace(a = fgetc(ifile))); ungetc(a, ifile);
  64. ^~~~~~
  65. In file included from /usr/include/pngconf.h:50:0,
  66. from /usr/include/png.h:364,
  67. from gfxio.c:26:
  68. gfxio.c: In function ‘Read_PNG’:
  69. gfxio.c:393:21: error: dereferencing pointer to incomplete type ‘png_struct {aka struct png_struct_def}’
  70. if (setjmp(png_ptr->jmpbuf)) {
  71. ^
  72. gfxio.c: In function ‘Read_TARGA’:
  73. gfxio.c:536:2: warning: incompatible implicit declaration of built-in function ‘memcpy’
  74. memcpy(header, check_header, sizeof(char)*8);
  75. ^~~~~~
  76. gfxio.c:536:2: note: include ‘<string.h>’ or provide a declaration of ‘memcpy’
  77. In file included from gfxio.c:21:0:
  78. gfxio.c: In function ‘Write_TARGA’:
  79. gfxio.c:697:7: warning: incompatible implicit declaration of built-in function ‘strlen’
  80. putc(strlen("created by stereograph"), ofile);
  81. ^
  82. gfxio.c:697:7: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
  83. <builtin>: recipe for target 'gfxio.o' failed
  84. make: *** [gfxio.o] Error 1
  85. shawn@shawn-VGN-CR120E:~/stereograph-0.30a$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement