pull in result values from other libraries at compile time

instead of storing dns, dst, and isccc result codes in the libisc
source tree, store them in their own relevant trees and combine them
into result-ext.h and result-ext.c files prior to compiling.

any sibling library can export result codes by placing
result_libname.c and result_libname.h files at its top source level:
for example, lib/isccc/result_isccc.c and lib/isccc/result_isccc.h.
80 jobs for !2344 with 719-isc-results_static in 21 minutes and 19 seconds (queued for 5 seconds)
detached
Status Job ID Name Coverage
  Precheck
passed #691089
amd64 linux
🐞:sid:amd64

00:04:17

passed #691088
amd64 linux
💾:sid:amd64

00:00:23

passed #691086
amd64 linux
autoreconf:sid:amd64

00:00:34

passed #691087
amd64 linux
misc:sid:amd64

00:00:17

 
  Build
passed #691105
amd64 linux
asan:sid:amd64

00:04:33

passed #691112
amd64 freebsd
clang:freebsd11.3:amd64

00:01:10

passed #691113
amd64 freebsd
clang:freebsd12.0:amd64

00:01:01

passed #691114
amd64 libvirt
clang:openbsd6.6:amd64

00:05:58

passed #691109
amd64 linux
clang:stretch:amd64

00:01:17

passed #691110
i386 linux
clang:stretch:i386

00:02:51

passed #691090
amd64 linux
gcc:alpine3.11:amd64

00:02:23

passed #691104
amd64 linux
gcc:bionic:amd64

00:01:17

passed #691096
amd64 linux
gcc:buster:amd64

00:01:36

passed #691091
amd64 linux
gcc:centos6:amd64

00:01:56

passed #691092
amd64 linux
gcc:centos7:amd64

00:02:09

passed #691093
amd64 linux
gcc:centos8:amd64

00:02:20

passed #691102
amd64 linux
gcc:fedora31:amd64

00:01:55

passed #691094
amd64 linux
gcc:jessie:amd64

00:01:17

passed #691097
amd64 linux
gcc:sid:amd64

00:02:10

passed #691099
arm64 linux
gcc:sid:arm64

00:03:55

passed #691100
i386 linux
gcc:sid:i386

00:01:37

passed #691095
amd64 linux
gcc:stretch:amd64

00:02:42

passed #691101
amd64 linux
gcc:tumbleweed:amd64

00:02:23

passed #691103
amd64 linux
gcc:xenial:amd64

00:02:50

failed #691116
amd64 windows
msvc:windows:amd64

00:01:08

passed #691108
amd64 linux
mutexatomics:sid:amd64

00:01:19

passed #691115
amd64 linux
nolibtool:sid:amd64

00:02:21

passed #691098
amd64 linux
oot:sid:amd64

00:02:46

passed #691111
amd64 linux
pkcs11:sid:amd64

00:01:31

passed #691107
amd64 linux
rwlock:sid:amd64

00:02:53

passed #691106
amd64 linux
tsan:buster:amd64

00:03:16

 
  Unit
passed #691131
amd64 linux
unit:asan:sid:amd64

00:01:15

passed #691137
amd64 freebsd
unit:clang:freebsd11.3:amd64

00:00:34

passed #691138
amd64 freebsd
unit:clang:freebsd12.0:amd64

00:00:34

passed #691135
amd64 linux
unit:clang:stretch:amd64

00:00:52

passed #691117
amd64 linux
unit:gcc:alpine3.11:amd64

00:00:50

passed #691130
amd64 linux
unit:gcc:bionic:amd64

00:00:51

passed #691123
amd64 linux
unit:gcc:buster:amd64

00:00:45

passed #691118
amd64 linux
unit:gcc:centos6:amd64

00:00:51

passed #691119
amd64 linux
unit:gcc:centos7:amd64

00:00:54

passed #691120
amd64 linux
unit:gcc:centos8:amd64

00:00:53

passed #691128
amd64 linux
unit:gcc:fedora31:amd64

00:00:48

passed #691121
amd64 linux
unit:gcc:jessie:amd64

00:00:19

passed #691124
amd64 linux
unit:gcc:sid:amd64

00:00:51

passed #691125
arm64 linux
unit:gcc:sid:arm64

00:01:04

passed #691126
i386 linux
unit:gcc:sid:i386

00:00:58

passed #691122
amd64 linux
unit:gcc:stretch:amd64

00:00:56

passed #691127
amd64 linux
unit:gcc:tumbleweed:amd64

00:00:55

passed #691129
amd64 linux
unit:gcc:xenial:amd64

00:00:51

failed #691134
amd64 linux allowed to fail
unit:mutexatomics:sid:amd64

00:10:51

passed #691139
amd64 linux
unit:nolibtool:sid:amd64

00:01:15

passed #691136
amd64 linux
unit:pkcs11:sid:amd64

00:00:52

passed #691133
amd64 linux
unit:rwlock:sid:amd64

00:00:49

failed #691132
amd64 linux allowed to fail
unit:tsan:buster:amd64

00:02:08

 
  System
passed #691154
amd64 linux
system:asan:sid:amd64

00:13:40

passed #691159
amd64 freebsd
system:clang:freebsd11.3:amd64

00:12:40

passed #691160
amd64 freebsd
system:clang:freebsd12.0:amd64

00:12:43

passed #691140
amd64 linux
system:gcc:alpine3.11:amd64

00:12:54

passed #691153
amd64 linux
system:gcc:bionic:amd64

00:12:06

passed #691146
amd64 linux
system:gcc:buster:amd64

00:11:40

passed #691141
amd64 linux
system:gcc:centos6:amd64

00:12:01

passed #691142
amd64 linux
system:gcc:centos7:amd64

00:11:25

passed #691143
amd64 linux
system:gcc:centos8:amd64

00:12:25

passed #691151
amd64 linux
system:gcc:fedora31:amd64

00:12:24

passed #691144
amd64 linux
system:gcc:jessie:amd64

00:11:47

passed #691147
amd64 linux
system:gcc:sid:amd64

00:12:02

passed #691148
arm64 linux
system:gcc:sid:arm64

00:12:20

passed #691149
i386 linux
system:gcc:sid:i386

00:12:07

passed #691145
amd64 linux
system:gcc:stretch:amd64

00:11:17

passed #691150
amd64 linux
system:gcc:tumbleweed:amd64

00:11:32

passed #691152
amd64 linux
system:gcc:xenial:amd64

00:11:22

passed #691157
amd64 linux
system:mutexatomics:sid:amd64

00:12:16

passed #691161
amd64 linux
system:nolibtool:sid:amd64

00:12:36

passed #691158
amd64 linux
system:pkcs11:sid:amd64

00:12:12

passed #691156
amd64 linux
system:rwlock:sid:amd64

00:12:21

failed #691155
amd64 linux allowed to fail
system:tsan:buster:amd64

00:15:42

 
  Docs
passed #691162
amd64 linux
docs:sid:amd64

00:01:00

 
  Postcheck
passed #691164
amd64 linux
cppcheck:gcc:sid:amd64

00:01:49

passed #691165
arm64 linux
cppcheck:gcc:sid:arm64

00:02:16

passed #691163
amd64 linux
scan-build:buster:amd64

00:09:45

 
Name Stage Failure
failed
system:tsan:buster:amd64 System
make: *** [Makefile:486: test] Error 1
Running after script...
$ find bin -name 'tsan.*' -exec python3 util/parse_tsan.py {} \;
Uploading artifacts...
bin/tests/system/*/tsan.*: found 18 matching files
bin/tests/system/*/*/tsan.*: found 242 matching files

tsan/: found 173 matching files

Uploading artifacts to coordinator... ok
id=691155 responseStatus=201 Created token=E-MsVUZk
ERROR: Job failed: exit code 1
failed
unit:mutexatomics:sid:amd64 Unit
Generating kyua_html/lib_ns_tests_query_test_main.html
Generating kyua_html/report.css
Generating kyua_html/index.html
Uploading artifacts...
kyua.log: found 1 matching files
kyua.results: found 1 matching files

kyua_html/: found 69 matching files

Uploading artifacts to coordinator... ok
id=691134 responseStatus=201 Created token=x8gDF4k3
ERROR: Job failed: exit code 1
failed
unit:tsan:buster:amd64 Unit
$ find lib -name 'tsan.*' -exec python3 util/parse_tsan.py {} \;
Uploading artifacts...
WARNING: lib/*/tests/tsan.*: no matching files
WARNING: tsan/: no matching files
kyua.log: found 1 matching files

kyua.results: found 1 matching files

WARNING: kyua_html/: no matching files
Uploading artifacts to coordinator... ok
id=691132 responseStatus=201 Created token=9zFCezoz
ERROR: Job failed: exit code 1
failed
msvc:windows:amd64 Build
         c:\builds\isc-projects\bind9\lib\isc\include\isc\result.h(25): fatal error C1083: Cannot open include file: 'isc/result-ext.h': No such file or directory (compiling source file syslog.c) [C:\builds\isc-projects\bind9\lib\isc\win32\libisc.vcxproj]
c:\builds\isc-projects\bind9\lib\isc\include\isc\result.h(25): fatal error C1083: Cannot open include file: 'isc/result-ext.h': No such file or directory (compiling source file thread.c) [C:\builds\isc-projects\bind9\lib\isc\win32\libisc.vcxproj]
c:\builds\isc-projects\bind9\lib\isc\include\isc\result.h(25): fatal error C1083: Cannot open include file: 'isc/result-ext.h': No such file or directory (compiling source file time.c) [C:\builds\isc-projects\bind9\lib\isc\win32\libisc.vcxproj]

0 Warning(s)
70 Error(s)

Time Elapsed 00:00:25.15
ERROR: Job failed: exit status 1