Revision 616361333261 () - Diff

Link to this snippet: https://friendpaste.com/7Ar25QaPEXM16wqiWdfmJ9
Embed:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
couch@build /relax/trunk
$ ./bootstrap
You have bootstrapped Apache CouchDB, time to relax.

Run `./configure' to configure the source before you install.

couch@build /relax/trunk
$ ./configure

couch@build /relax/trunk
$ more /relax/bin/couchdb_config.sh
#!/bin/sh
COUCH_TOP=`pwd`
export COUCH_TOP

./configure \
--prefix=$ERL_TOP/release/win32 \
--with-erlang=$ERL_TOP/release/win32/usr/include \
--with-win32-icu-binaries=/relax/icu \
--with-win32-curl=/relax/curl \
--with-openssl-bin-dir=/relax/openssl/bin \
--with-msvc-redist-dir=/relax \
--with-js-lib=/relax/tracemonkey-57a6ad20eae9/js/src/dist/lib \
--with-js-include=/relax/tracemonkey-57a6ad20eae9/js/src/dist/include \
--enable-static \
2>&1 | tee $COUCH_TOP/build_configure.txt

echo DONE. | tee -a $COUCH_TOP/build_configure.txt

couch@build /relax/trunk
$ couchdb_config.sh
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... cc.sh
checking whether the C compiler works... yes
checking for C compiler default output file name... conftest.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether cc.sh accepts -g... yes
checking for cc.sh option to accept ISO C89... none needed
checking dependency style of cc.sh... none
checking how to run the C preprocessor... cc.sh -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for gcc... (cached) cc.sh
checking whether we are using the GNU C compiler... (cached) no
checking whether cc.sh accepts -g... (cached) yes
checking for cc.sh option to accept ISO C89... (cached) none needed
checking dependency style of cc.sh... (cached) none
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for non-GNU ld... /bin/ld
checking if the linker (/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 8192
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-pc-cygwin file names to i686-pc-cygwin format... func_convert_file_noop
checking how to convert i686-pc-cygwin file names to toolchain format... func_convert_file_noop
checking for /bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... file_magic ^x86 archive import|^x86 DLL
checking for dlltool... dlltool
checking how to associate runtime and link libraries... func_cygming_dll_for_implib
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... true
checking command to parse /usr/bin/nm -B output from cc.sh object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... yes
checking for dlfcn.h... no
checking for objdir... .libs
checking for cc.sh option to produce PIC... -DDLL_EXPORT -DPIC
checking if cc.sh PIC flag -DDLL_EXPORT -DPIC works... yes
checking if cc.sh static flag works... yes
checking if cc.sh supports -c -o file.o... yes
checking if cc.sh supports -c -o file.o... (cached) yes
checking whether the cc.sh linker (/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether ln -s works... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether we are using the GNU C++ compiler... no
checking whether cc.sh accepts -g... yes
checking dependency style of cc.sh... none
checking how to run the C++ preprocessor... cc.sh -E
checking whether the cc.sh linker (/bin/ld) supports shared libraries... yes
checking for cc.sh option to produce PIC... -DDLL_EXPORT -DPIC
checking if cc.sh PIC flag -DDLL_EXPORT -DPIC works... yes
checking if cc.sh static flag works... yes
checking if cc.sh supports -c -o file.o... yes
checking if cc.sh supports -c -o file.o... (cached) yes
checking whether the cc.sh linker (/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether byte ordering is bigendian... no
checking for stdint.h... (cached) no
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking sys/mman.h usability... no
checking sys/mman.h presence... no
checking for sys/mman.h... no
checking sys/resource.h usability... no
checking sys/resource.h presence... no
checking for sys/resource.h... no
checking for mmap... no
checking if the compiler supports __builtin_expect... no
checking if the compiler supports __builtin_ctzll... no
checking for pthread_create in -lpthread... no
checking for JS... no
checking for JS_NewContext in -lmozjs... yes
checking for iscc... /relax/inno5/iscc
checking jsapi.h usability... yes
checking jsapi.h presence... yes
checking for jsapi.h... yes
checking for erl... /relax/otp_src_R14B03/release/win32/erts-5.8.4/bin/erl
checking for erlc... /relax/otp_src_R14B03/release/win32/erts-5.8.4/bin/erlc
checking erl_driver.h usability... yes
checking erl_driver.h presence... yes
checking for erl_driver.h... yes
checking for help2man... /usr/bin/help2man
checking location of init directory... not found
checking location of launchd directory... not found
configure: creating ./config.status
config.status: creating Makefile
config.status: creating bin/couchjs.tpl
config.status: creating bin/couchdb.tpl
config.status: creating bin/couchdb.bat.tpl
config.status: creating bin/Makefile
config.status: creating etc/couchdb/Makefile
config.status: creating etc/couchdb/default.ini.tpl
config.status: creating etc/default/Makefile
config.status: creating etc/init/couchdb.tpl
config.status: creating etc/init/Makefile
config.status: creating etc/launchd/org.apache.couchdb.plist.tpl
config.status: creating etc/launchd/Makefile
config.status: creating etc/logrotate.d/couchdb.tpl
config.status: creating etc/logrotate.d/Makefile
config.status: creating etc/windows/Makefile
config.status: creating etc/Makefile
config.status: creating share/Makefile
config.status: creating src/Makefile
config.status: creating src/couchdb/couch.app.tpl
config.status: creating src/couchdb/Makefile
config.status: creating src/couchdb/priv/Makefile
config.status: creating src/erlang-oauth/Makefile
config.status: creating src/etap/Makefile
config.status: creating src/ibrowse/Makefile
config.status: creating src/mochiweb/Makefile
config.status: creating src/snappy/Makefile
config.status: creating src/snappy/google-snappy/snappy-stubs-public.h
config.status: creating src/ejson/Makefile
config.status: creating test/Makefile
config.status: creating test/bench/Makefile
config.status: creating test/etap/Makefile
config.status: creating test/etap/test_util.erl
config.status: creating test/javascript/Makefile
config.status: creating test/view_server/Makefile
config.status: creating utils/Makefile
config.status: creating var/Makefile
config.status: creating config.h
config.status: creating src/snappy/google-snappy/config.h
config.status: executing depfiles commands
config.status: executing libtool commands

You have configured Apache CouchDB, time to relax.

Run `make && sudo make install' to install.
DONE.

couch@build /relax/trunk
$ make
make all-recursive
make[1]: Entering directory `/relax/trunk'
Making all in bin
make[2]: Entering directory `/relax/trunk/bin'
sed -e "s|%ICU_CONFIG%||g" \
-e "s|%version%|1.2.0a-1133692|g" \
couchdb.bat.tpl > couchdb.bat
sed -e "s|%locallibbindir%|/relax/trunk/src/couchdb/priv|g" \
-e "s|%bug_uri%|https://issues.apache.org/jira/browse/COUCHDB|g" \
-e "s|%package_author_address%|dev@couchdb.apache.org|g" \
-e "s|%package_author_name%|The Apache Software Foundation|g" \
-e "s|%package_name%|Apache CouchDB|g" \
-e "s|%version%|1.2.0a-1133692|g" \
-e "s|%couchjs_command_name%|`echo couchjs | sed 's,x,x,'`|g" > \
couchjs_dev < couchjs.tpl
chmod +x couchjs_dev
touch couchdb.1
if test -x "/usr/bin/help2man"; then \
make -f Makefile couchdb; \
/usr/bin/help2man --no-info --help-option="-h" --version-option="-V" \
--name="Apache CouchDB database server" ./couchdb --output couchdb.1; \
fi
make[3]: Entering directory `/relax/trunk/bin'
sed -e "s|%ERL%|/relax/otp_src_R14B03/release/win32/erts-5.8.4/bin/erl|g" \
-e "s|%ICU_CONFIG%||g" \
-e "s|%bindir%|/relax/otp_src_R14B03/release/win32/bin|g" \
-e "s|%localerlanglibdir%|/relax/otp_src_R14B03/release/win32/lib|g" \
-e "s|%defaultini%|default.ini|g" \
-e "s|%localini%|local.ini|g" \
-e "s|%localconfdir%|/relax/otp_src_R14B03/release/win32/etc/couchdb|g" \
-e "s|%localstatelogdir%|/relax/otp_src_R14B03/release/win32/var/log/couchdb|g" \
-e "s|%localstatelibdir%|/relax/otp_src_R14B03/release/win32/var/lib/couchdb|g" \
-e "s|%localstatedir%|/relax/otp_src_R14B03/release/win32/var|g" \
-e "s|%bug_uri%|https://issues.apache.org/jira/browse/COUCHDB|g" \
-e "s|%package_author_address%|dev@couchdb.apache.org|g" \
-e "s|%package_author_name%|The Apache Software Foundation|g" \
-e "s|%package_name%|Apache CouchDB|g" \
-e "s|%version%|1.2.0a-1133692|g" \
-e "s|%couchdb_command_name%|`echo couchdb | sed 's,x,x,'`|g" > \
couchdb < couchdb.tpl
chmod +x couchdb
make[3]: Leaving directory `/relax/trunk/bin'
touch couchjs.1
if test -x "/usr/bin/help2man"; then \
make -f Makefile couchjs; \
/usr/bin/help2man --no-info --help-option="-h" --version-option="-V" \
--name="Apache CouchDB JavaScript interpreter" ./couchjs --output couchjs.1; \
fi
make[3]: Entering directory `/relax/trunk/bin'
sed -e "s|%locallibbindir%|/relax/otp_src_R14B03/release/win32/bin|g" \
-e "s|%bug_uri%|https://issues.apache.org/jira/browse/COUCHDB|g" \
-e "s|%package_author_address%|dev@couchdb.apache.org|g" \
-e "s|%package_author_name%|The Apache Software Foundation|g" \
-e "s|%package_name%|Apache CouchDB|g" \
-e "s|%version%|1.2.0a-1133692|g" \
-e "s|%couchjs_command_name%|`echo couchjs | sed 's,x,x,'`|g" > \
couchjs < couchjs.tpl
chmod +x couchjs
make[3]: Leaving directory `/relax/trunk/bin'
make[2]: Leaving directory `/relax/trunk/bin'
Making all in etc
make[2]: Entering directory `/relax/trunk/etc'
Making all in couchdb
make[3]: Entering directory `/relax/trunk/etc/couchdb'
sed -e "s|%bindir%|.|g" \
-e "s|%localconfdir%|/relax/otp_src_R14B03/release/win32/etc/couchdb|g" \
-e "s|%localdatadir%|../share/couchdb|g" \
-e "s|%localbuilddatadir%|../share/couchdb|g" \
-e "s|%localstatelibdir%|../var/lib/couchdb|g" \
-e "s|%localstatelogdir%|../var/log/couchdb|g" \
-e "s|%localstaterundir%|../var/run/couchdb|g" \
-e "s|%couchprivlibdir%|../lib/couch-1.2.0a-1133692/priv/lib|g" \
-e "s|%couchjs_command_name%|couchjs.exe|g" \
< default.ini.tpl > default.ini
sed -e "s|%bindir%|/relax/trunk/bin|g" \
-e "s|%localconfdir%|/relax/trunk/etc/couchdb|g" \
-e "s|%localdatadir%|/relax/trunk/share|g" \
-e "s|%localbuilddatadir%|/relax/trunk/share|g" \
-e "s|%localstatelibdir%|/relax/trunk/tmp/lib|g" \
-e "s|%localstatelogdir%|/relax/trunk/tmp/log|g" \
-e "s|%localstaterundir%|/relax/trunk/tmp/run|g" \
-e "s|%couchprivlibdir%|/relax/trunk/src/couchdb/priv/.libs|g" \
-e "s|%couchjs_command_name%|`echo couchjs_dev | sed 's,x,x,'`|g" \
< default.ini.tpl > default_dev.ini
if test ! -f "local_dev.ini"; then \
cp local.ini local_dev.ini; \
fi
make[3]: Leaving directory `/relax/trunk/etc/couchdb'
Making all in default
make[3]: Entering directory `/relax/trunk/etc/default'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/relax/trunk/etc/default'
Making all in init
make[3]: Entering directory `/relax/trunk/etc/init'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/relax/trunk/etc/init'
Making all in launchd
make[3]: Entering directory `/relax/trunk/etc/launchd'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/relax/trunk/etc/launchd'
Making all in logrotate.d
make[3]: Entering directory `/relax/trunk/etc/logrotate.d'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/relax/trunk/etc/logrotate.d'
Making all in windows
make[3]: Entering directory `/relax/trunk/etc/windows'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/relax/trunk/etc/windows'
make[3]: Entering directory `/relax/trunk/etc'
sed -e "s|%localstatelogdir%|/relax/otp_src_R14B03/release/win32/var/log/couchdb|g" < logrotate.d/couchdb.tpl > logrotate.d/couchdb
make[3]: Leaving directory `/relax/trunk/etc'
make[2]: Leaving directory `/relax/trunk/etc'
Making all in src
make[2]: Entering directory `/relax/trunk/src'
Making all in couchdb
make[3]: Entering directory `/relax/trunk/src/couchdb'
Making all in priv
make[4]: Entering directory `/relax/trunk/src/couchdb/priv'
source='icu_driver/couch_icu_driver.c' object='couch_icu_driver_la-couch_icu_driver.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/sh ../../../build-aux/depcomp \
/bin/sh ../../../libtool --tag=CC --mode=compile cc.sh -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/snappy/google-snappy -I/r
elax/icu/include -I/relax/otp_src_R14B03/release/win32/usr/include -c -o couch_icu_driver_la-couch_icu_driver.lo `test -f 'icu_driver/couch
_icu_driver.c' || echo './'`icu_driver/couch_icu_driver.c
libtool: compile: cc.sh -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/snappy/google-snappy -I/relax/icu/include -I/relax/otp_src_R14B03/rel
ease/win32/usr/include -c icu_driver/couch_icu_driver.c -DDLL_EXPORT -DPIC -o .libs/couch_icu_driver_la-couch_icu_driver.o
/bin/sh ../../../libtool --tag=CC --mode=link cc.sh -I/relax/icu/include -I/relax/otp_src_R14B03/release/win32/usr/include -module -avoid
-version -no-undefined -o couch_icu_driver.la -rpath /relax/otp_src_R14B03/release/win32/lib/couch-1.2.0a-1133692/priv/lib couch_icu_driver
_la-couch_icu_driver.lo -L/relax/icu/lib -licuuc -licudt -licuin -L/usr/local/lib -L/opt/local/lib
libtool: link: cc.sh -o .libs/couch_icu_driver.dll .libs/couch_icu_driver_la-couch_icu_driver.o `func_echo_all " -L/relax/icu/lib -licu
uc -licudt -licuin -L/usr/local/lib -L/opt/local/lib" | /usr/bin/sed 's/ -lc$//'` -dll
Creating library .libs/couch_icu_driver.lib and object .libs/couch_icu_driver.exp
libtool: link: linknames=
libtool: link: true
libtool: link: ( cd ".libs" && rm -f "couch_icu_driver.la" && ln -s "../couch_icu_driver.la" "couch_icu_driver.la" )
source='spawnkillable/couchspawnkillable_win.c' object='couchspawnkillable_win.o' libtool=no \
DEPDIR=.deps depmode=none /bin/sh ../../../build-aux/depcomp \
cc.sh -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/snappy/google-snappy -c -o couchspawnkillable_win.o `test -f 'spawnkillable
/couchspawnkillable_win.c' || echo './'`spawnkillable/couchspawnkillable_win.c
/bin/sh ../../../libtool --tag=CC --mode=link cc.sh -o couchspawnkillable.exe couchspawnkillable_win.o -L/usr/local/lib -L/opt/local/
lib
libtool: link: cc.sh -o .libs/couchspawnkillable.exe couchspawnkillable_win.o -L/usr/local/lib -L/opt/local/lib
source='couch_js/http.c' object='couchjs-http.o' libtool=no \
DEPDIR=.deps depmode=none /bin/sh ../../../build-aux/depcomp \
cc.sh -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/snappy/google-snappy -D_BSD_SOURCE -I/relax/curl/include -DCURL_STATICLIB -DX
P_WIN -I/relax/tracemonkey-57a6ad20eae9/js/src/dist/include -c -o couchjs-http.o `test -f 'couch_js/http.c' || echo './'`couch_js/http.c
source='couch_js/main.c' object='couchjs-main.o' libtool=no \
DEPDIR=.deps depmode=none /bin/sh ../../../build-aux/depcomp \
cc.sh -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/snappy/google-snappy -D_BSD_SOURCE -I/relax/curl/include -DCURL_STATICLIB -DX
P_WIN -I/relax/tracemonkey-57a6ad20eae9/js/src/dist/include -c -o couchjs-main.o `test -f 'couch_js/main.c' || echo './'`couch_js/main.c
source='couch_js/utf8.c' object='couchjs-utf8.o' libtool=no \
DEPDIR=.deps depmode=none /bin/sh ../../../build-aux/depcomp \
cc.sh -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/snappy/google-snappy -D_BSD_SOURCE -I/relax/curl/include -DCURL_STATICLIB -DX
P_WIN -I/relax/tracemonkey-57a6ad20eae9/js/src/dist/include -c -o couchjs-utf8.o `test -f 'couch_js/utf8.c' || echo './'`couch_js/utf8.c
/bin/sh ../../../libtool --tag=CC --mode=link cc.sh -D_BSD_SOURCE -I/relax/curl/include -DCURL_STATICLIB -DXP_WIN -I/relax/tracemonkey-57a
6ad20eae9/js/src/dist/include -o couchjs.exe couchjs-http.o couchjs-main.o couchjs-utf8.o -L/relax/curl/lib -lcurl -lWs2_32 -lkernel32 -l
user32 -ladvapi32 -lWldap32 -lmozjs -L/relax/tracemonkey-57a6ad20eae9/js/src/dist/lib -L/usr/local/lib -L/opt/local/lib
libtool: link: cc.sh -D_BSD_SOURCE -I/relax/curl/include -DCURL_STATICLIB -DXP_WIN -I/relax/tracemonkey-57a6ad20eae9/js/src/dist/include -o
.libs/couchjs.exe couchjs-http.o couchjs-main.o couchjs-utf8.o -L/relax/curl/lib /usr/lib/libcurl.dll.a -L/usr/lib /usr/lib/libidn.dll.a /u
sr/lib/libintl.dll.a /usr/lib/libiconv.dll.a /usr/lib/libssh2.dll.a -lssl -lcrypto -lz -lWs2_32 -lkernel32 -luser32 -ladvapi32 -lWldap32 -lm
ozjs -L/relax/tracemonkey-57a6ad20eae9/js/src/dist/lib -L/usr/local/lib -L/opt/local/lib
LINK : fatal error LNK1181: cannot open input file 'ssl.lib'
make[4]: *** [couchjs.exe] Error 157
make[4]: Leaving directory `/relax/trunk/src/couchdb/priv'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/relax/trunk/src/couchdb'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/relax/trunk/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/relax/trunk'
make: *** [all] Error 2

couch@build /relax/trunk
$