spacepaste

  1.  
  2. --------------------
  3. ./configure --prefix=/usr --sharedlibdir=/lib
  4. Mon Jan 16 17:22:56 EST 2017
  5. Using ar
  6. Checking for x86_64-pc-linux-gnu-gcc...
  7. === ztest26757.c ===
  8. extern int getchar();
  9. int hello() {return getchar();}
  10. ===
  11. x86_64-pc-linux-gnu-gcc -c ztest26757.c
  12. ./configure: 182: ./configure: x86_64-pc-linux-gnu-gcc: not found
  13. ... using cc
  14. Checking for obsessive-compulsive compiler options...
  15. === ztest26757.c ===
  16. int foo() { return 0; }
  17. ===
  18. cc -c -march=native -O2 -pipe ztest26757.c
  19. Checking for shared library support...
  20. === ztest26757.c ===
  21. extern int getchar();
  22. int hello() {return getchar();}
  23. ===
  24. cc -w -c -march=native -O2 -pipe ztest26757.c
  25. cc -shared -march=native -O2 -pipe -o ztest26757.so ztest26757.o
  26. /usr/bin/ld: ztest26757.o: relocation R_X86_64_PC32 against symbol `getchar@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
  27. /usr/bin/ld: final link failed: Bad value
  28. collect2: error: ld returned 1 exit status
  29. (exit code 1)
  30. No shared library support; try without defining CC and CFLAGS
  31. Building static library libz.a version 1.2.11 with cc.
  32. === ztest26757.c ===
  33. #include <stdio.h>
  34. #include <stdlib.h>
  35. size_t dummy = 0;
  36. ===
  37. cc -c -march=native -O2 -pipe ztest26757.c
  38. Checking for size_t... Yes.
  39. === ztest26757.c ===
  40. #include <sys/types.h>
  41. off64_t dummy = 0;
  42. ===
  43. cc -c -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1 ztest26757.c
  44. Checking for off64_t... Yes.
  45. Checking for fseeko... Yes.
  46. === ztest26757.c ===
  47. #include <string.h>
  48. #include <errno.h>
  49. int main() { return strlen(strerror(errno)); }
  50. ===
  51. cc -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1 -o ztest26757 ztest26757.c
  52. Checking for strerror... Yes.
  53. === ztest26757.c ===
  54. #include <unistd.h>
  55. int main() { return 0; }
  56. ===
  57. cc -c -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1 ztest26757.c
  58. Checking for unistd.h... Yes.
  59. === ztest26757.c ===
  60. #include <stdarg.h>
  61. int main() { return 0; }
  62. ===
  63. cc -c -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1 ztest26757.c
  64. Checking for stdarg.h... Yes.
  65. === ztest26757.c ===
  66. #include <stdio.h>
  67. #include <stdarg.h>
  68. #include "zconf.h"
  69. int main()
  70. {
  71. #ifndef STDC
  72. choke me
  73. #endif
  74. return 0;
  75. }
  76. ===
  77. cc -c -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1 ztest26757.c
  78. Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf().
  79. === ztest26757.c ===
  80. #include <stdio.h>
  81. #include <stdarg.h>
  82. int mytest(const char *fmt, ...)
  83. {
  84. char buf[20];
  85. va_list ap;
  86. va_start(ap, fmt);
  87. vsnprintf(buf, sizeof(buf), fmt, ap);
  88. va_end(ap);
  89. return 0;
  90. }
  91. int main()
  92. {
  93. return (mytest("Hello%d\n", 1));
  94. }
  95. ===
  96. cc -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1 -o ztest26757 ztest26757.c
  97. Checking for vsnprintf() in stdio.h... Yes.
  98. === ztest26757.c ===
  99. #include <stdio.h>
  100. #include <stdarg.h>
  101. int mytest(const char *fmt, ...)
  102. {
  103. int n;
  104. char buf[20];
  105. va_list ap;
  106. va_start(ap, fmt);
  107. n = vsnprintf(buf, sizeof(buf), fmt, ap);
  108. va_end(ap);
  109. return n;
  110. }
  111. int main()
  112. {
  113. return (mytest("Hello%d\n", 1));
  114. }
  115. ===
  116. cc -c -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1 ztest26757.c
  117. Checking for return value of vsnprintf()... Yes.
  118. ALL = static all64
  119. AR = ar
  120. ARFLAGS = rc
  121. CC = cc
  122. CFLAGS = -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1
  123. CPP = cc -E
  124. EXE =
  125. LDCONFIG = ldconfig
  126. LDFLAGS =
  127. LDSHARED = cc
  128. LDSHAREDLIBC = -lc
  129. OBJC = $(OBJZ) $(OBJG)
  130. PIC_OBJC = $(PIC_OBJZ) $(PIC_OBJG)
  131. RANLIB = ranlib
  132. SFLAGS = -march=native -O2 -pipe -D_LARGEFILE64_SOURCE=1
  133. SHAREDLIB =
  134. SHAREDLIBM =
  135. SHAREDLIBV =
  136. STATICLIB = libz.a
  137. TEST = all teststatic test64
  138. VER = 1.2.11
  139. Z_U4 =
  140. SRCDIR =
  141. exec_prefix = ${prefix}
  142. includedir = ${prefix}/include
  143. libdir = ${exec_prefix}/lib
  144. mandir = ${prefix}/share/man
  145. prefix = /usr
  146. sharedlibdir = /lib
  147. uname = linux
  148. --------------------
  149.