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
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
[jeff@blue build]$ aurget -S cjdns-git
searching AUR...

Targets (1): cjdns-git-0.3.1152-1 

Proceed with installation? [Y/n] y
:: Retrieving source tarball from AUR...
######################################################################## 100.0%
:: Extracting source tarball...
:: Building package...
Edit PKGBUILD before building cjdns-git? [Y/n] n
==> Making package: cjdns-git 0.3.1152-1 (Sun May 26 19:21:52 CDT 2013)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning cjdns git repo...
Cloning into bare repository '/home/jeff/build/cjdns-git/cjdns'...
remote: Counting objects: 12508, done.
remote: Compressing objects: 100% (5730/5730), done.
remote: Total 12508 (delta 6769), reused 12340 (delta 6613)
Receiving objects: 100% (12508/12508), 8.13 MiB | 785 KiB/s, done.
Resolving deltas: 100% (6769/6769), done.
  -> Cloning cjdns-git-sysvinit git repo...
Cloning into bare repository '/home/jeff/build/cjdns-git/cjdns-git-sysvinit'...
remote: Counting objects: 4, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 4 (delta 0), reused 4 (delta 0)
Receiving objects: 100% (4/4), done.
==> Validating source files with sha1sums...
    cjdns ... Skipped
    cjdns-git-sysvinit ... Skipped
==> Extracting sources...
  -> Creating working copy of cjdns git repo...
Cloning into 'cjdns'...
done.
Branch makepkg set up to track remote branch master from origin.
Switched to a new branch 'makepkg'
  -> Creating working copy of cjdns-git-sysvinit git repo...
Cloning into 'cjdns-git-sysvinit'...
done.
Branch makepkg set up to track remote branch master from origin.
Switched to a new branch 'makepkg'
==> Starting pkgver()...
==> Starting prepare()...
==> Starting build()...
-- The C compiler identification is GNU 4.8.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
2.8.11
c compiler: /usr/bin/cc
c++ compiler: 
-- Performing Test HAS_NO_UNUSED_RESULT
-- Performing Test HAS_NO_UNUSED_RESULT - Success
-- Performing Test HAS_F_STACK_PROTECTOR
-- Performing Test HAS_F_STACK_PROTECTOR - Success
-- Performing Test HAS_CATCH_UNDEFINED
-- Performing Test HAS_CATCH_UNDEFINED - Failed
-- Performing Test HAS_BUILTIN_CONSTANT_P
-- Performing Test HAS_BUILTIN_CONSTANT_P - Success
Building a position independent executable (ASLR security enabled).
NOTE: PIE executables cannot run in a debugger.

-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Looking for clock_gettime
-- Looking for clock_gettime - found
-- Looking for socket
-- Looking for socket - found
libnacl not found, will be downloaded and compiled.
Testing without root access, root tests disabled
-- Tests to run for cjdns/admin/test
     Admin_test.c

-- Tests to run for cjdns/benc/serialization/standard/test
     benc_serializeInteger_test.c
     benc_serializeList_test.c
     benc_serializeString_test.c

-- Tests to run for cjdns/crypto/random/test
     Random_test.c

-- Tests to run for cjdns/crypto/test
     CryptoAuth_test.c
     CryptoAuth_unit_test.c
     ReplayProtector_test.c

-- Tests to run for cjdns/dht/dhtcore/test
     VersionList_test.c

-- Tests to run for cjdns/dht/test
     DHTModules_handleIncoming_test.c
     DHTModules_handleOutgoing_test.c

-- Tests to run for cjdns/interface/test
     UDPInterface_test.c
     UDPInterface_communication_test.c
     ICMP6Generator_test.c
     MultiInterface_test.c
     TUNInterface_ipv4_root_test.c
     TUNInterface_ipv6_root_test.c

-- Tests to run for cjdns/io/test
     FileReader_test.c

-- Tests to run for cjdns/memory/test
     CanaryAllocator_test.c
     MallocAllocator_test.c
     MallocAllocator_oom_test.c

-- Found Git: /usr/bin/git (found version "1.8.2.3") 
-- Tests to run for cjdns/util/platform/test
     Sockaddr_test.c

-- Tests to run for cjdns/util/test
     AverageRoller_test.c
     Bits_test.c
     Base32_test.c
     Checksum_test.c
     Endian_test.c
     Hex_test.c
     Map_test.c
     Process_test.c
     UniqueName_test.c
     AddrTools_test.c

-- Tests to run for cjdns/switch/test
     LabelSplicer_test.c
     NumberCompress_test.c

-- Tests to run for cjdns/net/test
     DefaultInterfaceController_test.c
     DefaultInterfaceController_multiIface_test.c

-- Tests to run for cjdns/tunnel/test
     IpTunnel_test.c

-- Tests to run for cjdns/test
     cjdroute_injection_test.c
     cjdroute_routerPing_test.c
     CryptoAddress_test.c
     twoNodes_test.c
     threeNodes_test.c

-- Configuring done
-- Generating done
-- Build files have been written to: /home/jeff/build/cjdns-git/src/cjdns/build
Scanning dependencies of target cjdmemory
[  0%] Building C object memory/CMakeFiles/cjdmemory.dir/BufferAllocator.c.o
[  1%] Building C object memory/CMakeFiles/cjdmemory.dir/MallocAllocator.c.o
Linking C static library libcjdmemory.a
[  1%] Built target cjdmemory
Scanning dependencies of target cjdns-errno
[  1%] Building C object util/CMakeFiles/cjdns-errno.dir/Errno.c.o
Linking C static library libcjdns-errno.a
[  1%] Built target cjdns-errno
Scanning dependencies of target cjdns-except
[  2%] Building C object exception/CMakeFiles/cjdns-except.dir/Except.c.o
Linking C static library libcjdns-except.a
[  2%] Built target cjdns-except
Scanning dependencies of target cjdns-security
[  3%] Building C object util/CMakeFiles/cjdns-security.dir/Security.c.o
Linking C static library libcjdns-security.a
[  3%] Built target cjdns-security
Scanning dependencies of target libuv_ep
[  4%] Creating directories for 'libuv_ep'
[  5%] Performing download step (verify and extract) for 'libuv_ep'
-- verifying file...
     file='/home/jeff/build/cjdns-git/src/cjdns/cmake/externals/node-v0.9.7.tar.gz'
-- verifying file... done
-- extracting...
     src='/home/jeff/build/cjdns-git/src/cjdns/cmake/externals/node-v0.9.7.tar.gz'
     dst='/home/jeff/build/cjdns-git/src/cjdns/build/libuv'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[  6%] No patch step for 'libuv_ep'
[  6%] No update step for 'libuv_ep'
[  7%] No configure step for 'libuv_ep'
[  7%] Performing build step for 'libuv_ep'
[  7%] No install step for 'libuv_ep'
[  8%] Completed 'libuv_ep'
[  8%] Built target libuv_ep
Scanning dependencies of target libuv_dep
[  8%] Building C object CMakeFiles/libuv_dep.dir/DoNothing_libuv.c.o
Linking C static library liblibuv_dep.a
[  8%] Built target libuv_dep
Scanning dependencies of target cjdio
[  9%] Building C object io/CMakeFiles/cjdio.dir/ArrayReader.c.o
[ 10%] Building C object io/CMakeFiles/cjdio.dir/ArrayWriter.c.o
[ 10%] Building C object io/CMakeFiles/cjdio.dir/FileReader.c.o
[ 11%] Building C object io/CMakeFiles/cjdio.dir/FileWriter.c.o
Linking C static library libcjdio.a
[ 11%] Built target cjdio
Scanning dependencies of target cjdns-util-log
[ 12%] Building C object util/log/CMakeFiles/cjdns-util-log.dir/Log.c.o
Linking C static library libcjdns-util-log.a
[ 12%] Built target cjdns-util-log
Scanning dependencies of target cjdns-util-log-writer
[ 13%] Building C object util/log/CMakeFiles/cjdns-util-log-writer.dir/WriterLog.c.o
Linking C static library libcjdns-util-log-writer.a
[ 13%] Built target cjdns-util-log-writer
Scanning dependencies of target cjdns-util-platform-socket
[ 13%] Building C object util/platform/CMakeFiles/cjdns-util-platform-socket.dir/Socket.c.o
[ 14%] Building C object util/platform/CMakeFiles/cjdns-util-platform-socket.dir/Sockaddr.c.o
Linking C static library libcjdns-util-platform-socket.a
[ 14%] Built target cjdns-util-platform-socket
Scanning dependencies of target util
[ 15%] Building C object util/CMakeFiles/util.dir/AverageRoller.c.o
[ 16%] Building C object util/CMakeFiles/util.dir/Hex.c.o
[ 16%] Building C object util/CMakeFiles/util.dir/Pinger.c.o
[ 17%] Building C object util/CMakeFiles/util.dir/Pipe.c.o
[ 18%] Building C object util/CMakeFiles/util.dir/Security_admin.c.o
Linking C static library libutil.a
[ 18%] Built target util
Scanning dependencies of target cjdbenc
[ 19%] Building C object benc/CMakeFiles/cjdbenc.dir/String.c.o
[ 19%] Building C object benc/CMakeFiles/cjdbenc.dir/Dict.c.o
[ 20%] Building C object benc/CMakeFiles/cjdbenc.dir/List.c.o
Linking C static library libcjdbenc.a
[ 20%] Built target cjdbenc
Scanning dependencies of target cjdbenc_JsonBencSerializer
[ 21%] Building C object benc/serialization/json/CMakeFiles/cjdbenc_JsonBencSerializer.dir/JsonBencSerializer.c.o
Linking C static library libcjdbenc_JsonBencSerializer.a
[ 21%] Built target cjdbenc_JsonBencSerializer
Scanning dependencies of target cjdbenc_StandardBencSerializer
[ 21%] Building C object benc/serialization/standard/CMakeFiles/cjdbenc_StandardBencSerializer.dir/StandardBencSerializer.c.o
Linking C static library libcjdbenc_StandardBencSerializer.a
[ 21%] Built target cjdbenc_StandardBencSerializer
Scanning dependencies of target benc2json
[ 22%] Building C object CMakeFiles/benc2json.dir/benc2json.c.o
Linking C executable benc2json
[ 22%] Built target benc2json
Scanning dependencies of target check_output
[ 22%] Generating check.codestyle
[ 22%] Built target check_output
Scanning dependencies of target cleanconfig
[ 23%] Building C object CMakeFiles/cleanconfig.dir/cleanconfig.c.o
Linking C executable cleanconfig
[ 23%] Built target cleanconfig
Scanning dependencies of target nacl_ep
[ 24%] Creating directories for 'nacl_ep'
[ 25%] Performing download step (verify and extract) for 'nacl_ep'
-- verifying file...
     file='/home/jeff/build/cjdns-git/src/cjdns/cmake/externals/cnacl-e551eb9a55897c651a6688223b8734223f990175.tar.gz'
-- verifying file... warning: did not verify file - no URL_HASH specified?
-- extracting...
     src='/home/jeff/build/cjdns-git/src/cjdns/cmake/externals/cnacl-e551eb9a55897c651a6688223b8734223f990175.tar.gz'
     dst='/home/jeff/build/cjdns-git/src/cjdns/build/nacl'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 26%] No patch step for 'nacl_ep'
[ 26%] No update step for 'nacl_ep'
[ 27%] Performing configure step for 'nacl_ep'
-- The C compiler identification is GNU 4.8.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
randombytes() devurandom -- Succeeded!
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
Detected ABI as amd64
Using a [Linux] toolchain.
Using preexisting build plan /home/jeff/build/cjdns-git/src/cjdns/build/nacl/cmake/plans/amd64_plan.cmake
CMake Error at CMakeLists.txt:223 (add_subdirectory):
  add_subdirectory not given a binary directory but the given source
  directory
  "/home/jeff/build/cjdns-git/src/cjdns/build/nacl_build/crypto_hashblocks"
  is not a subdirectory of "/home/jeff/build/cjdns-git/src/cjdns/build/nacl".
  When specifying an out-of-tree source a binary directory must be explicitly
  specified.
Call Stack (most recent call first):
  CMakeLists.txt:296 (executePlan)


CMake Error at CMakeLists.txt:223 (add_subdirectory):
  add_subdirectory not given a binary directory but the given source
  directory
  "/home/jeff/build/cjdns-git/src/cjdns/build/nacl_build/crypto_scalarmult"
  is not a subdirectory of "/home/jeff/build/cjdns-git/src/cjdns/build/nacl".
  When specifying an out-of-tree source a binary directory must be explicitly
  specified.
Call Stack (most recent call first):
  CMakeLists.txt:296 (executePlan)


CMake Error at CMakeLists.txt:223 (add_subdirectory):
  add_subdirectory not given a binary directory but the given source
  directory
  "/home/jeff/build/cjdns-git/src/cjdns/build/nacl_build/crypto_hash" is not
  a subdirectory of "/home/jeff/build/cjdns-git/src/cjdns/build/nacl".  When
  specifying an out-of-tree source a binary directory must be explicitly
  specified.
Call Stack (most recent call first):
  CMakeLists.txt:296 (executePlan)


CMake Error at CMakeLists.txt:223 (add_subdirectory):
  add_subdirectory not given a binary directory but the given source
  directory
  "/home/jeff/build/cjdns-git/src/cjdns/build/nacl_build/crypto_stream" is
  not a subdirectory of "/home/jeff/build/cjdns-git/src/cjdns/build/nacl".
  When specifying an out-of-tree source a binary directory must be explicitly
  specified.
Call Stack (most recent call first):
  CMakeLists.txt:296 (executePlan)


CMake Error at CMakeLists.txt:223 (add_subdirectory):
  add_subdirectory not given a binary directory but the given source
  directory
  "/home/jeff/build/cjdns-git/src/cjdns/build/nacl_build/crypto_verify" is
  not a subdirectory of "/home/jeff/build/cjdns-git/src/cjdns/build/nacl".
  When specifying an out-of-tree source a binary directory must be explicitly
  specified.
Call Stack (most recent call first):
  CMakeLists.txt:296 (executePlan)


CMake Error at CMakeLists.txt:223 (add_subdirectory):
  add_subdirectory not given a binary directory but the given source
  directory
  "/home/jeff/build/cjdns-git/src/cjdns/build/nacl_build/crypto_box" is not a
  subdirectory of "/home/jeff/build/cjdns-git/src/cjdns/build/nacl".  When
  specifying an out-of-tree source a binary directory must be explicitly
  specified.
Call Stack (most recent call first):
  CMakeLists.txt:296 (executePlan)


CMake Error at CMakeLists.txt:223 (add_subdirectory):
  add_subdirectory not given a binary directory but the given source
  directory
  "/home/jeff/build/cjdns-git/src/cjdns/build/nacl_build/crypto_onetimeauth"
  is not a subdirectory of "/home/jeff/build/cjdns-git/src/cjdns/build/nacl".
  When specifying an out-of-tree source a binary directory must be explicitly
  specified.
Call Stack (most recent call first):
  CMakeLists.txt:296 (executePlan)


CMake Error at CMakeLists.txt:223 (add_subdirectory):
  add_subdirectory not given a binary directory but the given source
  directory
  "/home/jeff/build/cjdns-git/src/cjdns/build/nacl_build/crypto_core" is not
  a subdirectory of "/home/jeff/build/cjdns-git/src/cjdns/build/nacl".  When
  specifying an out-of-tree source a binary directory must be explicitly
  specified.
Call Stack (most recent call first):
  CMakeLists.txt:296 (executePlan)


CMake Error at CMakeLists.txt:223 (add_subdirectory):
  add_subdirectory not given a binary directory but the given source
  directory
  "/home/jeff/build/cjdns-git/src/cjdns/build/nacl_build/crypto_auth" is not
  a subdirectory of "/home/jeff/build/cjdns-git/src/cjdns/build/nacl".  When
  specifying an out-of-tree source a binary directory must be explicitly
  specified.
Call Stack (most recent call first):
  CMakeLists.txt:296 (executePlan)


CMake Error at CMakeLists.txt:223 (add_subdirectory):
  add_subdirectory not given a binary directory but the given source
  directory
  "/home/jeff/build/cjdns-git/src/cjdns/build/nacl_build/crypto_sign" is not
  a subdirectory of "/home/jeff/build/cjdns-git/src/cjdns/build/nacl".  When
  specifying an out-of-tree source a binary directory must be explicitly
  specified.
Call Stack (most recent call first):
  CMakeLists.txt:296 (executePlan)


CMake Error at CMakeLists.txt:223 (add_subdirectory):
  add_subdirectory not given a binary directory but the given source
  directory
  "/home/jeff/build/cjdns-git/src/cjdns/build/nacl_build/crypto_secretbox" is
  not a subdirectory of "/home/jeff/build/cjdns-git/src/cjdns/build/nacl".
  When specifying an out-of-tree source a binary directory must be explicitly
  specified.
Call Stack (most recent call first):
  CMakeLists.txt:296 (executePlan)


-- Tests to run for nacl/tests

-- Configuring incomplete, errors occurred!
make[2]: *** [nacl_ep-prefix/src/nacl_ep-stamp/nacl_ep-configure] Error 1
make[1]: *** [CMakeFiles/nacl_ep.dir/all] Error 2
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
notice: cjdns-git failed while building, remove source files (/home/jeff/build/cjdns-git)? [Y/n] 
warning: package cjdns-git failed to build and won't be installed.
[jeff@blue build]$