From Gamboge Pelican, 5 Years ago, written in Plain Text.
Embed
  1. Rhcps-MacBook-Pro:LGBinExtractor rhcp$ make
  2. test -d build || mkdir build
  3. gcc -c -Wall -std=c89 -pedantic -Wno-unused-result -Wno-strict-aliasing -O2 src/APHeader.c -o build/APHeader.o
  4. src/APHeader.c:57:16: warning: 'long long' is an extension when C99 mode is not enabled [-Wlong-long]
  5.     if (tmp == UINT64_MAX) break;
  6.                ^
  7. /usr/include/stdint.h:87:27: note: expanded from macro 'UINT64_MAX'
  8. #define UINT64_MAX        18446744073709551615ULL
  9.                           ^
  10. src/APHeader.c:116:16: warning: 'long long' is an extension when C99 mode is not enabled [-Wlong-long]
  11.     if (tmp == UINT64_MAX) break;
  12.                ^
  13. /usr/include/stdint.h:87:27: note: expanded from macro 'UINT64_MAX'
  14. #define UINT64_MAX        18446744073709551615ULL
  15.                           ^
  16. 2 warnings generated.
  17. gcc -c -Wall -std=c89 -pedantic -Wno-unused-result -Wno-strict-aliasing -O2 src/BinExtractor.c -o build/BinExtractor.o
  18. src/BinExtractor.c:91:10: warning: comparison of constant -1 with expression of type 'uint16_t' (aka 'unsigned short') is always false [-Wtautological-constant-out-of-range-compare]
  19.   if(tmp == -1)
  20.      ~~~ ^  ~~
  21. src/BinExtractor.c:302:7: warning: implicit declaration of function 'lseek64' [-Wimplicit-function-declaration]
  22.       lseek64(fileno(f), (uint64_t)aph.pent_arr[i].file_off * 4096 + 0x100000, SEEK_SET);
  23.       ^
  24. 2 warnings generated.
  25. gcc -c -Wall -std=c89 -pedantic -Wno-unused-result -Wno-strict-aliasing -O2 src/GPT.c -o build/GPT.o
  26. gcc  build/APHeader.o build/BinExtractor.o build/GPT.o -o build/BinExtractor
  27. Undefined symbols for architecture x86_64:
  28.   "_lseek64", referenced from:
  29.       _splitBinFile in BinExtractor.o
  30. ld: symbol(s) not found for architecture x86_64
  31. clang: error: linker command failed with exit code 1 (use -v to see invocation)
  32. make: *** [BinExtractor] Error 1
  33. Rhcps-MacBook-Pro:LGBinExtractor rhcp$
  34.