Guest User

Untitled

a guest
Oct 22nd, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.26 KB | None | 0 0
  1. % gcc -o test test.c
  2. test.c:1: error: stray '\357' in program
  3. test.c:1: error: stray '\273' in program
  4. test.c:1: error: stray '\277' in program
  5. test.c:1: error: stray '#' in program
  6. In file included from test.c:2:
  7. test.c:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before string constant
  8. test.c:141: error: expected specifier-qualifier-list before 'u_char'
  9. test.c:190: error: field 'ippseudo_src' has incomplete type
  10. test.c:191: error: field 'ippseudo_dst' has incomplete type
  11. test.c:192: error: expected specifier-qualifier-list before 'u_char'
  12. test.c: In function 'sniff':
  13. test.c:26: error: field 'iph' has incomplete type
  14. test.c:46: warning: incompatible implicit declaration of built-in function 'printf'
  15. test.c:51: error: 'struct tcphdr' has no member named 'source'
  16. test.c:52: error: 'struct tcphdr' has no member named 'dest'
  17. test.c:55: error: 'struct tcphdr' has no member named 'seq'
  18. test.c:56: error: 'struct tcphdr' has no member named 'fin'
  19. test.c:57: error: 'struct tcphdr' has no member named 'syn'
  20. test.c: In function 'scan_ports':
  21. test.c:129: warning: incompatible implicit declaration of built-in function 'bzero'
  22. test.c:143: warning: incompatible implicit declaration of built-in function 'printf'
  23. test.c: In function 'rawsyn':
  24. test.c:153: error: invalid application of 'sizeof' to incomplete type 'struct iphdr'
  25. test.c:157: error: invalid application of 'sizeof' to incomplete type 'struct iphdr'
  26. test.c:166: error: dereferencing pointer to incomplete type
  27. test.c:167: error: dereferencing pointer to incomplete type
  28. test.c:168: error: dereferencing pointer to incomplete type
  29. test.c:169: error: dereferencing pointer to incomplete type
  30. test.c:169: error: invalid application of 'sizeof' to incomplete type 'struct iphdr'
  31. test.c:170: error: dereferencing pointer to incomplete type
  32. test.c:171: error: dereferencing pointer to incomplete type
  33. test.c:172: error: dereferencing pointer to incomplete type
  34. test.c:173: error: dereferencing pointer to incomplete type
  35. test.c:174: error: dereferencing pointer to incomplete type
  36. test.c:175: error: dereferencing pointer to incomplete type
  37. test.c:177: error: 'struct tcphdr' has no member named 'source'
  38. test.c:178: error: 'struct tcphdr' has no member named 'dest'
  39. test.c:179: error: 'struct tcphdr' has no member named 'seq'
  40. test.c:180: error: 'struct tcphdr' has no member named 'ack_seq'
  41. test.c:181: error: 'struct tcphdr' has no member named 'doff'
  42. test.c:182: error: 'struct tcphdr' has no member named 'syn'
  43. test.c:183: error: 'struct tcphdr' has no member named 'window'
  44. test.c:184: error: 'struct tcphdr' has no member named 'check'
  45. test.c:185: error: 'struct tcphdr' has no member named 'urg_ptr'
  46. test.c:187: error: dereferencing pointer to incomplete type
  47. test.c:187: error: invalid application of 'sizeof' to incomplete type 'struct iphdr'
  48. test.c:188: error: 'struct tcphdr' has no member named 'check'
  49. test.c:188: error: invalid application of 'sizeof' to incomplete type 'struct iphdr'
  50. test.c:190: error: dereferencing pointer to incomplete type
  51. test.c:192: error: 'struct tcphdr' has no member named 'source'
  52. test.c:203: error: invalid application of 'sizeof' to incomplete type 'struct iphdr'
  53. test.c:209: warning: incompatible implicit declaration of built-in function 'printf'
  54. test.c: In function 'getRequests':
  55. test.c:243: warning: incompatible implicit declaration of built-in function 'bzero'
  56. test.c:247: warning: incompatible implicit declaration of built-in function 'fprintf'
  57. test.c:247: error: 'stdout' undeclared (first use in this function)
  58. test.c:247: error: (Each undeclared identifier is reported only once
  59. test.c:247: error: for each function it appears in.)
  60. test.c:251: warning: incompatible implicit declaration of built-in function 'strlen'
  61. test.c:253: warning: incompatible implicit declaration of built-in function 'snprintf'
  62. test.c: In function 'main':
  63. test.c:275: warning: incompatible implicit declaration of built-in function 'printf'
  64. test.c:289: warning: incompatible implicit declaration of built-in function 'printf'
  65. test.c:299: warning: incompatible implicit declaration of built-in function 'printf'
  66. test.c:304: warning: incompatible implicit declaration of built-in function 'printf'
  67. test.c:311: warning: incompatible implicit declaration of built-in function 'printf'
Add Comment
Please, Sign In to add comment