taa1

Build logsurfer+ v1.8 on Mac OS X 10.11 (El Capitan)

Oct 20th, 2016
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.63 KB | None | 0 0
  1. $ cd logsurfer-1.8
  2. $ ./configure && make
  3. creating cache ./config.cache
  4. checking for gcc... gcc
  5. checking whether we are using GNU C... yes
  6. checking whether gcc accepts -g... yes
  7. checking for a BSD compatible install... /usr/local/bin/ginstall -c
  8. checking whether make sets ${MAKE}... yes
  9. checking how to run the C preprocessor... gcc -E
  10. checking for AIX... no
  11. checking for -lgen... no
  12. checking whether cross-compiling... no
  13. checking for ANSI C header files... yes
  14. checking for sys/wait.h that is POSIX.1 compatible... yes
  15. checking whether time.h and sys/time.h may both be included... yes
  16. checking for sys/time.h... yes
  17. checking for stdlib.h... yes
  18. checking for malloc.h... no
  19. checking for string.h... yes
  20. checking for strings.h... yes
  21. checking for limits.h... yes
  22. checking for unistd.h... yes
  23. checking for sys/resource.h... yes
  24. checking for pid_t... yes
  25. checking for working const... yes
  26. checking for working alloca.h... yes
  27. checking for alloca... yes
  28. checking for strchr... yes
  29. checking for index... yes
  30. checking for memmove... yes
  31. checking for bcopy... yes
  32. checking etcdir... /usr/local/etc
  33. updating cache ./config.cache
  34. creating ./config.status
  35. creating Makefile
  36. creating src/Makefile
  37. creating man/Makefile
  38. creating config.h
  39. for subdir in man src; do \
  40. echo making all in $subdir ; \
  41. (cd $subdir; /Library/Developer/CommandLineTools/usr/bin/make prefix='/usr/local' bindir='/usr/local/bin' mandir='/usr/local/man' CPPFLAGS='-DVERSION=\"1.8\" -DWARN_ROOT' CC='gcc' CFLAGS='-g -O' LDFLAGS='' DEF_DUMPFILE='/dev/null' DEF_CONFFILE='/usr/local/etc/logsurfer.conf' LIBS='' INSTALL='/usr/local/bin/ginstall -c' INSTALL_PROGRAM='/usr/local/bin/ginstall -c' INSTALL_DATA='/usr/local/bin/ginstall -c -m 644' DEFS='-DHAVE_CONFIG_H' all); \
  42. done
  43. making all in man
  44. sed -e "s,@DUMPFILE@,/dev/null," \
  45. -e "s,@CONFFILE@,/usr/local/etc/logsurfer.conf," < logsurfer.1.in > logsurfer.1
  46. sed -e "s,@DUMPFILE@,/dev/null," \
  47. -e "s,@CONFFILE@,/usr/local/etc/logsurfer.conf," < logsurfer.conf.4.in > logsurfer.conf.4
  48. making all in src
  49. gcc -c -DVERSION=\"1.8\" -DWARN_ROOT -DHAVE_CONFIG_H -DDUMPFILE=\"/dev/null\" \
  50. -DCONFFILE=\"/usr/local/etc/logsurfer.conf\" -I.. -g -O context.c
  51. context.c:637:39: warning: format specifies type 'int' but the argument has type
  52. 'long' [-Wformat]
  53. tp += sprintf(tp,"%d",this_context->lines);
  54. ~~ ^~~~~~~~~~~~~~~~~~~
  55. %ld
  56. /usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf'
  57. __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__)
  58. ^~~~~~~~~~~
  59. 1 warning generated.
  60. gcc -c -DVERSION=\"1.8\" -DWARN_ROOT -DHAVE_CONFIG_H -DDUMPFILE=\"/dev/null\" \
  61. -DCONFFILE=\"/usr/local/etc/logsurfer.conf\" -I.. -g -O exec.c
  62. gcc -c -DVERSION=\"1.8\" -DWARN_ROOT -DHAVE_CONFIG_H -DDUMPFILE=\"/dev/null\" \
  63. -DCONFFILE=\"/usr/local/etc/logsurfer.conf\" -I.. -g -O exit.c
  64. gcc -c -DVERSION=\"1.8\" -DWARN_ROOT -DHAVE_CONFIG_H -DDUMPFILE=\"/dev/null\" \
  65. -DCONFFILE=\"/usr/local/etc/logsurfer.conf\" -I.. -g -O logsurfer.c
  66. logsurfer.c:348:1: warning: control may reach end of non-void function
  67. [-Wreturn-type]
  68. }
  69. ^
  70. logsurfer.c:684:3: warning: implicit declaration of function
  71. 'check_context_linelimit' is invalid in C99
  72. [-Wimplicit-function-declaration]
  73. check_context_linelimit();
  74. ^
  75. 2 warnings generated.
  76. gcc -c -DVERSION=\"1.8\" -DWARN_ROOT -DHAVE_CONFIG_H -DDUMPFILE=\"/dev/null\" \
  77. -DCONFFILE=\"/usr/local/etc/logsurfer.conf\" -I.. -g -O readcf.c
  78. gcc -c -DVERSION=\"1.8\" -DWARN_ROOT -DHAVE_CONFIG_H -DDUMPFILE=\"/dev/null\" \
  79. -DCONFFILE=\"/usr/local/etc/logsurfer.conf\" -I.. -g -O report.c
  80. gcc -c -DVERSION=\"1.8\" -DWARN_ROOT -DHAVE_CONFIG_H -DDUMPFILE=\"/dev/null\" \
  81. -DCONFFILE=\"/usr/local/etc/logsurfer.conf\" -I.. -g -O rule.c
  82. gcc -c -DVERSION=\"1.8\" -DWARN_ROOT -DHAVE_CONFIG_H -DDUMPFILE=\"/dev/null\" \
  83. -DCONFFILE=\"/usr/local/etc/logsurfer.conf\" -I.. -g -O str_util.c
  84. gcc -c -DVERSION=\"1.8\" -DWARN_ROOT -DHAVE_CONFIG_H -DDUMPFILE=\"/dev/null\" \
  85. -DCONFFILE=\"/usr/local/etc/logsurfer.conf\" -I.. -g -O regex.c
  86. regex.c:1629:17: warning: add explicit braces to avoid dangling else
  87. [-Wdangling-else]
  88. else
  89. ^
  90. regex.c:1649:17: warning: add explicit braces to avoid dangling else
  91. [-Wdangling-else]
  92. else
  93. ^
  94. regex.c:2834:33: warning: expression which evaluates to zero treated as a null
  95. pointer constant of type 'regoff_t *' (aka 'int *')
  96. [-Wnon-literal-null-conversion]
  97. regs->start = regs->end = (regoff_t) 0;
  98. ^~~~~~~~~~~~
  99. regex.c:3771:19: warning: cast to 'fail_stack_elt_t' (aka
  100. 'const unsigned char *') from smaller integer type 'unsigned int'
  101. [-Wint-to-pointer-cast]
  102. PUSH_FAILURE_POINT (p1 + mcnt, d, -2);
  103. ^
  104. regex.c:2407:5: note: expanded from macro 'PUSH_FAILURE_POINT'
  105. PUSH_FAILURE_ITEM (lowest_active_reg); \
  106. ^
  107. regex.c:2328:42: note: expanded from macro 'PUSH_FAILURE_ITEM'
  108. fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) item
  109. ^
  110. regex.c:3771:19: warning: cast to 'fail_stack_elt_t' (aka
  111. 'const unsigned char *') from smaller integer type 'unsigned int'
  112. [-Wint-to-pointer-cast]
  113. regex.c:2410:5: note: expanded from macro 'PUSH_FAILURE_POINT'
  114. PUSH_FAILURE_ITEM (highest_active_reg); \
  115. ^
  116. regex.c:2328:42: note: expanded from macro 'PUSH_FAILURE_ITEM'
  117. fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) item
  118. ^
  119. regex.c:3918:11: warning: cast to 'fail_stack_elt_t' (aka
  120. 'const unsigned char *') from smaller integer type 'unsigned int'
  121. [-Wint-to-pointer-cast]
  122. PUSH_FAILURE_POINT (p + mcnt, NULL, -2);
  123. ^
  124. regex.c:2407:5: note: expanded from macro 'PUSH_FAILURE_POINT'
  125. PUSH_FAILURE_ITEM (lowest_active_reg); \
  126. ^
  127. regex.c:2328:42: note: expanded from macro 'PUSH_FAILURE_ITEM'
  128. fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) item
  129. ^
  130. regex.c:3918:11: warning: cast to 'fail_stack_elt_t' (aka
  131. 'const unsigned char *') from smaller integer type 'unsigned int'
  132. [-Wint-to-pointer-cast]
  133. regex.c:2410:5: note: expanded from macro 'PUSH_FAILURE_POINT'
  134. PUSH_FAILURE_ITEM (highest_active_reg); \
  135. ^
  136. regex.c:2328:42: note: expanded from macro 'PUSH_FAILURE_ITEM'
  137. fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) item
  138. ^
  139. regex.c:3971:11: warning: cast to 'fail_stack_elt_t' (aka
  140. 'const unsigned char *') from smaller integer type 'unsigned int'
  141. [-Wint-to-pointer-cast]
  142. PUSH_FAILURE_POINT (p + mcnt, d, -2);
  143. ^
  144. regex.c:2407:5: note: expanded from macro 'PUSH_FAILURE_POINT'
  145. PUSH_FAILURE_ITEM (lowest_active_reg); \
  146. ^
  147. regex.c:2328:42: note: expanded from macro 'PUSH_FAILURE_ITEM'
  148. fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) item
  149. ^
  150. regex.c:3971:11: warning: cast to 'fail_stack_elt_t' (aka
  151. 'const unsigned char *') from smaller integer type 'unsigned int'
  152. [-Wint-to-pointer-cast]
  153. regex.c:2410:5: note: expanded from macro 'PUSH_FAILURE_POINT'
  154. PUSH_FAILURE_ITEM (highest_active_reg); \
  155. ^
  156. regex.c:2328:42: note: expanded from macro 'PUSH_FAILURE_ITEM'
  157. fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) item
  158. ^
  159. regex.c:4110:11: warning: cast to 'fail_stack_elt_t' (aka
  160. 'const unsigned char *') from smaller integer type 'unsigned int'
  161. [-Wint-to-pointer-cast]
  162. PUSH_FAILURE_POINT (0, 0, -2);
  163. ^
  164. regex.c:2407:5: note: expanded from macro 'PUSH_FAILURE_POINT'
  165. PUSH_FAILURE_ITEM (lowest_active_reg); \
  166. ^
  167. regex.c:2328:42: note: expanded from macro 'PUSH_FAILURE_ITEM'
  168. fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) item
  169. ^
  170. regex.c:4110:11: warning: cast to 'fail_stack_elt_t' (aka
  171. 'const unsigned char *') from smaller integer type 'unsigned int'
  172. [-Wint-to-pointer-cast]
  173. regex.c:2410:5: note: expanded from macro 'PUSH_FAILURE_POINT'
  174. PUSH_FAILURE_ITEM (highest_active_reg); \
  175. ^
  176. regex.c:2328:42: note: expanded from macro 'PUSH_FAILURE_ITEM'
  177. fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) item
  178. ^
  179. regex.c:4123:11: warning: cast to 'fail_stack_elt_t' (aka
  180. 'const unsigned char *') from smaller integer type 'unsigned int'
  181. [-Wint-to-pointer-cast]
  182. PUSH_FAILURE_POINT (0, 0, -2);
  183. ^
  184. regex.c:2407:5: note: expanded from macro 'PUSH_FAILURE_POINT'
  185. PUSH_FAILURE_ITEM (lowest_active_reg); \
  186. ^
  187. regex.c:2328:42: note: expanded from macro 'PUSH_FAILURE_ITEM'
  188. fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) item
  189. ^
  190. regex.c:4123:11: warning: cast to 'fail_stack_elt_t' (aka
  191. 'const unsigned char *') from smaller integer type 'unsigned int'
  192. [-Wint-to-pointer-cast]
  193. regex.c:2410:5: note: expanded from macro 'PUSH_FAILURE_POINT'
  194. PUSH_FAILURE_ITEM (highest_active_reg); \
  195. ^
  196. regex.c:2328:42: note: expanded from macro 'PUSH_FAILURE_ITEM'
  197. fail_stack.stack[fail_stack.avail++] = (fail_stack_elt_t) item
  198. ^
  199. 13 warnings generated.
  200. gcc -c -DVERSION=\"1.8\" -DWARN_ROOT -DHAVE_CONFIG_H -DDUMPFILE=\"/dev/null\" \
  201. -DCONFFILE=\"/usr/local/etc/logsurfer.conf\" -I.. -g -O readline.c
  202. readline.c:69:25: warning: implicitly declaring library function 'realloc' with
  203. type 'void *(void *, unsigned long)' [-Wimplicit-function-declaration]
  204. if ( (*buffer=(char *)realloc(*buffer, (*buffer_size)*2)...
  205. ^
  206. readline.c:69:25: note: include the header <stdlib.h> or explicitly provide a
  207. declaration for 'realloc'
  208. readline.c:109:25: warning: implicitly declaring library function 'malloc' with
  209. type 'void *(unsigned long)' [-Wimplicit-function-declaration]
  210. if ( (result=(char *) malloc(strlen(*buffer)+1)) == NULL ) {
  211. ^
  212. readline.c:109:25: note: include the header <stdlib.h> or explicitly provide a
  213. declaration for 'malloc'
  214. 2 warnings generated.
  215. gcc -DVERSION=\"1.8\" -DWARN_ROOT -g -O -o logsurfer context.o exec.o exit.o logsurfer.o readcf.o report.o rule.o str_util.o regex.o readline.o
Advertisement
Add Comment
Please, Sign In to add comment