Guest User

Untitled

a guest
Feb 5th, 2018
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.18 KB | None | 0 0
  1. root@7e4d0e39b3de:/app# cat /tmp/openresty-1.13.6.1/build/nginx-1.13.6/objs/autoconf.err
  2.  
  3.  
  4. ----------------------------------------
  5. checking for C compiler
  6.  
  7.  
  8. ----------------------------------------
  9. checking for gcc -pipe switch
  10.  
  11.  
  12. ----------------------------------------
  13. checking for --with-ld-opt="-Wl,-rpath,/etc/nginx/luajit/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed"
  14.  
  15.  
  16. ----------------------------------------
  17. checking for -Wl,-E switch
  18.  
  19.  
  20. ----------------------------------------
  21. checking for gcc builtin atomic operations
  22.  
  23.  
  24. ----------------------------------------
  25. checking for C99 variadic macros
  26.  
  27.  
  28. ----------------------------------------
  29. checking for gcc variadic macros
  30.  
  31.  
  32. ----------------------------------------
  33. checking for gcc builtin 64 bit byteswap
  34.  
  35.  
  36. ----------------------------------------
  37. checking for unistd.h
  38.  
  39.  
  40. ----------------------------------------
  41. checking for inttypes.h
  42.  
  43.  
  44. ----------------------------------------
  45. checking for limits.h
  46.  
  47.  
  48. ----------------------------------------
  49. checking for sys/filio.h
  50.  
  51. objs/autotest.c:3:23: fatal error: sys/filio.h: No such file or directory
  52. compilation terminated.
  53. ----------
  54.  
  55.  
  56. #include <sys/filio.h>
  57.  
  58. int main(void) {
  59. return 0;
  60. }
  61.  
  62. ----------
  63. cc -o objs/autotest objs/autotest.c
  64. ----------
  65.  
  66. ----------------------------------------
  67. checking for sys/param.h
  68.  
  69.  
  70. ----------------------------------------
  71. checking for sys/mount.h
  72.  
  73.  
  74. ----------------------------------------
  75. checking for sys/statvfs.h
  76.  
  77.  
  78. ----------------------------------------
  79. checking for crypt.h
  80.  
  81.  
  82. ----------------------------------------
  83. checking for epoll
  84.  
  85.  
  86. ----------------------------------------
  87. checking for EPOLLRDHUP
  88.  
  89.  
  90. ----------------------------------------
  91. checking for EPOLLEXCLUSIVE
  92.  
  93. objs/autotest.c: In function 'main':
  94. objs/autotest.c:9:43: error: 'EPOLLEXCLUSIVE' undeclared (first use in this function)
  95. ee.events = EPOLLIN|EPOLLEXCLUSIVE;
  96. ^
  97. objs/autotest.c:9:43: note: each undeclared identifier is reported only once for each function it appears in
  98. ----------
  99.  
  100. #include <sys/types.h>
  101. #include <unistd.h>
  102. #include <sys/epoll.h>
  103.  
  104. int main(void) {
  105. int efd = 0, fd = 0;
  106. struct epoll_event ee;
  107. ee.events = EPOLLIN|EPOLLEXCLUSIVE;
  108. ee.data.ptr = NULL;
  109. epoll_ctl(efd, EPOLL_CTL_ADD, fd, &ee);
  110. return 0;
  111. }
  112.  
  113. ----------
  114. cc -O2 -g -O2 -fstack-protector-strong --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c -Wl,-rpath,/etc/nginx/luajit/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed
  115. ----------
  116.  
  117. ----------------------------------------
  118. checking for O_PATH
  119.  
  120.  
  121. ----------------------------------------
  122. checking for sendfile()
  123.  
  124.  
  125. ----------------------------------------
  126. checking for sendfile64()
  127.  
  128.  
  129. ----------------------------------------
  130. checking for sys/prctl.h
  131.  
  132.  
  133. ----------------------------------------
  134. checking for prctl(PR_SET_DUMPABLE)
  135.  
  136.  
  137. ----------------------------------------
  138. checking for crypt_r()
  139.  
  140.  
  141. ----------------------------------------
  142. checking for sys/vfs.h
  143.  
  144.  
  145. ----------------------------------------
  146. checking for poll()
  147.  
  148.  
  149. ----------------------------------------
  150. checking for /dev/poll
  151.  
  152. objs/autotest.c:4:25: fatal error: sys/devpoll.h: No such file or directory
  153. compilation terminated.
  154. ----------
  155.  
  156. #include <sys/types.h>
  157. #include <unistd.h>
  158. #include <sys/devpoll.h>
  159.  
  160. int main(void) {
  161. int n, dp; struct dvpoll dvp;
  162. dp = 0;
  163. dvp.dp_fds = NULL;
  164. dvp.dp_nfds = 0;
  165. dvp.dp_timeout = 0;
  166. n = ioctl(dp, DP_POLL, &dvp);
  167. if (n == -1) return 1;
  168. return 0;
  169. }
  170.  
  171. ----------
  172. cc -O2 -g -O2 -fstack-protector-strong --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c -Wl,-rpath,/etc/nginx/luajit/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed
  173. ----------
  174.  
  175. ----------------------------------------
  176. checking for kqueue
  177.  
  178. objs/autotest.c:4:23: fatal error: sys/event.h: No such file or directory
  179. compilation terminated.
  180. ----------
  181.  
  182. #include <sys/types.h>
  183. #include <unistd.h>
  184. #include <sys/event.h>
  185.  
  186. int main(void) {
  187. (void) kqueue();
  188. return 0;
  189. }
  190.  
  191. ----------
  192. cc -O2 -g -O2 -fstack-protector-strong --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c -Wl,-rpath,/etc/nginx/luajit/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed
  193. ----------
  194.  
  195. ----------------------------------------
  196. checking for crypt()
  197.  
  198. /tmp/ccUU38X0.o: In function `main':
  199. /tmp/openresty-1.13.6.1/build/nginx-1.13.6/objs/autotest.c:7: undefined reference to `crypt'
  200. collect2: error: ld returned 1 exit status
  201. ----------
  202.  
  203. #include <sys/types.h>
  204. #include <unistd.h>
  205.  
  206.  
  207. int main(void) {
  208. crypt("test", "salt");;
  209. return 0;
  210. }
  211.  
  212. ----------
  213. cc -O2 -g -O2 -fstack-protector-strong --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c -Wl,-rpath,/etc/nginx/luajit/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed
  214. ----------
  215.  
  216. ----------------------------------------
  217. checking for crypt() in libcrypt
  218.  
  219.  
  220. ----------------------------------------
  221. checking for F_READAHEAD
  222.  
  223. objs/autotest.c: In function 'main':
  224. objs/autotest.c:7:14: error: 'F_READAHEAD' undeclared (first use in this function)
  225. fcntl(0, F_READAHEAD, 1);;
  226. ^
  227. objs/autotest.c:7:14: note: each undeclared identifier is reported only once for each function it appears in
  228. ----------
  229.  
  230. #include <sys/types.h>
  231. #include <unistd.h>
  232. #include <fcntl.h>
  233.  
  234. int main(void) {
  235. fcntl(0, F_READAHEAD, 1);;
  236. return 0;
  237. }
  238.  
  239. ----------
  240. cc -O2 -g -O2 -fstack-protector-strong --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c -Wl,-rpath,/etc/nginx/luajit/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed
  241. ----------
  242.  
  243. ----------------------------------------
  244. checking for posix_fadvise()
  245.  
  246.  
  247. ----------------------------------------
  248. checking for O_DIRECT
  249.  
  250.  
  251. ----------------------------------------
  252. checking for F_NOCACHE
  253.  
  254. objs/autotest.c: In function 'main':
  255. objs/autotest.c:7:14: error: 'F_NOCACHE' undeclared (first use in this function)
  256. fcntl(0, F_NOCACHE, 1);;
  257. ^
  258. objs/autotest.c:7:14: note: each undeclared identifier is reported only once for each function it appears in
  259. ----------
  260.  
  261. #include <sys/types.h>
  262. #include <unistd.h>
  263. #include <fcntl.h>
  264.  
  265. int main(void) {
  266. fcntl(0, F_NOCACHE, 1);;
  267. return 0;
  268. }
  269.  
  270. ----------
  271. cc -O2 -g -O2 -fstack-protector-strong --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c -Wl,-rpath,/etc/nginx/luajit/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed
  272. ----------
  273.  
  274. ----------------------------------------
  275. checking for directio()
  276.  
  277. objs/autotest.c: In function 'main':
  278. objs/autotest.c:8:5: warning: implicit declaration of function 'directio' [-Wimplicit-function-declaration]
  279. directio(0, DIRECTIO_ON);;
  280. ^
  281. objs/autotest.c:8:17: error: 'DIRECTIO_ON' undeclared (first use in this function)
  282. directio(0, DIRECTIO_ON);;
  283. ^
  284. objs/autotest.c:8:17: note: each undeclared identifier is reported only once for each function it appears in
  285. ----------
  286.  
  287. #include <sys/types.h>
  288. #include <unistd.h>
  289. #include <sys/types.h>
  290. #include <sys/fcntl.h>
  291.  
  292. int main(void) {
  293. directio(0, DIRECTIO_ON);;
  294. return 0;
  295. }
  296.  
  297. ----------
  298. cc -O2 -g -O2 -fstack-protector-strong --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c -Wl,-rpath,/etc/nginx/luajit/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed
  299. ----------
  300.  
  301. ----------------------------------------
  302. checking for statfs()
  303.  
  304.  
  305. ----------------------------------------
  306. checking for statvfs()
  307.  
  308.  
  309. ----------------------------------------
  310. checking for dlopen()
  311.  
  312. /tmp/cc3AaAmi.o: In function `main':
  313. /tmp/openresty-1.13.6.1/build/nginx-1.13.6/objs/autotest.c:7: undefined reference to `dlopen'
  314. /tmp/openresty-1.13.6.1/build/nginx-1.13.6/objs/autotest.c:7: undefined reference to `dlsym'
  315. collect2: error: ld returned 1 exit status
  316. ----------
  317.  
  318. #include <sys/types.h>
  319. #include <unistd.h>
  320. #include <dlfcn.h>
  321.  
  322. int main(void) {
  323. dlopen(NULL, RTLD_NOW | RTLD_GLOBAL); dlsym(NULL, "");
  324. return 0;
  325. }
  326.  
  327. ----------
  328. cc -O2 -g -O2 -fstack-protector-strong --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c -Wl,-rpath,/etc/nginx/luajit/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed
  329. ----------
  330.  
  331. ----------------------------------------
  332. checking for dlopen() in libdl
  333.  
  334.  
  335. ----------------------------------------
  336. checking for sched_yield()
  337.  
  338.  
  339. ----------------------------------------
  340. checking for sched_setaffinity()
  341.  
  342.  
  343. ----------------------------------------
  344. checking for SO_SETFIB
  345.  
  346. objs/autotest.c: In function 'main':
  347. objs/autotest.c:7:31: error: 'SO_SETFIB' undeclared (first use in this function)
  348. setsockopt(0, SOL_SOCKET, SO_SETFIB, NULL, 0);
  349. ^
  350. objs/autotest.c:7:31: note: each undeclared identifier is reported only once for each function it appears in
  351. ----------
  352.  
  353. #include <sys/types.h>
  354. #include <unistd.h>
  355. #include <sys/socket.h>
  356.  
  357. int main(void) {
  358. setsockopt(0, SOL_SOCKET, SO_SETFIB, NULL, 0);
  359. return 0;
  360. }
  361.  
  362. ----------
  363. cc -O2 -g -O2 -fstack-protector-strong --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c -Wl,-rpath,/etc/nginx/luajit/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed
  364. ----------
  365.  
  366. ----------------------------------------
  367. checking for SO_REUSEPORT
  368.  
  369.  
  370. ----------------------------------------
  371. checking for SO_ACCEPTFILTER
  372.  
  373. objs/autotest.c: In function 'main':
  374. objs/autotest.c:7:31: error: 'SO_ACCEPTFILTER' undeclared (first use in this function)
  375. setsockopt(0, SOL_SOCKET, SO_ACCEPTFILTER, NULL, 0);
  376. ^
  377. objs/autotest.c:7:31: note: each undeclared identifier is reported only once for each function it appears in
  378. ----------
  379.  
  380. #include <sys/types.h>
  381. #include <unistd.h>
  382. #include <sys/socket.h>
  383.  
  384. int main(void) {
  385. setsockopt(0, SOL_SOCKET, SO_ACCEPTFILTER, NULL, 0);
  386. return 0;
  387. }
  388.  
  389. ----------
  390. cc -O2 -g -O2 -fstack-protector-strong --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c -Wl,-rpath,/etc/nginx/luajit/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed
  391. ----------
  392.  
  393. ----------------------------------------
  394. checking for SO_BINDANY
  395.  
  396. objs/autotest.c: In function 'main':
  397. objs/autotest.c:7:31: error: 'SO_BINDANY' undeclared (first use in this function)
  398. setsockopt(0, SOL_SOCKET, SO_BINDANY, NULL, 0);
  399. ^
  400. objs/autotest.c:7:31: note: each undeclared identifier is reported only once for each function it appears in
  401. ----------
  402.  
  403. #include <sys/types.h>
  404. #include <unistd.h>
  405. #include <sys/socket.h>
  406.  
  407. int main(void) {
  408. setsockopt(0, SOL_SOCKET, SO_BINDANY, NULL, 0);
  409. return 0;
  410. }
  411.  
  412. ----------
  413. cc -O2 -g -O2 -fstack-protector-strong --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c -Wl,-rpath,/etc/nginx/luajit/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed
  414. ----------
  415.  
  416. ----------------------------------------
  417. checking for IP_BIND_ADDRESS_NO_PORT
  418.  
  419.  
  420. ----------------------------------------
  421. checking for IP_TRANSPARENT
  422.  
  423.  
  424. ----------------------------------------
  425. checking for IP_BINDANY
  426.  
  427. objs/autotest.c: In function 'main':
  428. objs/autotest.c:8:31: error: 'IP_BINDANY' undeclared (first use in this function)
  429. setsockopt(0, IPPROTO_IP, IP_BINDANY, NULL, 0);
  430. ^
  431. objs/autotest.c:8:31: note: each undeclared identifier is reported only once for each function it appears in
  432. ----------
  433.  
  434. #include <sys/types.h>
  435. #include <unistd.h>
  436. #include <sys/socket.h>
  437. #include <netinet/in.h>
  438.  
  439. int main(void) {
  440. setsockopt(0, IPPROTO_IP, IP_BINDANY, NULL, 0);
  441. return 0;
  442. }
  443.  
  444. ----------
  445. cc -O2 -g -O2 -fstack-protector-strong --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c -Wl,-rpath,/etc/nginx/luajit/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed
  446. ----------
  447.  
  448. ----------------------------------------
  449. checking for IP_RECVDSTADDR
  450.  
  451. objs/autotest.c: In function 'main':
  452. objs/autotest.c:8:31: error: 'IP_RECVDSTADDR' undeclared (first use in this function)
  453. setsockopt(0, IPPROTO_IP, IP_RECVDSTADDR, NULL, 0);
  454. ^
  455. objs/autotest.c:8:31: note: each undeclared identifier is reported only once for each function it appears in
  456. ----------
  457.  
  458. #include <sys/types.h>
  459. #include <unistd.h>
  460. #include <sys/socket.h>
  461. #include <netinet/in.h>
  462.  
  463. int main(void) {
  464. setsockopt(0, IPPROTO_IP, IP_RECVDSTADDR, NULL, 0);
  465. return 0;
  466. }
  467.  
  468. ----------
  469. cc -O2 -g -O2 -fstack-protector-strong --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c -Wl,-rpath,/etc/nginx/luajit/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed
  470. ----------
  471.  
  472. ----------------------------------------
  473. checking for IP_SENDSRCADDR
  474.  
  475. objs/autotest.c: In function 'main':
  476. objs/autotest.c:8:31: error: 'IP_SENDSRCADDR' undeclared (first use in this function)
  477. setsockopt(0, IPPROTO_IP, IP_SENDSRCADDR, NULL, 0);
  478. ^
  479. objs/autotest.c:8:31: note: each undeclared identifier is reported only once for each function it appears in
  480. ----------
  481.  
  482. #include <sys/types.h>
  483. #include <unistd.h>
  484. #include <sys/socket.h>
  485. #include <netinet/in.h>
  486.  
  487. int main(void) {
  488. setsockopt(0, IPPROTO_IP, IP_SENDSRCADDR, NULL, 0);
  489. return 0;
  490. }
  491.  
  492. ----------
  493. cc -O2 -g -O2 -fstack-protector-strong --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c -Wl,-rpath,/etc/nginx/luajit/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed
  494. ----------
  495.  
  496. ----------------------------------------
  497. checking for IP_PKTINFO
  498.  
  499.  
  500. ----------------------------------------
  501. checking for IPV6_RECVPKTINFO
  502.  
  503.  
  504. ----------------------------------------
  505. checking for TCP_DEFER_ACCEPT
  506.  
  507.  
  508. ----------------------------------------
  509. checking for TCP_KEEPIDLE
  510.  
  511.  
  512. ----------------------------------------
  513. checking for TCP_FASTOPEN
  514.  
  515.  
  516. ----------------------------------------
  517. checking for TCP_INFO
  518.  
  519.  
  520. ----------------------------------------
  521. checking for accept4()
  522.  
  523.  
  524. ----------------------------------------
  525. checking for kqueue AIO support
  526.  
  527. objs/autotest.c: In function 'main':
  528. objs/autotest.c:8:56: error: 'SIGEV_KEVENT' undeclared (first use in this function)
  529. iocb.aio_sigevent.sigev_notify = SIGEV_KEVENT;
  530. ^
  531. objs/autotest.c:8:56: note: each undeclared identifier is reported only once for each function it appears in
  532. ----------
  533.  
  534. #include <sys/types.h>
  535. #include <unistd.h>
  536. #include <aio.h>
  537.  
  538. int main(void) {
  539. struct aiocb iocb;
  540. iocb.aio_sigevent.sigev_notify = SIGEV_KEVENT;
  541. (void) aio_read(&iocb);
  542. return 0;
  543. }
  544.  
  545. ----------
  546. cc -O2 -g -O2 -fstack-protector-strong --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c -Wl,-rpath,/etc/nginx/luajit/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed
  547. ----------
  548.  
  549. ----------------------------------------
  550. checking for Linux AIO support
  551.  
  552.  
  553. ----------------------------------------
  554. checking for int size
  555.  
  556.  
  557. ----------------------------------------
  558. checking for long size
  559.  
  560.  
  561. ----------------------------------------
  562. checking for long long size
  563.  
  564.  
  565. ----------------------------------------
  566. checking for void * size
  567.  
  568.  
  569. ----------------------------------------
  570. checking for uint32_t
  571.  
  572.  
  573. ----------------------------------------
  574. checking for uint64_t
  575.  
  576.  
  577. ----------------------------------------
  578. checking for sig_atomic_t
  579.  
  580.  
  581. ----------------------------------------
  582. checking for sig_atomic_t size
  583.  
  584.  
  585. ----------------------------------------
  586. checking for socklen_t
  587.  
  588.  
  589. ----------------------------------------
  590. checking for in_addr_t
  591.  
  592.  
  593. ----------------------------------------
  594. checking for in_port_t
  595.  
  596.  
  597. ----------------------------------------
  598. checking for rlim_t
  599.  
  600.  
  601. ----------------------------------------
  602. checking for uintptr_t
  603.  
  604.  
  605. ----------------------------------------
  606. checking for system byte ordering
  607.  
  608.  
  609. ----------------------------------------
  610. checking for size_t size
  611.  
  612.  
  613. ----------------------------------------
  614. checking for off_t size
  615.  
  616.  
  617. ----------------------------------------
  618. checking for time_t size
  619.  
  620.  
  621. ----------------------------------------
  622. checking for AF_INET6
  623.  
  624.  
  625. ----------------------------------------
  626. checking for setproctitle()
  627.  
  628. objs/autotest.c: In function 'main':
  629. objs/autotest.c:7:5: warning: implicit declaration of function 'setproctitle' [-Wimplicit-function-declaration]
  630. setproctitle("test");;
  631. ^
  632. /tmp/ccbauhGE.o: In function `main':
  633. /tmp/openresty-1.13.6.1/build/nginx-1.13.6/objs/autotest.c:7: undefined reference to `setproctitle'
  634. collect2: error: ld returned 1 exit status
  635. ----------
  636.  
  637. #include <sys/types.h>
  638. #include <unistd.h>
  639. #include <stdlib.h>
  640.  
  641. int main(void) {
  642. setproctitle("test");;
  643. return 0;
  644. }
  645.  
  646. ----------
  647. cc -O2 -g -O2 -fstack-protector-strong --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c -Wl,-rpath,/etc/nginx/luajit/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed
  648. ----------
  649.  
  650. ----------------------------------------
  651. checking for pread()
  652.  
  653.  
  654. ----------------------------------------
  655. checking for pwrite()
  656.  
  657.  
  658. ----------------------------------------
  659. checking for pwritev()
  660.  
  661.  
  662. ----------------------------------------
  663. checking for sys_nerr
  664.  
  665. /tmp/ccANzUDO.o: In function `printf':
  666. /usr/include/x86_64-linux-gnu/bits/stdio2.h:104: warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead
  667. 135
  668. ----------------------------------------
  669. checking for localtime_r()
  670.  
  671.  
  672. ----------------------------------------
  673. checking for posix_memalign()
  674.  
  675.  
  676. ----------------------------------------
  677. checking for memalign()
  678.  
  679.  
  680. ----------------------------------------
  681. checking for mmap(MAP_ANON|MAP_SHARED)
  682.  
  683.  
  684. ----------------------------------------
  685. checking for mmap("/dev/zero", MAP_SHARED)
  686.  
  687.  
  688. ----------------------------------------
  689. checking for System V shared memory
  690.  
  691.  
  692. ----------------------------------------
  693. checking for POSIX semaphores
  694.  
  695. /tmp/ccnQ73LU.o: In function `main':
  696. /tmp/openresty-1.13.6.1/build/nginx-1.13.6/objs/autotest.c:8: undefined reference to `sem_init'
  697. /tmp/openresty-1.13.6.1/build/nginx-1.13.6/objs/autotest.c:9: undefined reference to `sem_destroy'
  698. collect2: error: ld returned 1 exit status
  699. ----------
  700.  
  701. #include <sys/types.h>
  702. #include <unistd.h>
  703. #include <semaphore.h>
  704.  
  705. int main(void) {
  706. sem_t sem;
  707. if (sem_init(&sem, 1, 0) == -1) return 1;
  708. sem_destroy(&sem);;
  709. return 0;
  710. }
  711.  
  712. ----------
  713. cc -O2 -g -O2 -fstack-protector-strong --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c -Wl,-rpath,/etc/nginx/luajit/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed
  714. ----------
  715.  
  716. ----------------------------------------
  717. checking for POSIX semaphores in libpthread
  718.  
  719.  
  720. ----------------------------------------
  721. checking for struct msghdr.msg_control
  722.  
  723.  
  724. ----------------------------------------
  725. checking for ioctl(FIONBIO)
  726.  
  727.  
  728. ----------------------------------------
  729. checking for struct tm.tm_gmtoff
  730.  
  731.  
  732. ----------------------------------------
  733. checking for struct dirent.d_namlen
  734.  
  735. objs/autotest.c: In function 'main':
  736. objs/autotest.c:8:28: error: 'struct dirent' has no member named 'd_namlen'
  737. struct dirent dir; dir.d_namlen = 0;
  738. ^
  739. objs/autotest.c:9:41: error: 'struct dirent' has no member named 'd_namlen'
  740. printf("%d", (int) dir.d_namlen);
  741. ^
  742. ----------
  743.  
  744. #include <sys/types.h>
  745. #include <unistd.h>
  746. #include <dirent.h>
  747. #include <stdio.h>
  748.  
  749. int main(void) {
  750. struct dirent dir; dir.d_namlen = 0;
  751. printf("%d", (int) dir.d_namlen);
  752. return 0;
  753. }
  754.  
  755. ----------
  756. cc -O2 -g -O2 -fstack-protector-strong --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c -Wl,-rpath,/etc/nginx/luajit/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed
  757. ----------
  758.  
  759. ----------------------------------------
  760. checking for struct dirent.d_type
  761.  
  762.  
  763. ----------------------------------------
  764. checking for sysconf(_SC_NPROCESSORS_ONLN)
  765.  
  766.  
  767. ----------------------------------------
  768. checking for openat(), fstatat()
  769.  
  770.  
  771. ----------------------------------------
  772. checking for getaddrinfo()
  773.  
  774.  
  775. ----------------------------------------
  776. checking for LuaJIT library in /tmp/openresty-1.13.6.1/build/luajit-root/etc/nginx/luajit/lib and /tmp/openresty-1.13.6.1/build/luajit-root/etc/nginx/luajit/include/luajit-2.1 (specified by the LUAJIT_LIB and LUAJIT_INC env, with -ldl)
  777.  
  778.  
  779. ----------------------------------------
  780. checking for export symbols by default (-E)
  781.  
  782.  
  783. ----------------------------------------
  784. checking for export symbols by default (--export-all-symbols)
  785.  
  786. /usr/bin/ld: unrecognized option '--export-all-symbols'
  787. /usr/bin/ld: use the --help option for usage information
  788. collect2: error: ld returned 1 exit status
  789. ----------
  790.  
  791. #include <sys/types.h>
  792. #include <unistd.h>
  793. #include <stdio.h>
  794.  
  795. int main(void) {
  796. printf("hello");;
  797. return 0;
  798. }
  799.  
  800. ----------
  801. cc -O2 -g -O2 -fstack-protector-strong --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c -Wl,-rpath,/etc/nginx/luajit/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed -Wl,--export-all-symbols
  802. ----------
  803.  
  804. ----------------------------------------
  805. checking for SO_PASSCRED
  806.  
  807.  
  808. ----------------------------------------
  809. checking for __attribute__(constructor)
  810.  
  811.  
  812. ----------------------------------------
  813. checking for malloc_trim
  814.  
  815. 0
  816. ----------------------------------------
  817. checking for LuaJIT library in /tmp/openresty-1.13.6.1/build/luajit-root/etc/nginx/luajit/lib and /tmp/openresty-1.13.6.1/build/luajit-root/etc/nginx/luajit/include/luajit-2.1 (specified by the LUAJIT_LIB and LUAJIT_INC env, with -ldl)
  818.  
  819.  
  820. ----------------------------------------
  821. checking for export symbols by default (-E)
  822.  
  823.  
  824. ----------------------------------------
  825. checking for export symbols by default (--export-all-symbols)
  826.  
  827. /usr/bin/ld: unrecognized option '--export-all-symbols'
  828. /usr/bin/ld: use the --help option for usage information
  829. collect2: error: ld returned 1 exit status
  830. ----------
  831.  
  832. #include <sys/types.h>
  833. #include <unistd.h>
  834. #include <stdio.h>
  835.  
  836. int main(void) {
  837. printf("hello");;
  838. return 0;
  839. }
  840.  
  841. ----------
  842. cc -O2 -g -O2 -fstack-protector-strong --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c -Wl,-rpath,/etc/nginx/luajit/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed -Wl,--export-all-symbols
  843. ----------
  844.  
  845. ----------------------------------------
  846. checking for SO_PASSCRED
  847.  
  848.  
  849. ----------------------------------------
  850. checking for psol
  851.  
  852. /usr/bin/ld: cannot find -luuid
  853. collect2: error: ld returned 1 exit status
  854. ----------
  855.  
  856. #include <sys/types.h>
  857. #include <unistd.h>
  858.  
  859. #include "pagespeed/kernel/base/string.h"
  860. #include "pagespeed/kernel/base/string_writer.h"
  861. #include "pagespeed/kernel/base/null_message_handler.h"
  862. #include "pagespeed/kernel/html/html_parse.h"
  863. #include "pagespeed/kernel/html/html_writer_filter.h"
  864.  
  865.  
  866. int main() {
  867.  
  868.  
  869. GoogleString output_buffer;
  870. net_instaweb::StringWriter write_to_string(&output_buffer);
  871.  
  872. net_instaweb::NullMessageHandler handler;
  873. net_instaweb::HtmlParse html_parse(&handler);
  874. net_instaweb::HtmlWriterFilter html_writer_filter(&html_parse);
  875.  
  876. html_writer_filter.set_writer(&write_to_string);
  877. html_parse.AddFilter(&html_writer_filter);
  878.  
  879. html_parse.StartParse("http:example.com");
  880. html_parse.ParseText(
  881. "<html ><body ><h1 >Test</h1 ><p>Test Text</p></body></html>\n");
  882. html_parse.FinishParse();
  883.  
  884. printf("parsed as: %s", output_buffer.c_str());
  885. return 0;
  886. }
  887.  
  888. ----------
  889. cc -O2 -g -O2 -fstack-protector-strong --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -D_GLIBCXX_USE_CXX11_ABI=0 --std=c++11 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I /tmp/incubator-pagespeed-ngx-latest-stable/psol/include -I /tmp/incubator-pagespeed-ngx-latest-stable/psol/include/third_party/chromium/src -I /tmp/incubator-pagespeed-ngx-latest-stable/psol/include/third_party/google-sparsehash/src/src -I /tmp/incubator-pagespeed-ngx-latest-stable/psol/include/third_party/google-sparsehash/gen/arch/linux/x64/include -I /tmp/incubator-pagespeed-ngx-latest-stable/psol/include/third_party/grpc/src/include -I /tmp/incubator-pagespeed-ngx-latest-stable/psol/include/third_party/protobuf/src/src -I /tmp/incubator-pagespeed-ngx-latest-stable/psol/include/third_party/re2/src -I /tmp/incubator-pagespeed-ngx-latest-stable/psol/include/out/Release/obj/gen -I /tmp/incubator-pagespeed-ngx-latest-stable/psol/include/out/Release/obj/gen/protoc_out/instaweb -I /tmp/incubator-pagespeed-ngx-latest-stable/psol/include/third_party/apr/src/include -I /tmp/incubator-pagespeed-ngx-latest-stable/psol/include/third_party/aprutil/src/include -I /tmp/incubator-pagespeed-ngx-latest-stable/psol/include/third_party/apr/gen/arch/linux/x64/include -I /tmp/incubator-pagespeed-ngx-latest-stable/psol/include/third_party/aprutil/gen/arch/linux/x64/include -I /tmp/incubator-pagespeed-ngx-latest-stable/psol/include/url -o objs/autotest objs/autotest.cc -Wl,-rpath,/etc/nginx/luajit/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed /tmp/incubator-pagespeed-ngx-latest-stable/psol/lib/Release/linux/x64/pagespeed_automatic.a -lstdc++ -lrt -pthread -lm -luuid
  890. ----------
Advertisement
Add Comment
Please, Sign In to add comment