1 | --------------------
|
---|
2 | ../configure --static
|
---|
3 | 2017å¹´ 5æ 16æ¥ ç«ææ¥ 23:15:14 DST
|
---|
4 | === ztest52.c ===
|
---|
5 | extern int getchar();
|
---|
6 | int hello() {return getchar();}
|
---|
7 | ===
|
---|
8 | arm-none-eabi-gcc -c ztest52.c
|
---|
9 | ... using gcc
|
---|
10 |
|
---|
11 | Checking for obsessive-compulsive compiler options...
|
---|
12 | === ztest52.c ===
|
---|
13 | int foo() { return 0; }
|
---|
14 | ===
|
---|
15 | arm-none-eabi-gcc -c -I../musl-1.1.12/include -I../zlib-1.2.11 -mlittle-endian -mcpu=cortex-a9 -mthumb -mthumb-interwork -marm -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard -mno-unaligned-access -fno-strict-aliasing -DSSIZE_MAX=LONG_MAX -D__unix ztest52.c
|
---|
16 |
|
---|
17 | Building static library libz.a version 1.2.11 with arm-none-eabi-gcc.
|
---|
18 |
|
---|
19 | === ztest52.c ===
|
---|
20 | #include <stdio.h>
|
---|
21 | #include <stdlib.h>
|
---|
22 | size_t dummy = 0;
|
---|
23 | ===
|
---|
24 | arm-none-eabi-gcc -c -I../musl-1.1.12/include -I../zlib-1.2.11 -mlittle-endian -mcpu=cortex-a9 -mthumb -mthumb-interwork -marm -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard -mno-unaligned-access -fno-strict-aliasing -DSSIZE_MAX=LONG_MAX -D__unix ztest52.c
|
---|
25 | Checking for size_t... Yes.
|
---|
26 |
|
---|
27 |
|
---|
28 | === ztest52.c ===
|
---|
29 | #include <sys/types.h>
|
---|
30 | off64_t dummy = 0;
|
---|
31 | ===
|
---|
32 | arm-none-eabi-gcc -c -I../musl-1.1.12/include -I../zlib-1.2.11 -mlittle-endian -mcpu=cortex-a9 -mthumb -mthumb-interwork -marm -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard -mno-unaligned-access -fno-strict-aliasing -DSSIZE_MAX=LONG_MAX -D__unix -D_LARGEFILE64_SOURCE=1 ztest52.c
|
---|
33 | ztest52.c:2:1: error: unknown type name 'off64_t'
|
---|
34 | off64_t dummy = 0;
|
---|
35 | ^
|
---|
36 | (exit code 1)
|
---|
37 | Checking for off64_t... No.
|
---|
38 |
|
---|
39 | === ztest52.c ===
|
---|
40 | #include <stdio.h>
|
---|
41 | int main(void) {
|
---|
42 | fseeko(NULL, 0, 0);
|
---|
43 | return 0;
|
---|
44 | }
|
---|
45 | ===
|
---|
46 | arm-none-eabi-gcc -I../musl-1.1.12/include -I../zlib-1.2.11 -mlittle-endian -mcpu=cortex-a9 -mthumb -mthumb-interwork -marm -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard -mno-unaligned-access -fno-strict-aliasing -DSSIZE_MAX=LONG_MAX -D__unix -o ztest52 ztest52.c
|
---|
47 | /usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/lib/armv7-ar/thumb/fpu/libc.a(lib_a-exit.o): In function `exit':
|
---|
48 | /build/newlib-5zwpxE/newlib-2.2.0+git20150830.5a3d536/build/arm-none-eabi/armv7-ar/thumb/fpu/newlib/libc/stdlib/../../../../../../../../newlib/libc/stdlib/exit.c:70: undefined reference to `_exit'
|
---|
49 | /usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/lib/armv7-ar/thumb/fpu/libc.a(lib_a-fstatr.o): In function `_fstat_r':
|
---|
50 | /build/newlib-5zwpxE/newlib-2.2.0+git20150830.5a3d536/build/arm-none-eabi/armv7-ar/thumb/fpu/newlib/libc/reent/../../../../../../../../newlib/libc/reent/fstatr.c:62: undefined reference to `_fstat'
|
---|
51 | /usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/lib/armv7-ar/thumb/fpu/libc.a(lib_a-sbrkr.o): In function `_sbrk_r':
|
---|
52 | /build/newlib-5zwpxE/newlib-2.2.0+git20150830.5a3d536/build/arm-none-eabi/armv7-ar/thumb/fpu/newlib/libc/reent/../../../../../../../../newlib/libc/reent/sbrkr.c:58: undefined reference to `_sbrk'
|
---|
53 | /usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/lib/armv7-ar/thumb/fpu/libc.a(lib_a-writer.o): In function `_write_r':
|
---|
54 | /build/newlib-5zwpxE/newlib-2.2.0+git20150830.5a3d536/build/arm-none-eabi/armv7-ar/thumb/fpu/newlib/libc/reent/../../../../../../../../newlib/libc/reent/writer.c:58: undefined reference to `_write'
|
---|
55 | /usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/lib/armv7-ar/thumb/fpu/libc.a(lib_a-closer.o): In function `_close_r':
|
---|
56 | /build/newlib-5zwpxE/newlib-2.2.0+git20150830.5a3d536/build/arm-none-eabi/armv7-ar/thumb/fpu/newlib/libc/reent/../../../../../../../../newlib/libc/reent/closer.c:53: undefined reference to `_close'
|
---|
57 | /usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/lib/armv7-ar/thumb/fpu/libc.a(lib_a-isattyr.o): In function `_isatty_r':
|
---|
58 | /build/newlib-5zwpxE/newlib-2.2.0+git20150830.5a3d536/build/arm-none-eabi/armv7-ar/thumb/fpu/newlib/libc/reent/../../../../../../../../newlib/libc/reent/isattyr.c:58: undefined reference to `_isatty'
|
---|
59 | /usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/lib/armv7-ar/thumb/fpu/libc.a(lib_a-lseekr.o): In function `_lseek_r':
|
---|
60 | /build/newlib-5zwpxE/newlib-2.2.0+git20150830.5a3d536/build/arm-none-eabi/armv7-ar/thumb/fpu/newlib/libc/reent/../../../../../../../../newlib/libc/reent/lseekr.c:58: undefined reference to `_lseek'
|
---|
61 | /usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/lib/armv7-ar/thumb/fpu/libc.a(lib_a-readr.o): In function `_read_r':
|
---|
62 | /build/newlib-5zwpxE/newlib-2.2.0+git20150830.5a3d536/build/arm-none-eabi/armv7-ar/thumb/fpu/newlib/libc/reent/../../../../../../../../newlib/libc/reent/readr.c:58: undefined reference to `_read'
|
---|
63 | collect2: error: ld returned 1 exit status
|
---|
64 | (exit code 1)
|
---|
65 | Checking for fseeko... No.
|
---|
66 |
|
---|
67 | === ztest52.c ===
|
---|
68 | #include <string.h>
|
---|
69 | #include <errno.h>
|
---|
70 | int main() { return strlen(strerror(errno)); }
|
---|
71 | ===
|
---|
72 | arm-none-eabi-gcc -I../musl-1.1.12/include -I../zlib-1.2.11 -mlittle-endian -mcpu=cortex-a9 -mthumb -mthumb-interwork -marm -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard -mno-unaligned-access -fno-strict-aliasing -DSSIZE_MAX=LONG_MAX -D__unix -DNO_FSEEKO -o ztest52 ztest52.c
|
---|
73 | /usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/lib/armv7-ar/thumb/fpu/libc.a(lib_a-exit.o): In function `exit':
|
---|
74 | /build/newlib-5zwpxE/newlib-2.2.0+git20150830.5a3d536/build/arm-none-eabi/armv7-ar/thumb/fpu/newlib/libc/stdlib/../../../../../../../../newlib/libc/stdlib/exit.c:70: undefined reference to `_exit'
|
---|
75 | collect2: error: ld returned 1 exit status
|
---|
76 | (exit code 1)
|
---|
77 | Checking for strerror... No.
|
---|
78 |
|
---|
79 | === ztest52.c ===
|
---|
80 | #include <unistd.h>
|
---|
81 | int main() { return 0; }
|
---|
82 | ===
|
---|
83 | arm-none-eabi-gcc -c -I../musl-1.1.12/include -I../zlib-1.2.11 -mlittle-endian -mcpu=cortex-a9 -mthumb -mthumb-interwork -marm -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard -mno-unaligned-access -fno-strict-aliasing -DSSIZE_MAX=LONG_MAX -D__unix -DNO_FSEEKO -DNO_STRERROR ztest52.c
|
---|
84 | Checking for unistd.h... Yes.
|
---|
85 |
|
---|
86 | === ztest52.c ===
|
---|
87 | #include <stdarg.h>
|
---|
88 | int main() { return 0; }
|
---|
89 | ===
|
---|
90 | arm-none-eabi-gcc -c -I../musl-1.1.12/include -I../zlib-1.2.11 -mlittle-endian -mcpu=cortex-a9 -mthumb -mthumb-interwork -marm -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard -mno-unaligned-access -fno-strict-aliasing -DSSIZE_MAX=LONG_MAX -D__unix -DNO_FSEEKO -DNO_STRERROR ztest52.c
|
---|
91 | Checking for stdarg.h... Yes.
|
---|
92 |
|
---|
93 | === ztest52.c ===
|
---|
94 | #include <stdio.h>
|
---|
95 | #include <stdarg.h>
|
---|
96 | #include "zconf.h"
|
---|
97 | int main()
|
---|
98 | {
|
---|
99 | #ifndef STDC
|
---|
100 | choke me
|
---|
101 | #endif
|
---|
102 | return 0;
|
---|
103 | }
|
---|
104 | ===
|
---|
105 | arm-none-eabi-gcc -c -I../musl-1.1.12/include -I../zlib-1.2.11 -mlittle-endian -mcpu=cortex-a9 -mthumb -mthumb-interwork -marm -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard -mno-unaligned-access -fno-strict-aliasing -DSSIZE_MAX=LONG_MAX -D__unix -DNO_FSEEKO -DNO_STRERROR ztest52.c
|
---|
106 | Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf().
|
---|
107 |
|
---|
108 | === ztest52.c ===
|
---|
109 | #include <stdio.h>
|
---|
110 | #include <stdarg.h>
|
---|
111 | int mytest(const char *fmt, ...)
|
---|
112 | {
|
---|
113 | char buf[20];
|
---|
114 | va_list ap;
|
---|
115 | va_start(ap, fmt);
|
---|
116 | vsnprintf(buf, sizeof(buf), fmt, ap);
|
---|
117 | va_end(ap);
|
---|
118 | return 0;
|
---|
119 | }
|
---|
120 | int main()
|
---|
121 | {
|
---|
122 | return (mytest("Hello%d\n", 1));
|
---|
123 | }
|
---|
124 | ===
|
---|
125 | arm-none-eabi-gcc -I../musl-1.1.12/include -I../zlib-1.2.11 -mlittle-endian -mcpu=cortex-a9 -mthumb -mthumb-interwork -marm -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard -mno-unaligned-access -fno-strict-aliasing -DSSIZE_MAX=LONG_MAX -D__unix -DNO_FSEEKO -DNO_STRERROR -o ztest52 ztest52.c
|
---|
126 | /usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/lib/armv7-ar/thumb/fpu/libc.a(lib_a-exit.o): In function `exit':
|
---|
127 | /build/newlib-5zwpxE/newlib-2.2.0+git20150830.5a3d536/build/arm-none-eabi/armv7-ar/thumb/fpu/newlib/libc/stdlib/../../../../../../../../newlib/libc/stdlib/exit.c:70: undefined reference to `_exit'
|
---|
128 | /usr/lib/gcc/arm-none-eabi/4.9.3/../../../arm-none-eabi/lib/armv7-ar/thumb/fpu/libc.a(lib_a-sbrkr.o): In function `_sbrk_r':
|
---|
129 | /build/newlib-5zwpxE/newlib-2.2.0+git20150830.5a3d536/build/arm-none-eabi/armv7-ar/thumb/fpu/newlib/libc/reent/../../../../../../../../newlib/libc/reent/sbrkr.c:58: undefined reference to `_sbrk'
|
---|
130 | collect2: error: ld returned 1 exit status
|
---|
131 | (exit code 1)
|
---|
132 | Checking for vsnprintf() in stdio.h... No.
|
---|
133 | WARNING: vsnprintf() not found, falling back to vsprintf(). zlib
|
---|
134 | can build but will be open to possible buffer-overflow security
|
---|
135 | vulnerabilities.
|
---|
136 |
|
---|
137 | === ztest52.c ===
|
---|
138 | #include <stdio.h>
|
---|
139 | #include <stdarg.h>
|
---|
140 | int mytest(const char *fmt, ...)
|
---|
141 | {
|
---|
142 | int n;
|
---|
143 | char buf[20];
|
---|
144 | va_list ap;
|
---|
145 | va_start(ap, fmt);
|
---|
146 | n = vsprintf(buf, fmt, ap);
|
---|
147 | va_end(ap);
|
---|
148 | return n;
|
---|
149 | }
|
---|
150 | int main()
|
---|
151 | {
|
---|
152 | return (mytest("Hello%d\n", 1));
|
---|
153 | }
|
---|
154 | ===
|
---|
155 | arm-none-eabi-gcc -c -I../musl-1.1.12/include -I../zlib-1.2.11 -mlittle-endian -mcpu=cortex-a9 -mthumb -mthumb-interwork -marm -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard -mno-unaligned-access -fno-strict-aliasing -DSSIZE_MAX=LONG_MAX -D__unix -DNO_FSEEKO -DNO_STRERROR -DNO_vsnprintf ztest52.c
|
---|
156 | Checking for return value of vsprintf()... Yes.
|
---|
157 |
|
---|
158 | === ztest52.c ===
|
---|
159 | #define ZLIB_INTERNAL __attribute__((visibility ("hidden")))
|
---|
160 | int ZLIB_INTERNAL foo;
|
---|
161 | int main()
|
---|
162 | {
|
---|
163 | return 0;
|
---|
164 | }
|
---|
165 | ===
|
---|
166 | arm-none-eabi-gcc -c -I../musl-1.1.12/include -I../zlib-1.2.11 -mlittle-endian -mcpu=cortex-a9 -mthumb -mthumb-interwork -marm -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard -mno-unaligned-access -fno-strict-aliasing -DSSIZE_MAX=LONG_MAX -D__unix -DNO_FSEEKO -DNO_STRERROR -DNO_vsnprintf ztest52.c
|
---|
167 | Checking for attribute(visibility) support... Yes.
|
---|
168 |
|
---|
169 | ALL = static
|
---|
170 | AR = ar
|
---|
171 | ARFLAGS = rc
|
---|
172 | CC = arm-none-eabi-gcc
|
---|
173 | CFLAGS = -I../musl-1.1.12/include -I../zlib-1.2.11 -mlittle-endian -mcpu=cortex-a9 -mthumb -mthumb-interwork -marm -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard -mno-unaligned-access -fno-strict-aliasing -DSSIZE_MAX=LONG_MAX -D__unix -DNO_FSEEKO -DNO_STRERROR -DNO_vsnprintf -DHAVE_HIDDEN
|
---|
174 | CPP = arm-none-eabi-gcc -E
|
---|
175 | EXE =
|
---|
176 | LDCONFIG = ldconfig
|
---|
177 | LDFLAGS =
|
---|
178 | LDSHARED = arm-none-eabi-gcc
|
---|
179 | LDSHAREDLIBC = -lc
|
---|
180 | OBJC = $(OBJZ) $(OBJG)
|
---|
181 | PIC_OBJC = $(PIC_OBJZ) $(PIC_OBJG)
|
---|
182 | RANLIB = ranlib
|
---|
183 | SFLAGS = -I../musl-1.1.12/include -I../zlib-1.2.11 -mlittle-endian -mcpu=cortex-a9 -mthumb -mthumb-interwork -marm -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard -mno-unaligned-access -fno-strict-aliasing -DSSIZE_MAX=LONG_MAX -D__unix -fPIC -DNO_FSEEKO -DNO_STRERROR -DNO_vsnprintf -DHAVE_HIDDEN
|
---|
184 | SHAREDLIB =
|
---|
185 | SHAREDLIBM =
|
---|
186 | SHAREDLIBV =
|
---|
187 | STATICLIB = libz.a
|
---|
188 | TEST = all teststatic
|
---|
189 | VER = 1.2.11
|
---|
190 | Z_U4 =
|
---|
191 | SRCDIR = ../
|
---|
192 | exec_prefix = ${prefix}
|
---|
193 | includedir = ${prefix}/include
|
---|
194 | libdir = ${exec_prefix}/lib
|
---|
195 | mandir = ${prefix}/share/man
|
---|
196 | prefix = /usr/local
|
---|
197 | sharedlibdir = ${libdir}
|
---|
198 | uname = Linux
|
---|
199 | --------------------
|
---|
200 |
|
---|
201 |
|
---|